There are a few ways to get chat_ID. During the experiments, I added a bot that had to show a chat_ID of my group, but instead of showing me information, it deleted my chat. This action was not insecure at all.
! Be aware. Study the security issue before you add any bot to the group.
Here are my steps:
- Create a group
- Go to Group Settings and change Group type from Prived to Public
- Change Link: in my example is: t.me/TelePuzic10
- In your web browser, request: https://api.telegram.org/bot<YOUR BOT TOKEN>/getChat?chat_id=@TelePuzic10
- Take a look at the response. Your chat ID is “-100xx..xx”
- Go to Group Settings and change Group type from Public to Prived
