From f2e3cb56e879cfb09abe1b6b75cd6d57172749d1 Mon Sep 17 00:00:00 2001 From: mroik Date: Thu, 25 Nov 2021 00:56:44 +0100 Subject: Always forgetting something --- mentioned.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mentioned.py b/mentioned.py index 429791e..56bd569 100644 --- a/mentioned.py +++ b/mentioned.py @@ -3,7 +3,7 @@ import re from telethon import TelegramClient, events from telethon.tl.types import PeerUser -from config import API_ID, API_HASH, WORDLIST +from config import API_ID, API_HASH, WORDLIST, GROUP_ID client = TelegramClient("notify me on untagged", API_ID, API_HASH) @@ -38,7 +38,7 @@ async def handler(event: events.NewMessage.Event): msg += f"{message.message[:found.start()]}__"\ f"{message.message[found.start():found.end()]}__"\ f"{message.message[found.end():]}" - await client.send_message("me", msg) + await client.send_message(GROUP_ID, msg) return -- cgit v1.3