skip to Main Content

Can we change the chat ID of a telegram bot from Telegram to ID CHAT ?

I want to save more chat IDs in my database.

To extrapolate it, I use this method:

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

Besides this, is every chat ID (for private chat, group and channel) is unique ?
I would to use it like a token.
Is a good idea ?

2

Answers


  1. Chat ID’s of groups does change!

    In my case it happened when the 26th member was added (2nd bot) and got admin rights.

    -4242ххххх id changed to -10013430ххххх.

    Group had no chat_photo and color of circle sign had been also changed.

    Also read here about migrate to supergroup and get old id.

    Login or Signup to reply.
  2. Chat ID’s of groups could change!

    It could change if the chat is changed. For example if a group is upgraded to supergroup its chat id will get changed too.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search