Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what information about user can a telegram bot access?

Tags:

telegram-bot

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??

like image 788
FazeL Avatar asked Aug 14 '15 12:08

FazeL


People also ask

What can Telegram bots see?

All bots, regardless of settings, will receive: All service messages. All messages from private chats with users. All messages from channels where they are a member.

Can Telegram bots steal information?

Bots have legitimate uses on the popular chat apps, but are being exploited by cybercriminals. Cybercriminals are using bots deployed in popular messaging apps Discord and Telegram to steal credentials, new research has revealed.

Can anyone access my Telegram Bot?

With Telegram bots are not private. Everybody can find them. The difference is that a certain communication channel with the bot can be made private. This is a group with the bot that you and the bot are members of.

Can Telegram Bot send message to specific user?

In order to send a message to "@Username", you will need them to start your bot, and then store the username with the user_id. Then, you can input the username to find the correct user_id each time you want to send them a message.


1 Answers

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:

  • https://core.telegram.org/bots/api#user
  • https://core.telegram.org/bots#privacy-mode
like image 132
Pieter van den Ham Avatar answered Oct 14 '22 00:10

Pieter van den Ham