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
from telethon import TelegramClient | |
from telethon.tl.functions.channels import GetParticipantsRequest | |
from telethon.tl.types import ChannelParticipantsRecent | |
from telethon.utils import get_input_peer | |
api_id = 123456 # Use your own values here. https://my.telegram.org | |
api_hash = '0123456789abcdef0123456789abcdef' | |
phone_number = '+34600000000' | |
client = TelegramClient('%sessionname%', api_id, api_hash) # feel free to edit %sessionname% as you want |