A
A
Aman2020-04-24 10:39:58
Python
Aman, 2020-04-24 10:39:58

How to click on button in Telegram bot using pyrogram?

There is a VkusVillBot bot.
5ea2970cc5238620895960.png

You need to click on the "Login with a smiley" button.
Sending a regular message with a smiley, nothing comes out.
5ea2974ac3df9700395474.png

Works on click only
5ea29793c6097306760844.png

from pyrogram import Client, Emoji

box = Emoji.BALLOT_BOX_WITH_CHECK
with Client('Session', api_id=id, api_hash=hash) as cl:
    cl.send_message("VkusVillBot", f'Авторизоваться {box}')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Pokrovsky, 2020-04-24
@robick231

https://docs.pyrogram.org/api/bound-methods/Message...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question