I'm new to telegram bots, I want to know when we add a telegram bot to a group, can it access to any information about group members?? and I know about privacy mode, whether it is on or off , can bot access to any information about the user who sent a message that the bot can read??
Asked
Active
Viewed 2.6k times
1 Answers
21
A bot has access to:
- The user's unique identifier (user id)
- The user's first name
- The user's last name (if the user has specified his last name in the settings)
- The user's username (if the user has configured a username)
The bot can only extract this info from a Message (i.e. it cannot query the group member's names).
If privacy mode is disabled, the bot can read all messages sent in a group. If it is enabled, a bot is only receives messages aimed directly at the bot (e.g. using a command or a reply to a message from the bot). A user is able to check whether a bot has Privacy mode enabled/disabled in the list of group members.
Sidenote: take care when adding bots to a group that have privacy mode disabled, since they might be maliciously storing messages.
Sources:

Pieter van den Ham
- 4,381
- 3
- 26
- 41
-
1But using the *group_ID* can i obtain information about the members list if bot is added to it? – paolo2988 Oct 23 '15 at 14:17
-
3It's quite the opposite about privacy mode: enabled means that bot **will not receive** all messages in the group, only commands. And you actually can check if this mode is enabled: look at bot in the list of group participants. – retif Nov 11 '15 at 07:17
-
1@v1sc3rr4k no, you can not obtain the list of group participants by groupID. – retif Nov 11 '15 at 07:18
-
1Is it able to check online status? – arman_aegit Oct 13 '16 at 02:54
-
You can know bot privacy settings listing group members. – dani herrera Nov 19 '16 at 20:21