Automate posting messages to a Telegram channel via API

apadana picture apadana · Feb 22, 2016 · Viewed 24.3k times · Source

I am new to the Telegram API. I would like to automate posting messages to my public telegram channel. I read a few posts that with bots I can achieve this, but I am not sure if that's the best way and whether the API has an option to directly post to a channel.

I would like to get some start points on how to achieve this? Which API should I use? Whether I need a dev account or bot, etc?

Answer

Eisa picture Eisa · Feb 8, 2017

You can use bots to send message to channels. But there is some limitation, like size of files.

  1. create your bot, by sending message to @botfather
  2. add the bot to your channel. stackoverflow
  3. write a code to send message to your channel. bot api