mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-03-25 01:22:06 +01:00
lmao... pyro 2.0...
This commit is contained in:
parent
1c12c322c7
commit
9995765b42
1 changed files with 9 additions and 3 deletions
|
@ -368,8 +368,14 @@ async def collect_translations_paginated_content(url: str, session: aiohttp.Clie
|
||||||
async def track_mtproto_configs():
|
async def track_mtproto_configs():
|
||||||
from pyrogram import Client
|
from pyrogram import Client
|
||||||
|
|
||||||
app = Client('crawler', session_string=os.environ['TELEGRAM_SESSION'], in_memory=True)
|
kw = {
|
||||||
app_test = Client('crawler_test', session_string=os.environ['TELEGRAM_SESSION_TEST'], test_mode=True, in_memory=True)
|
'api_id': int(os.environ['TELEGRAM_API_ID']),
|
||||||
|
'api_hash': os.environ['TELEGRAM_API_HASH'],
|
||||||
|
'in_memory': True
|
||||||
|
}
|
||||||
|
|
||||||
|
app = Client('crawler', session_string=os.environ['TELEGRAM_SESSION'], **kw)
|
||||||
|
app_test = Client('crawler_test', session_string=os.environ['TELEGRAM_SESSION_TEST'], test_mode=True, **kw)
|
||||||
await app.start()
|
await app.start()
|
||||||
await app_test.start()
|
await app_test.start()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue