TransactionPartnerAffiliateProgram

Raw MD
Describes the affiliate program that issued the affiliate commission received via this transaction

Describes the affiliate program that issued the affiliate commission received via this transaction.

Fields

FieldTypeRequiredDescription
typeStringAlwaysType of the transaction partner, always "affiliate_program"
sponsor_userUserOptionalInformation about the bot that sponsored the affiliate program
commission_per_milleIntegerAlwaysThe number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users
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.