简体   繁体   中英

Get the text of a message known the message identifier (chat_id, message_id) with telepot

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM