mirror of
https://github.com/bellingcat/cisticola.git
synced 2026-06-12 21:38:33 +03:00
formatted with black, added pre-commit hook, pegged typing_extensions package version to fix spaCy issue
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import argparse
|
||||
from telethon.sync import TelegramClient
|
||||
from telethon.sync import TelegramClient
|
||||
import os
|
||||
|
||||
if __name__ == "__main__":
|
||||
@@ -8,9 +8,9 @@ if __name__ == "__main__":
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
api_id = os.environ['TELEGRAM_API_ID']
|
||||
api_hash = os.environ['TELEGRAM_API_HASH']
|
||||
phone = os.environ['TELEGRAM_PHONE']
|
||||
api_id = os.environ["TELEGRAM_API_ID"]
|
||||
api_hash = os.environ["TELEGRAM_API_HASH"]
|
||||
phone = os.environ["TELEGRAM_PHONE"]
|
||||
telethon_session_name = args.telethon_session
|
||||
|
||||
if telethon_session_name is None:
|
||||
@@ -19,4 +19,4 @@ if __name__ == "__main__":
|
||||
client = TelegramClient(telethon_session_name, api_id, api_hash)
|
||||
client.start()
|
||||
|
||||
client.disconnect()
|
||||
client.disconnect()
|
||||
|
||||
Reference in New Issue
Block a user