mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-11-18 09:19:26 +01:00
- feat(idm): Move related channel to configs
2 internal commit(s) GitOrigin-RevId: 5ca92c5edb4fd4e19f6322307168581146dd9618
This commit is contained in:
parent
9ce67ec590
commit
c623e67a6d
@ -15,3 +15,4 @@ telegram:
|
||||
app_id: 00000
|
||||
database:
|
||||
session_id: '/usr/lib/idm-api/{{ ENV_TYPE }}/session.db'
|
||||
related_channel: '@nexus_search'
|
||||
|
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user