From 16aad4ef2cd7b8d7bd78ab7d7d36ecb13c54fc9a Mon Sep 17 00:00:00 2001 From: Logan Williams Date: Thu, 31 Mar 2022 16:50:20 +0200 Subject: [PATCH] TelegramTelethonScraper: Using the username is fine. --- cisticola/scraper/telegram_telethon.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cisticola/scraper/telegram_telethon.py b/cisticola/scraper/telegram_telethon.py index 8f7fefa..fb9a58f 100644 --- a/cisticola/scraper/telegram_telethon.py +++ b/cisticola/scraper/telegram_telethon.py @@ -115,12 +115,6 @@ class TelegramTelethonScraper(Scraper): phone = os.environ['TELEGRAM_PHONE'] with TelegramClient(phone, api_id, api_hash) as client: - try: - client.get_entity(channel.platform_id) - username = channel.platform_id - except: - logger.info(f"Channel {username} not encountered before") - for post in client.iter_messages(username): post_url = f'{channel.url}/{post.id}'