How to write a Telegram bot that uses real-world API

Telegram Bot with Python for Todoist

A complete tutorial and source code for Telegram bot in Python for Todoist App

Amir Yousefi
6 min readFeb 1, 2020

--

In this post, I will explain how to create a Telegram bot in Python. Todoist is a great tool to manage to-do lists. Although this post can be just a general tutorial about creating a Telegram bot, I will go through connecting to Todoist API and bringing its power into Telegram, so you can learn more about working with real-world API and interacting with users in Telegram bots.

This post assumes you know basic Python. What you will learn includes:

  • Creating a Telegram Bot with Telegram Bot Father
  • Working with API in Python
  • Writing Telegram bot script in Python
  • Interacting with users in Telegram bot(showing buttons, replying to message, etc.)

Creating a Telegram Bot

First of all, we need to get a Telegram handle for our bot. Also, we need an access token to connect and interact with Telegram.

Get your bot username(Telegram handle) and access token

--

--

Amir Yousefi
Amir Yousefi

Written by Amir Yousefi

Making Impacts using Information Technology

Responses (1)