Skip to content

Feature request: expose user bio to bots #839

@mikerockett

Description

@mikerockett

Antispam bots currently have no way to read a user's bio when they join a group. The Bot API does return user info via getChat for users sharing a group with the bot, but the bio field is excluded unless the user has privately interacted with the bot. The bio is visible to all group members, yet bots are specifically locked out of it. Spammers exploit this gap by putting spam content in their bio, knowing bots can't detect it (my antispam bot is getting plenty of reports about these accounts). MTProto exposes this via users.getFullUser, but rate limits make it impractical at scale (and it's not right to need a userbot for this sort of thing anyway).

Request:

  1. Add an optional bio field to ChatMemberUpdated and ChatJoinRequest so bots can evaluate bios on join.
  2. Include the bio in getChat responses for any user the bot can already retrieve info for, not only users who have privately messaged the bot. This would help in cases where bots join, update their bio, and then spam an innocent looking message, enticing viewers to open their profiles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions