mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-26 17:30:04 +01:00
fix pyrogram clients
This commit is contained in:
parent
e738f59aa9
commit
0a5d9b78a5
1 changed files with 2 additions and 2 deletions
|
@ -350,8 +350,8 @@ 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'])
|
app = Client('crawler', session_string=os.environ['TELEGRAM_SESSION'], in_memory=True)
|
||||||
app_test = Client('crawler_test', session_string=os.environ['TELEGRAM_SESSION_TEST'], test_mode=True)
|
app_test = Client('crawler_test', session_string=os.environ['TELEGRAM_SESSION_TEST'], test_mode=True, in_memory=True)
|
||||||
await app.start()
|
await app.start()
|
||||||
await app_test.start()
|
await app_test.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue