setUserEmojiStatus

inline fun setUserEmojiStatus(userId: Long, emojiStatusCustomEmojiId: String? = null, emojiStatusExpirationDate: Instant? = null): SetUserEmojiStatusAction

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.

Api reference

Parameters

userId

Unique identifier of the target user

emojiStatusCustomEmojiId

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

emojiStatusExpirationDate

Expiration date of the emoji status, if any