setMyProfilePhoto()
Changes the profile photo of the bot. Returns True on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
photo | InputProfilePhoto | required | The new profile photo to set |
returns
boolean
usage in yaebal
setMyProfilePhoto is directly typed on Api — call it straight off bot.api.
import type { SetMyProfilePhotoParams } from "@yaebal/types";
await bot.api.setMyProfilePhoto({
photo: {} /* InputProfilePhoto */,
} satisfies SetMyProfilePhotoParams);official Bot API docs: https://core.telegram.org/bots/api/#setmyprofilephoto