Update Telethon, ignore prod server's IP

This commit is contained in:
2026-10-13 17:45:38 +00:00
parent 4baa7d3194
commit 788ef0d2d3
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -8,6 +8,6 @@ multidict==4.7.6
pyaes==1.6.1
pyasn1==0.4.8
rsa==4.7.2
Telethon==1.21.1
telethon==1.45.0
typing-extensions==3.7.4.3
yarl==1.5.1
+1
View File
@@ -2,3 +2,4 @@ API_ID = 0
API_HASH = ''
API_TOKEN = ''
DYNMAP_ADDRESS = 'http://domain.com:8123'
THIS_SERVER_IP = ''
+1
View File
@@ -78,6 +78,7 @@ async def main():
icon = emojis[md5(name) % len(emojis)]
icon = settings.CUSTOM_EMOJIS.get(name, icon)
message = '{} <{}> {}'.format(icon, name, update['message'])
if name == settings.THIS_SERVER_IP: continue
if message == last_msg: continue
logging.info('[RECV] ' + message)