Allow Message.click() without arguments. Default to 0 (first button)

This commit is contained in:
Dan 2019-05-13 21:05:47 +02:00
parent 94de75f714
commit a5e42572f6

View File

@ -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: