# `ExGram.Model.TransactionPartnerAffiliateProgram`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.64.0/lib/ex_gram.ex#L7118)

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

Check the [documentation of this model on Telegram Bot API](https://core.telegram.org/bots/api#transactionpartneraffiliateprogram)

- `type`: Type of the transaction partner, always "affiliate_program”
- `commission_per_mille`: The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users
- `sponsor_user (optional)`: Optional. Information about the bot that sponsored the affiliate program

# `t`

```elixir
@type t() :: %ExGram.Model.TransactionPartnerAffiliateProgram{
  commission_per_mille: integer(),
  sponsor_user: ExGram.Model.User.t() | nil,
  type: String.t()
}
```

# `decode_as`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
