Telegram
Set up a telegram bot for public notifications
- create a group or channel on telegram and make it public
- create a telegram bot as outlined below
- after adding the bot to your group
Set up a telegram bot for admin notifications
- create a group on telegram
- create a telegram bot as outlined below
- add only the members who should be notified
- after adding the bot to your groups
- return to the BotFather and use the
/setjoingroups
to prevent the bot from joining groups - find your chat id, this will be a little more tedious since the group is private.
Create a telegram bot
- Go to telegram with the account that should own your bot
- Search for “BotFather” and start a conversation
- Enter
/newbot
- Give your bot a name, for example “ESMS Admin Bot” then press enter
- Give your bot a username which must end with
bot
for example “SCHOOL_ESMS_bot” - Your bot username has to be unique so we suggest prefixing your school name
- Do not include any spaces, use only letter, nubmers and the underscore
- Copy the information provided by the BotFather. Keep this ecure as this access token allows anyone to control your bot.
Find CHAT ID from private group
- Go to the web version of the telgram app and log in
- Open the group in the web and look at the url
- The url should look like this https://web.telegram.org/z/#
CHAT-ID
CHAT-ID
is a number which may begin with a minus sign- the url may also take the form https://web.telegram.org/#/im?p=c
CHAT-ID
_2674311763110923980 - Copy the
CHAT-ID
- Your chat is a private channel, then you will need to put “100” after the “-” and before teh other digits