Telegram API

Using Python and Telethon to access the Telegram API

A step by step guide showing how to use Python and the Telethon library to access the Telegram API. I’ll walk you through how to parse text messages (in this case messages containing answers to quiz questions) and subsequently write them to an Excel (.xlsx) file. With some changes the process is of course applicable to any kind of text from any number of Telegram messages.