getUserProfileAudios()
Use this method to get a list of profile audios for a user. Returns a UserProfileAudios object.
parameters
| parameter | type | required | description |
|---|---|---|---|
user_id | number | required | Unique identifier of the target user |
offset | number | optional | Sequential number of the first audio to be returned. By default, all audios are returned. |
limit | number | optional | Limits the number of audios to be retrieved. Values between 1-100 are accepted. Defaults to 100. |
returns
usage in yaebal
not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.
import type { GetUserProfileAudiosParams, UserProfileAudios } from "@yaebal/types";
await bot.api.call<UserProfileAudios>("getUserProfileAudios", {
user_id: 123456789,
} satisfies GetUserProfileAudiosParams);context shortcut
also available as ctx.getUserProfileAudios() on
16
context types — see @yaebal/contexts.
/** Use this method to get a list of profile audios for a user. Returns a [UserProfileAudios](https://core.telegram.org/bots/api/#userprofileaudios) object. */
ctx.getUserProfileAudios(params: Omit<GetUserProfileAudiosParams, "user_id">)official Bot API docs: https://core.telegram.org/bots/api/#getuserprofileaudios