telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Interface AffiliateInfo

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

    interface AffiliateInfo {
        affiliate_chat?: Chat;
        affiliate_user?: User;
        amount: number;
        commission_per_mille: number;
        nanostar_amount?: number;
    }
    Index
    affiliate_chat?: Chat

    The chat that received an affiliate commission if it was received by a chat.

    affiliate_user?: User

    The bot or the user that received an affiliate commission if it was received by a bot or a user.

    amount: number

    Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds.

    commission_per_mille: number

    The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users.

    nanostar_amount?: number

    The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds.