haskell-tdlib-2.0.53.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.SetChatAffiliateProgram

Synopsis

Documentation

data SetChatAffiliateProgram Source #

Changes affiliate program for a bot. Returns Ok

Constructors

SetChatAffiliateProgram 

Fields

  • chat_id :: Maybe Int

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

  • parameters :: Maybe 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