Available methods

setUserEmojiStatus()

Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method requestEmojiStatusAccess. Returns True on success.

parameters

parametertyperequireddescription
user_idnumberrequiredUnique identifier of the target user
emoji_status_custom_emoji_idstringoptionalCustom emoji identifier of the emoji status to set. Pass an empty string to remove the status.
emoji_status_expiration_datenumberoptionalExpiration date of the emoji status, if any

returns

boolean

usage in yaebal

not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.

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

await bot.api.call<boolean>("setUserEmojiStatus", {
  user_id: 123456789,
} satisfies SetUserEmojiStatusParams);

context shortcut

also available as ctx.setUserEmojiStatus() on 16 context types — see @yaebal/contexts.

context shortcut
/** Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method [requestEmojiStatusAccess](/bots/webapps#initializing-mini-apps). Returns *True* on success. */
ctx.setUserEmojiStatus(params: Omit<SetUserEmojiStatusParams, "user_id">)