- feat(idm): Move related channel to configs

2 internal commit(s)

GitOrigin-RevId: 5ca92c5edb4fd4e19f6322307168581146dd9618
This commit is contained in:
the-superpirate 2021-04-12 23:46:46 +03:00
parent 9ce67ec590
commit c623e67a6d
3 changed files with 3 additions and 3 deletions

View File

@ -15,3 +15,4 @@ telegram:
app_id: 00000
database:
session_id: '/usr/lib/idm-api/{{ ENV_TYPE }}/session.db'
related_channel: '@nexus_search'

View File

@ -9,8 +9,6 @@ from telethon.tl.types import ChannelParticipantsSearch
class AdminLogReader(AioThing):
channel_name = '@nexus_search'
def __init__(self, telegram_config):
super().__init__()
self.subscriptors = set()
@ -21,6 +19,7 @@ class AdminLogReader(AioThing):
database=telegram_config['database'],
flood_sleep_threshold=25,
)
self.channel_name = telegram_config['related_channel']
self.last_max_id = 0
def statbox(self, **kwargs):

View File

@ -62,7 +62,7 @@ idna==2.10
isort==5.8.0
itsdangerous==1.1.0
izihawa_types==0.1.0
izihawa_utils==0.3.0
izihawa_utils==0.3.1
Jinja2==2.11.3
jupyter==1.0.0
kazoo==2.8.0