telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Methods.LeaveChat

Contents

Synopsis

leaveChat

type LeaveChat = "leaveChat" :> (RequiredQueryParam "chat_id" SomeChatId :> Post '[JSON] (Response Bool)) Source #

leaveChat Source #

Arguments

:: SomeChatId

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

-> ClientM (Response Bool) 

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