Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SetChatPhotoRequest = SetChatPhotoRequest {}
- type SetChatPhoto = "setChatPhoto" :> (MultipartForm Tmp SetChatPhotoRequest :> Post '[JSON] (Response Bool))
- setChatPhoto :: SetChatPhotoRequest -> ClientM (Response Bool)
- defSetChatPhoto :: SomeChatId -> InputFile -> SetChatPhotoRequest
setChatPhoto
data SetChatPhotoRequest Source #
Request parameters for setChatPhoto
.
SetChatPhotoRequest | |
|
Instances
type SetChatPhoto = "setChatPhoto" :> (MultipartForm Tmp SetChatPhotoRequest :> Post '[JSON] (Response Bool)) Source #
setChatPhoto :: SetChatPhotoRequest -> ClientM (Response Bool) Source #
Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.
- Note*: Only
InputFile
case might be used inSetChatPhotoRequest
. Rest cases will be rejected by Telegram.