mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-04-29 00:27:09 +08:00
Handle replied message in answer_it_handler
This commit is contained in:
parent
4d16429885
commit
8f2ae93ea4
@ -238,6 +238,9 @@ def answer_it_handler(message: Message, bot: TeleBot) -> None:
|
||||
# get the last message in the chat
|
||||
|
||||
chat_id = message.chat.id
|
||||
if message.reply_to_message is not None:
|
||||
latest_message = message.reply_to_message
|
||||
else:
|
||||
latest_message = chat_message_dict.get(chat_id)
|
||||
m = original_m = latest_message.text.strip()
|
||||
m = enrich_text_with_urls(m)
|
||||
|
Loading…
x
Reference in New Issue
Block a user