TelegramBot.unbanChatMember

Unban a previously kicked user in a group, a supergroup or a channel

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

Parameters

chat_id T

Unique identifier for the target group or username of the target supergroup or channel (in the format @username)

user_id int

Unique identifier of the target user

Return Value

Type: bool

true on success

Throws

TelegramBotException on errors

See Also

Meta