

Telegram, one of the most popular messaging applications, is a bit more flexible than other popular chat applications like WhatsApp or Messenger by Facebook. Telegram is a cross-platform instant messaging service that also supports video calls, VOIP, and sharing files with your friends. Launched in 2013, Telegram now has more than 300+ million active users. One of Telegram’s best features is storing messages on the server, not on your local device.

The Telegram API is also open for developers to leverage. With the right APIs, you can power your chatbots with all sorts of interactive chat-based insights, all from within the Telegram chat environment. In this article, we’ll explore how to use the Telegram API to build a chatbot that displays your current weather forecast.

We’ll overview getting Telegram API credentials, initiating a bot, writing a script to call the OpenWeatherMap API, and coding functions in Python. We’ll be covering how to get Telegram API credentials you can get directly from your mobile app, but I would suggest you go to and initiate a chat with this username BotFather. How are we going to call it? Please choose a name for your bot.” Once you hit enter, the BotFather will ask you this question: So look for Bot Father and send this message: /newbot Now let’s choose a username for your bot.
