How to create the Telegram-Bot?
Please follow to official documentation.
Get the Chat ID
The Chat ID parameter is your Telegram-identifier. It is different from your phone number or Telegram-login (@xxxxxxxx).
- Enter the following command on your browser. Use your Bot Token (it’s the long token)
https://api.telegram.org/bot/getUpdates
- Look for
"chat":{"id":-xxxxxxxxx,
-xxxxxxxxx
is your chat id (with the negative sign).
If you cannot see your chat id, remove your bot from the chat and add it back. Resend the command and you will see the chat id. Take note that the chat id includes the minus sign.
More info