~mendelmaleh/tg_translator

2655ea3133a9a5366241c76c5e76db64014a1cfb — Mendel E 2 years ago e4100c6
Don't notify for edits
1 files changed, 2 insertions(+), 1 deletions(-)

M main.py
M main.py => main.py +2 -1
@@ 24,7 24,8 @@ async def translate(cl: Client, msg: Message):
    await bot.send_message(
        chat_id=channels[msg.chat.id],
        text=f"{msg.link}{' (edited)' if msg.edit_date else ''}\n\n{text}",
        disable_web_page_preview=bool(msg.text)
        disable_web_page_preview=bool(msg.text),
        disable_notification=bool(msg.edit_date)
    )