From b28f2ebbcb576efc248b6a68ea229dd5e0e3be27 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 9 Oct 2018 14:08:14 +0200 Subject: [PATCH] Update callback_query_handler.py --- examples/callback_query_handler.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/callback_query_handler.py b/examples/callback_query_handler.py index 999c2686..38893c02 100644 --- a/examples/callback_query_handler.py +++ b/examples/callback_query_handler.py @@ -27,11 +27,7 @@ app = Client("123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11") @app.on_callback_query() def answer(client, callback_query): - client.answer_callback_query( - callback_query.id, - text='Button contains: "{}"'.format(callback_query.data), - show_alert=True - ) + callback_query.answer('Button contains: "{}"'.format(callback_query.data), show_alert=True) app.run() # Automatically start() and idle()