setChatPhoto
Set a chat’s photo.
Parameters
chatId: number
The identifier of the chat.
A photo to set as the chat’s photo.
fileName?: string
The file name to assign if applicable.
fileSize?: number
The file’s size.
mimeType?: string
The mime type to assign if applicable.
chunkSize?: number
Size of each upload chunk in bytes.
signal?: AbortSignal
Upload abort signal.
Result
void
Syntax
// Required parameters only.
await client.setChatPhoto(chatId, photo);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.setChatPhoto(chatId, photo, {
fileName,
fileSize,
mimeType,
chunkSize,
signal,
});