mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +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
|
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`.
|
"""Bound method *click* of :obj:`Message`.
|
||||||
|
|
||||||
Use as a shortcut for clicking a button attached to the message instead of:
|
Use as a shortcut for clicking a button attached to the message instead of:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user