TelegramBot.leaveChat

Leave a group, supergroup or channel

  1. bool leaveChat(T chat_id)
    struct TelegramBot
    @trusted
    bool
    leaveChat
    (
    T
    )
  2. bool leaveChat(LeaveChatMethod m)

Parameters

chat_id T

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

Return Value

Type: bool

true on success

Throws

TelegramBotException on errors

See Also

Meta