SafeW|API文档
  • 🤖Bot API
    • Introduction
    • getMe
    • getUpdates
    • sendMessage
    • sendPhoto
    • sendVideo
    • sendDocument
    • forwardMessage
    • editMessageText
    • deleteMessage
    • getChat
    • leaveChat
    • getChatMemberCount
    • banChatMember
    • sendVoice
    • sendMediaGroup
    • sendAudio
  • setWebhook
  • deleteWebhook
  • getWebhookInfo
  • deleteMessages
  • editMessageReplyMarkup
  • copyMessage
  • promoteChatMember
  • setChatPermissions
  • restrictChatMember
  • setMyDefaultAdministratorRights
  • setChatAdministratorCustomTitle
  • getChatMember
  • setChatTitle
  • getChatAdministrators
  • getMyCommands
  • setMyCommands
  • createChatInviteLink
  • editChatInviteLink
  • revokeChatInviteLink
  • approveChatJoinRequest
  • declineChatJoinRequest
  • answerCallbackQuery
Powered by GitBook
On this page
  1. Bot API

leaveChat

Use this method for your bot to leave a group, supergroup or channel. Returns True on success.

Parameter
Type
Required
Description

chat_id

Integer or String

Yes

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

PreviousgetChatNextgetChatMemberCount
🤖