Open ghost opened 6 years ago
I want send a message after the button is pressed. This is my code:
if query_data == "AddChannel" and from_id == settings.bot.AuthorizedId: bot.sendMessage(chatId,"test")
How can i catch the chatId into on_callback_query?
chatId
on_callback_query
You don't need to, from_id already contains the chatID
from_id
chatID
I want send a message after the button is pressed. This is my code:
How can i catch the
chatId
intoon_callback_query
?