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
| parameter | type | required | description |
|---|---|---|---|
user_id | number | required | Unique identifier of the target user |
emoji_status_custom_emoji_id | string | optional | Custom emoji identifier of the emoji status to set. Pass an empty string to remove the status. |
emoji_status_expiration_date | number | optional | Expiration 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.
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.
/** 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">)official Bot API docs: https://core.telegram.org/bots/api/#setuseremojistatus