Sharing a very simple way to have an automated telegram channel. Automated in a way that you don’t need to update it by yourself, but have a robot to do it in a timely manner.
Why people want to have an auto updated channel? For simple reasons like getting latest news, latest weather forecast, prayer time, daily education tips, golf tips, trading tips and so many other reasons that people can think of.
It only involve 3 steps:
To create a bot, you will need to text the BotFather.
Type new line:
/newbot
BotFataher will say:
Alright, a new bot. How are we going to call it? Please choose a name for your bot.
Just give any good name:
OhMyBot
BotFataher will say:
Good. Now let’s choose a username for your bot. It must end in `bot`. Like this, for example: TetrisBot or tetris_bot.
Just give any good username:
MyOhMyBot
BotFather will confirm something like this:
Done! Congratulations on your new bot. You will find it at t.me/MyOhMyBot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you’ve finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.
Use this token to access the HTTP API:
1234567890:ABCDEFGHIJKLMNOPQRZ
Keep your token secure and store it safely, it can be used by anyone to control your bot.
For a description of the Bot API, see this page: https://core.telegram.org/bots/api
Take note on the HTTP API key, you will need it later.
Then create a channel, let say your channel name is ThisIsMyTestChannel. Now add OhMyBot as admin like you adding any human, search the name.
Now bot and channel are ready!
What you need to do is access this web to send message:
https://api.telegram.org/bot1234567890:ABCDEFGHIJKLMNOPQRZ/sendMessage?chat_id=@ThisIsMyTestChannel&text=salam%20my%20test%20message
Replace any space in your message with %20 (url encode).
Well that’s about it, happy botting.
Hi thanks for dropping by. Please share the content if you think there is someone who will appreciate it.
Pingback: Create telegram bot and make it send you some news – basri.my