How to create a Telegram bot
Written by
Updated at June 17, 2026
In this tutorial, you will create a Telegram bot using serverless technologies. The bot will be able to respond to messages and send images.
Yandex Object Storage is used for storage of static resources. Yandex API Gateway receives user requests and redirects them to Yandex Cloud Functions for processing.
You can create the infrastructure for your Telegram bot using one of these tools:
- Management console: Create your URL shortener step by step in the Yandex Cloud management console.
- Terraform: Streamline creating and managing your resources with the infrastructure as code (IaC) approach. Download a Terraform configuration example from the SourceCraft repository and then deploy your infrastructure using the Yandex Cloud Terraform provider.