Skip to main content

Get the group id to send messages from the CLI

Now we need to obtain the id of the group in which we have added our bot, there are different ways to do it, but the simplest is to add another bot that extracts that information very easily GetIDs Bot (

We add it to the group that we want to know the id of and it will give us a series of instructions for its use. But just adding it will give us more. The information we need is the group id.


Once we have the group id, we copy and save it, we can eliminate this bot from the group if we want, it has already fulfilled the objective of giving us the id.