main.py: [community suggestion] disable link previews when sending messages

This commit is contained in:
dymik739 2023-04-06 08:20:18 +03:00
parent f213710601
commit c9271963b2
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ def queue_processor():
if mod.version == 1:
responce = mod.process(msg)
if len(responce) > 0:
updater.bot.send_message(chat_id = msg.chat.id, text = responce)
updater.bot.send_message(chat_id = msg.chat.id, text = responce, disable_web_page_preview = True)
print("Responded using module {} ({}) with text: {}".format(mod.path, mod.alias, responce))
break