From d398cf19a6d4ab3e8aec8cebd50fb39d10585f17 Mon Sep 17 00:00:00 2001 From: Matin Date: Wed, 4 Nov 2020 18:37:42 +0330 Subject: [PATCH] Add football & slot machine dice --- aiogram/bot/bot.py | 2 +- aiogram/types/dice.py | 2 ++ aiogram/types/message.py | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/aiogram/bot/bot.py b/aiogram/bot/bot.py index c5678a37..3b886cc0 100644 --- a/aiogram/bot/bot.py +++ b/aiogram/bot/bot.py @@ -954,7 +954,7 @@ class Bot(BaseBot, DataMixin, ContextInstanceMixin): :param chat_id: Unique identifier for the target chat or username of the target channel :type chat_id: :obj:`typing.Union[base.Integer, base.String]` - :param emoji: Emoji on which the dice throw animation is based. Currently, must be one of “🎲” or “🎯”. Defauts to “🎲” + :param emoji: Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, "🏀", "⚽️" or "🎰". Defauts to “🎲” :type emoji: :obj:`typing.Union[base.String, None]` :param disable_notification: Sends the message silently. Users will receive a notification with no sound :type disable_notification: :obj:`typing.Union[base.Boolean, None]` diff --git a/aiogram/types/dice.py b/aiogram/types/dice.py index 7b3f1727..cae3e2b3 100644 --- a/aiogram/types/dice.py +++ b/aiogram/types/dice.py @@ -17,3 +17,5 @@ class DiceEmoji: DICE = '🎲' DART = '🎯' BASKETBALL = '🏀' + SOCCER = '⚽️' + SLOT_MACHINE = '🎰' diff --git a/aiogram/types/message.py b/aiogram/types/message.py index fc6bc77b..54a11eb3 100644 --- a/aiogram/types/message.py +++ b/aiogram/types/message.py @@ -1043,7 +1043,7 @@ class Message(base.TelegramObject): Source: https://core.telegram.org/bots/api#senddice - :param emoji: Emoji on which the dice throw animation is based. Currently, must be one of “🎲” or “🎯”. Defauts to “🎲” + :param emoji: Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, "🏀", "⚽️" or "🎰". Defauts to “🎲” :type emoji: :obj:`typing.Union[base.String, None]` :param disable_notification: Sends the message silently. Users will receive a notification with no sound. :type disable_notification: :obj:`typing.Union[base.Boolean, None]` @@ -1829,7 +1829,7 @@ class Message(base.TelegramObject): Source: https://core.telegram.org/bots/api#senddice - :param emoji: Emoji on which the dice throw animation is based. Currently, must be one of “🎲” or “🎯”. Defauts to “🎲” + :param emoji: Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, "🏀", "⚽️" or "🎰". Defauts to “🎲” :type emoji: :obj:`typing.Union[base.String, None]` :param disable_notification: Sends the message silently. Users will receive a notification with no sound. :type disable_notification: :obj:`typing.Union[base.Boolean, None]`