Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type SetChatDescription = "setChatDescription" :> (RequiredQueryParam "chat_id" SomeChatId :> (QueryParam "description" Text :> Post '[JSON] (Response Bool)))
- setChatDescription :: SomeChatId -> Maybe Text -> ClientM (Response Bool)
setChatDescription
type SetChatDescription = "setChatDescription" :> (RequiredQueryParam "chat_id" SomeChatId :> (QueryParam "description" Text :> Post '[JSON] (Response Bool))) Source #
:: SomeChatId | Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) |
-> Maybe Text | New chat description, 0-255 characters |
-> ClientM (Response Bool) |
Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.