Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automate posting messages to a Telegram channel via API

Tags:

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?

like image 880
apadana Avatar asked Feb 22 '16 07:02

apadana


People also ask

How can we create automated Telegram bot to post in Telegram channel group?

Open the Telegram's menu and click New group. In the pop-up window you need to write a name for your group and click Next. On the next step invite new members to the group. Now you need to find your bot, choose it and click Create.

Is there any way to auto forward a message in a telegram channel to a contact or group?

redf0x1 / Auto-Forward-Messages You can use this BOT as a distribution of messages from any telegram chats (private/public channels, private/public groups, direct chats) into one or many chat.


1 Answers

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
like image 98
Eisa Avatar answered Oct 11 '22 00:10

Eisa