TelegramBot.promoteChatMember

Promote or demote a user in a supergroup or a channel

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

Return Value

Type: bool

true on success

Throws

TelegramBotException on errors

See Also

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

Meta