peyk.platforms.telegram.methods.set_user_emoji_status

async peyk.platforms.telegram.methods.set_user_emoji_status(self, user_id: int, *, emoji_status_custom_emoji_id: str | None = None, emoji_status_expiration_date: int | None = None) bool

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:
  • user_id – Unique identifier of the target user

  • emoji_status_custom_emoji_id – Custom emoji identifier of the emoji status to set. Pass an empty string to remove the status.

  • emoji_status_expiration_date – Expiration date of the emoji status, if any

Returns:

Result returned by Telegram on successful execution.

Return type:

bool