电报机器人可以访问有关用户的哪些信息? [英] what information about user can a telegram bot access?

查看:77
本文介绍了电报机器人可以访问有关用户的哪些信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是电报机器人的新手,我想知道当我们将电报机器人添加到群组时,它可以访问有关群组成员的任何信息吗??并且我知道隐私模式,无论是开启还是关闭,bot 可以访问有关发送消息的用户的任何信息,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??

推荐答案

机器人可以访问:

  • 用户的唯一标识符(用户 ID)
  • 用户的名字
  • 用户的姓氏(如果用户在设置中指定了他的姓氏)
  • 用户的用户名(如果用户已经配置了用户名)

机器人只能从消息中提取此信息(即它不能查询群组成员的姓名).

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.

来源:

这篇关于电报机器人可以访问有关用户的哪些信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆