Script To Send Message
Script To Send Message
To send a message to Telegram group or channel, you should first create your own
bot. Just open Telegram, find @BotFather and type /start. Then follow instructions
to create bot and get token to access the HTTP API.
Create Channel
Create a new Channel in Telegram and add your bot as a member. So your bot could
send messages to the Channel.
In order to get Channel Id, first, post any message to the Channel. Then use this
link template to get Channel Id:
https://api.telegram.org/bot<YourBOTToken>/getUpdates