This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code from https://python.plainenglish.io/telegram-channel-listener-with-python-8176ebe3c89b | |
import configparser | |
import json | |
import re | |
from telethon.errors import SessionPasswordNeededError | |
from telethon import TelegramClient, events, sync | |
from telethon.tl.functions.messages import (GetHistoryRequest) | |
from telethon.tl.types import ( | |
PeerChannel |