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
not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.
import type { SetMyProfilePhotoParams } from "@yaebal/types";
await bot.api.call<boolean>("setMyProfilePhoto", {
photo: {} /* InputProfilePhoto */,
} satisfies SetMyProfilePhotoParams);official Bot API docs: https://core.telegram.org/bots/api/#setmyprofilephoto