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

Telegram.Bot.API.Methods.SetChatPhoto

Contents

Synopsis

setChatPhoto

data SetChatPhotoRequest Source #

Request parameters for setChatPhoto.

Constructors

SetChatPhotoRequest 

Fields

Instances

Instances details
ToMultipart Tmp SetChatPhotoRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SetChatPhoto

Methods

toMultipart :: SetChatPhotoRequest -> MultipartData Tmp

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.