diff options
Diffstat (limited to 'mentioned.py')
| -rw-r--r-- | mentioned.py | 4 |
1 files 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 |
