Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/mod.ts>Client#setChatPhoto

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
method Client.prototype.setChatPhoto
import { Client } from "https://deno.land/x/mtkruto@0.1.157/mod.ts";

Set a chat's photo.

Parameters

chatId: number

The identifier of the chat.

photo: FileSource

A photo to set as the chat's photo.

optional
params: SetChatPhotoParams

Returns

Promise<void>