- Open https://telegram.me/botfather, create a bot and get a <Bot_token>
- Go to your bot and launch it using
/start
- Add your bot as an admin to the desired chat
- Send a test message to your bot from the channel use
@bot_name
- Get updates received by your bot:
https://api.telegram.org/bot<Bot_token>/getUpdates
- Get the chat_id from the response of step 4
result.$.message.chat.id
, it starts with a-
- Send a message to a channel through your bot:
https://api.telegram.org/bot<Bot_token>/sendMessage?chat_id=<chat_id>&text=hello
Last active
January 30, 2019 08:11
-
-
Save Phazz/58d316bb0eda0777a6d2b549487468cd to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment