AffiliateInfo

Raw MD
Contains information about the affiliate that received a commission via this transaction

Contains information about the affiliate that received a commission via this transaction.

Fields

FieldTypeRequiredDescription
affiliate_userUserOptionalThe bot or the user that received an affiliate commission if it was received by a bot or a user
affiliate_chatChatOptionalThe chat that received an affiliate commission if it was received by a chat
commission_per_milleIntegerAlwaysThe number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users
amountIntegerAlwaysInteger amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds
nanostar_amountIntegerOptionalThe number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds
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.