starRefProgram
Signature
Section titled “Signature”starRefProgram#dd0c66f2 flags:# bot_id:long commission_permille:int duration_months:flags.0?int end_date:flags.1?int daily_revenue_per_user:flags.2?StarsAmount = StarRefProgram;Result type
Section titled “Result type”StarRefProgram
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | |
| bot_id | long | — | — | |
| commission_permille | int | — | — | |
| duration_months | flags.0?int | flags.0 | — | |
| end_date | flags.1?int | flags.1 | — | |
| daily_revenue_per_user | flags.2?StarsAmount | flags.2 | — |
| Parameter | Bit | Meaning |
|---|---|---|
| duration_months | 0 | Controlled by flags; present when this bit is set. |
| end_date | 1 | Controlled by flags; present when this bit is set. |
| daily_revenue_per_user | 2 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.types import StarRefProgramPublic access: miniproto.raw.types.StarRefProgram.
Result family
Section titled “Result family”Relationships
Section titled “Relationships”- Result family:
StarRefProgram - Accepted by:
payments.suggestedStarRefBots,userFull - Returned by:
bots.updateStarRefProgram