Available methods

setMyProfilePhoto()

Changes the profile photo of the bot. Returns True on success.

parameters

parametertyperequireddescription
photoInputProfilePhotorequiredThe new profile photo to set

returns

boolean

usage in yaebal

setMyProfilePhoto is directly typed on Api — call it straight off bot.api.

bot.ts
import type { SetMyProfilePhotoParams } from "@yaebal/types";

await bot.api.setMyProfilePhoto({
  photo: {} /* InputProfilePhoto */,
} satisfies SetMyProfilePhotoParams);