Skip to content

How to get original forwarded message id? #1905

Answered by mendoncart
mendoncart asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I've managed to find the solution.

CanhoteiroMot_bot.edit_message_text(chat_id=call.message.reply_to_message.forward_from.id, message_id=call.message.reply_to_message.message_id-1,
                          text=call.message.text + "\nStatus: Aprovado por " + call.from_user.first_name + " " + call.from_user.last_name + " em " + datetime.today().strftime('%d/%m/%Y'))

The reason call.message.reply_to_message.forward_from.id wasn't returning my id, was due to my privacy settings regarding forwarded messages. This made my id to not show ant the message data.

Thanks.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mendoncart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #1904 on February 04, 2023 19:34.