TelegramBot.promoteChatMember

Promote or demote a user in a supergroup or a channel

  1. bool promoteChatMember(T chat_id, int user_id)
    struct TelegramBot
    @trusted
    bool
    promoteChatMember
    (
    T
    )
  2. bool promoteChatMember(PromoteChatMemberMethod m)

Parameters

chat_id T

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

user_id int

Unique identifier of the target user

Return Value

Type: bool

true on success

Throws

TelegramBotException on errors

See Also

PromoteChatMemberMethod, $(LINKhttps://core.telegram.org/bots/api#promotechatmember)

Meta