DEV Community

loading...

Discussion on: How to Write Integration Tests for a Telegram Bot

Collapse
blueset profile image
Eana Hufwe Author

telethon.TelegramClient is for the user account that you use to test against the bot. If you have 2 separate bots on the Production DC (data center), there is nothing to change on the Telethon side. If your test bot is on the Test DC, you need to sign in again with some Test DC-specific arguments. More details on that can be found on Telethon docs.