TelegramBot.kickChatMember

Kick a user from a group, a supergroup or a channel

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

Parameters

chat_id T

Unique identifier for the target group or username of the target supergroup or 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

Meta