Skip to content

Commit

Permalink
update to new emoji API
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Nov 22, 2022
1 parent fcbcb87 commit b50428b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simplebot_stickers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import simplebot
from cachelib import FileSystemCache
from deltachat import Message
from emoji import get_emoji_regexp
from emoji import emoji_count
from simplebot.bot import DeltaBot, Replies

from . import telegram
Expand Down Expand Up @@ -55,7 +55,7 @@ def filter_messages(bot: DeltaBot, message: Message, replies: Replies) -> None:
replies.add(filename=telegram.convert(message.filename), viewtype="sticker")
elif signal.is_pack(message.text):
_process_signal_pack(bot, message, replies)
elif get_emoji_regexp().fullmatch(message.text):
elif emoji_count(message.text):
pack_url, sticker = signal.get_random_sticker(message.text)
if pack_url:
replies.add(
Expand Down

0 comments on commit b50428b

Please sign in to comment.