1. Search for BotFather in search box
2. Create a new bot
Note 1: You can type /start
for get all commands
- Type
/newbot
in a message box - Type your bot name (whatever you want)
- Type your bot username (must have suffix
_bot
)
3. Create a channel
Create a channel so that your bot can send alert/notification to telegram
3.1 Set your bot as an admin
3.2 How to get your channel id
- Go to here
- Click on your channel
- Look at the URL and find the part that looks like
c1234567890_1234567890123456789
- Get the string before underscore –>
c1234567890
- Remove the prefixed letter –>
1234567890
- Add prefix with a
-100
–> your channel id is-1001234567890
Now you can use your
- Bot ID
- Bot username
- Channel ID and Telegram API to receive message/notification/alert from your services