telegram-api

Sign in via Telethon

Sign in via Telethon Question: I’ve written a script for my friend, which uses Telethon. There I sign in with the following line^ with TelegramClient(‘test’, API_ID, API_HASH) as client: Well, it actually works with my account and another one, that is not mine. However, my buddy can’t pass the auth. He doesn’t receive verification code, …

Total answers: 1

Get last message/s from Telegram channel with Python

Get last message/s from Telegram channel with Python Question: I’m using the python-telegram-bot library to write a bot in Python that sends URLs into a channel where the bot is administrator. Now, I would like to have the bot reading, let’s say, the last 5 messages (I don’t really care about the number as I …

Total answers: 2