Skip to content

setChatMemberTag

Returns boolean

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.

Required: chat_id, user_id · Optional: 1 parameters

Limits:

  • tag: 0-16 characters
Try it
Token saved
Response

TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("set_chat_member_tag", {
chat_id: "YOUR_CHAT_ID",
user_id: 0
})

Parameters

chat_id number | string Required
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).

user_id number Required
Unique identifier of the target user.

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

setBusinessAccountBio · setBusinessAccountGiftSettings · setBusinessAccountName · setBusinessAccountProfilePhoto · setBusinessAccountUsername · setChatAdministratorCustomTitle · setChatDescription · setChatMenuButton · setChatPermissions · setChatPhoto · setChatStickerSet · setChatTitle · setCustomEmojiStickerSetThumbnail · setGameScore · setMessageReaction · setMyCommands · setMyDefaultAdministratorRights · setMyDescription · setMyName · setMyProfilePhoto · setMyShortDescription · setPassportDataErrors · setStickerEmojiList · setStickerKeywords · setStickerMaskPosition · setStickerPositionInSet · setStickerSetThumbnail · setStickerSetTitle · setUserEmojiStatus · setWebhook