mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Update callback_query_handler.py
This commit is contained in:
parent
acd525294f
commit
b28f2ebbcb
1 changed files with 1 additions and 5 deletions
|
|
@ -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…
Reference in a new issue