Telegram Bot API

Use this method to set a tag for a regular member in a group or a supergroup. The bot must be an administrator in the chat for this to work and must have the can_manage_tags administrator right. Returns True on success.

post/setChatMemberTag

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/setChatMemberTag
  • Auth: none declared

Request body

user_idinteger required

Unique identifier of the target user

tagstring

New tag for the member; 0-16 characters, emoji are not allowed

Response

Telegram API response

oktrue required
resulttrue required

Changes

No recorded changes to this operation across all 3 revisions of this API.