Update send_dice: add basketball "dice"
This commit is contained in:
parent
24f8032627
commit
bb89e949e8
@ -38,7 +38,7 @@ class SendDice(BaseClient):
|
|||||||
"pyrogram.ForceReply"
|
"pyrogram.ForceReply"
|
||||||
] = None
|
] = None
|
||||||
) -> Union["pyrogram.Message", None]:
|
) -> Union["pyrogram.Message", None]:
|
||||||
"""Send a dice.
|
"""Send a dice with a random value from 1 to 6.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
chat_id (``int`` | ``str``):
|
chat_id (``int`` | ``str``):
|
||||||
@ -47,8 +47,8 @@ class SendDice(BaseClient):
|
|||||||
For a contact that exists in your Telegram address book you can use his phone number (str).
|
For a contact that exists in your Telegram address book you can use his phone number (str).
|
||||||
|
|
||||||
emoji (``str``, *optional*):
|
emoji (``str``, *optional*):
|
||||||
Emoji on which the dice throw animation is based. Currently, must be one of "🎲" or "🎯".
|
Emoji on which the dice throw animation is based. Currently, must be one of "🎲", "🎯" or "🏀".
|
||||||
Defauts to "🎲".
|
Defaults to "🎲".
|
||||||
|
|
||||||
disable_notification (``bool``, *optional*):
|
disable_notification (``bool``, *optional*):
|
||||||
Sends the message silently.
|
Sends the message silently.
|
||||||
@ -75,6 +75,9 @@ class SendDice(BaseClient):
|
|||||||
|
|
||||||
# Send a dart
|
# Send a dart
|
||||||
app.send_dice("pyrogramlounge", "🎯")
|
app.send_dice("pyrogramlounge", "🎯")
|
||||||
|
|
||||||
|
# Send a basketball
|
||||||
|
app.send_dice("pyrogramlounge", "🏀")
|
||||||
"""
|
"""
|
||||||
|
|
||||||
r = self.send(
|
r = self.send(
|
||||||
|
Loading…
Reference in New Issue
Block a user