Get Telegram Group Chat ID

21 Sep 2022
0 Comments

Option 1

You can get Chat ID in this way.

On private chat with your bot, send a random message. You will search this message later.

Get Your API-token from bot_father : XXXXXXXXX:YYYYYYY-YYYYYYYYYYYYYYYYY_YY

Then, on your browser make a request with that url :

https://api.telegram.org/botXXXXXXXXX:YYYYYYY-YYYYYYYYYYYYYYYYY_YY/getUpdates

The request returns a json response, in json text search your random message and get chat id in that object.

Option 2

Leave a Reply

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.