From a5e42572f62986093fc8f64aed316a248234dc35 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 13 May 2019 21:05:47 +0200 Subject: [PATCH] Allow Message.click() without arguments. Default to 0 (first button) --- pyrogram/client/types/messages_and_media/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/types/messages_and_media/message.py b/pyrogram/client/types/messages_and_media/message.py index d37028b5..a8f6d31b 100644 --- a/pyrogram/client/types/messages_and_media/message.py +++ b/pyrogram/client/types/messages_and_media/message.py @@ -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: