Add basketball to known dice throw emojis

This commit is contained in:
Tulir Asokan
2020-07-05 13:47:08 +03:00
parent dd69204f5a
commit 8e54d2e253
2 changed files with 3 additions and 0 deletions
@@ -321,6 +321,8 @@ async def random(evt: CommandEvent) -> EventID:
emoticon = {
"dart": "\U0001F3AF",
"dice": "\U0001F3B2",
"ball": "\U0001F3C0",
"basketball": "\U0001F3C0",
}.get(arg, arg)
try:
await evt.sender.client.send_media(await portal.get_input_entity(evt.sender),
+1
View File
@@ -299,6 +299,7 @@ class PortalTelegram(BasePortal, ABC):
emoji_text = {
"\U0001F3AF": " Dart throw",
"\U0001F3B2": " Dice roll",
"\U0001F3C0": " Basketball throw"
}
roll: MessageMediaDice = evt.media
text = f"{roll.emoticon}{emoji_text.get(roll.emoticon, '')} result: {roll.value}"