aboutsummaryrefslogtreecommitdiff
path: root/mentioned.py
diff options
context:
space:
mode:
Diffstat (limited to 'mentioned.py')
-rw-r--r--mentioned.py4
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
XMR address: 854DmXNrxULU3ZFJVs4Wc8PFhbq29RhqHhY8W6cdWrtFN3qmooKyyeYPcDzZTNRxphhJ5UzASQfAdEMwSteVqymk28aLhqj