Add Telegram bot support #23

Merged
Berack96 merged 23 commits from 6-telegram-interface into main 2025-10-13 10:49:46 +02:00
Showing only changes of commit 1cbf9b1acb - Show all commits

View File

@@ -236,7 +236,8 @@ class TelegramApp:
f'Query: "{confs.user_query}"' f'Query: "{confs.user_query}"'
] ]
full_message = f"""```\n{'\n'.join(configs_str)}\n```\n\n""" full_message = f"""```\n{'\n'.join(configs_str)}\n```\n\n"""
msg = await bot.edit_message_text(chat_id=chat_id, message_id=msg_id, text=full_message, parse_mode='MarkdownV2') first_message = full_message + "Generating report, please wait"
msg = await bot.edit_message_text(chat_id=chat_id, message_id=msg_id, text=first_message, parse_mode='MarkdownV2')
if isinstance(msg, bool): return if isinstance(msg, bool): return
# Remove user query and bot message # Remove user query and bot message