Skip to content

Commit bb89e94

Browse files
committed
Update send_dice: add basketball "dice"
1 parent 24f8032 commit bb89e94

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

pyrogram/client/methods/messages/send_dice.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def send_dice(
3838
"pyrogram.ForceReply"
3939
] = None
4040
) -> Union["pyrogram.Message", None]:
41-
"""Send a dice.
41+
"""Send a dice with a random value from 1 to 6.
4242
4343
Parameters:
4444
chat_id (``int`` | ``str``):
@@ -47,8 +47,8 @@ def send_dice(
4747
For a contact that exists in your Telegram address book you can use his phone number (str).
4848
4949
emoji (``str``, *optional*):
50-
Emoji on which the dice throw animation is based. Currently, must be one of "🎲" or "🎯".
51-
Defauts to "🎲".
50+
Emoji on which the dice throw animation is based. Currently, must be one of "🎲", "🎯" or "🏀".
51+
Defaults to "🎲".
5252
5353
disable_notification (``bool``, *optional*):
5454
Sends the message silently.
@@ -75,6 +75,9 @@ def send_dice(
7575
7676
# Send a dart
7777
app.send_dice("pyrogramlounge", "🎯")
78+
79+
# Send a basketball
80+
app.send_dice("pyrogramlounge", "🏀")
7881
"""
7982

8083
r = self.send(

0 commit comments

Comments
 (0)