mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Update callback_query_handler.py
This commit is contained in:
parent
acd525294f
commit
b28f2ebbcb
@ -27,11 +27,7 @@ app = Client("123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11")
|
|||||||
|
|
||||||
@app.on_callback_query()
|
@app.on_callback_query()
|
||||||
def answer(client, callback_query):
|
def answer(client, callback_query):
|
||||||
client.answer_callback_query(
|
callback_query.answer('Button contains: "{}"'.format(callback_query.data), show_alert=True)
|
||||||
callback_query.id,
|
|
||||||
text='Button contains: "{}"'.format(callback_query.data),
|
|
||||||
show_alert=True
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
app.run() # Automatically start() and idle()
|
app.run() # Automatically start() and idle()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user