File tree Expand file tree Collapse file tree
pyrogram/client/methods/messages Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments