mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Allow Message.click() without arguments. Default to 0 (first button)
This commit is contained in:
parent
94de75f714
commit
a5e42572f6
@ -2725,7 +2725,7 @@ class Message(PyrogramType, Update):
|
||||
revoke=revoke
|
||||
)
|
||||
|
||||
def click(self, x: int or str, y: int = None, quote: bool = None, timeout: int = 10):
|
||||
def click(self, x: int or str, y: int = 0, quote: bool = None, timeout: int = 10):
|
||||
"""Bound method *click* of :obj:`Message`.
|
||||
|
||||
Use as a shortcut for clicking a button attached to the message instead of:
|
||||
|
Loading…
Reference in New Issue
Block a user