mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Easy emoji
This commit is contained in:
parent
173b3ad988
commit
93e8e5eaaf
1 changed files with 12 additions and 0 deletions
12
aiogram/utils/emoji.py
Normal file
12
aiogram/utils/emoji.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
try:
|
||||
import emoji
|
||||
except ImportError:
|
||||
raise ImportError('Need install "emoji" module.')
|
||||
|
||||
|
||||
def emojize(text):
|
||||
return emoji.emojize(text, use_aliases=True)
|
||||
|
||||
|
||||
def demojize(text):
|
||||
return emoji.demojize(text)
|
||||
Loading…
Add table
Add a link
Reference in a new issue