set_chat_affiliate_program


Description:

public async Ok set_chat_affiliate_program (int64 chat_id, AffiliateProgramParameters parameters) throws TDLibError

Changes affiliate program for a bot

Parameters:

chat_id

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

parameters

Parameters of the affiliate program; pass null to Client.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