You can do this by making use of the get Updates method
Entering the below code into any web browser immediately after adding the bot to the group. You will be able to locate the ID from the resultant JSON response.
Note that the group ID will always be a negative value.
20% project Telegram group details