I want to find a message and get his text. I know that if i have the message object I only have to do:
msg["text"]
But I don't have it, I have a message identifier like this:
(chat_id, message_id)
Obtained via:
telepot.origin_identifier(callback_query)
So I aslo have the callback_query
object.
Had these information how can I get the text of the message that sent me these callback query?
To get the text of the message who sent the callback query we have to do:
callback_query["message"]["text"]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.