How can we help?

Use the box below to search in our knowledge base. If your question isn't here, open a new ticket

BOT FAQs
26 Aug 2020 Bots 129 0

Where can I submit bot related suggestions?

The Bot API is still in its infancy. There are many potential features to consider and implement. Telegram is currently studying what people do with their bots to see which directions will be the most beneficial for the platform. Send suggestions and questions in English to Telegram's official @BotSupport account.


Where can I find example bot code to help me create my own bot?

Here are some third party code examples:

Way more examples (even non-outdated ones) you can find on Telegram's official Bot web page for developers here.


Can bots download files?

Bots cannot download files and media yet. Currently, bots can only send a file to a user by file_id. Telegram is still working on the Bot API and many more options will become available in the future.


Why are my webhooks not working?

You will need a valid SSL certificate for webhooks to work. Please note that Telegram currently does not support self-signed certificates, but CloudFlare's Universal SSL in Flexible SSL mode will work with the Bot API. At this moment Telegram supports these ports for webhooks: 88, 443, 8443, and 80.


Are Secret Chats with bots possible?

The Bot API does not support Secret Chats at the moment. End-to-end encrypted conversations with bots do not sound very mass market. But, while Telegram doubts this is something the Bot API needs urgently, it is already possible to achieve Secret Chats with bots using pre-platform Telegram CLI-based code.

For example, in a group with two bots @TelegramTest1Bot and @TelegramTest2Bot:

  • /command@Bot1 → will only be received by @Bot1
  • /command@Bot2 → will only be received by @Bot2
  • /command → will be received by both bots @Bot1 & @Bot2