OwnedGifts

Raw MD
Contains the list of gifts received and owned by a user or a chat

Contains the list of gifts received and owned by a user or a chat.

Fields

FieldTypeRequiredDescription
total_countIntegerAlwaysThe total number of gifts owned by the user or the chat
giftsArray of OwnedGiftAlwaysThe list of gifts
next_offsetStringOptionalOffset for the next request. If empty, then there are no more results.
Botlify Cloud Runtime
Credentials are auto-injected in .env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.