Skip to content

setChatAffiliateProgram

Function · TDLib 1.8.67 · d1085f9c

Changes affiliate program for a bot

setChatAffiliateProgram(
  chat_id: int53,
  parameters: AffiliateProgramParameters
) → Ok

chat_id

int53

Identifier of the chat with an owned bot for which affiliate program is changed

parameters

AffiliateProgramParameters

Parameters of the affiliate program; pass null to close the currently active program. If there is an active program, then commission and program duration can only be increased. If the active program is scheduled to be closed, then it can't be changed anymore