payments.EditConnectedStarRefBot

class pyrogram.raw.functions.payments.EditConnectedStarRefBot

Leave a bot’s affiliate program »

Details:
  • Layer: 223

  • ID: E4FCA4A3

Parameters:
  • peer (InputPeer) – The peer that was affiliated

  • link (str) – The affiliate link to revoke

  • revoked (bool, optional) – If set, leaves the bot’s affiliate program

Returns:

payments.ConnectedStarRefBots

TL Schema

payments.editConnectedStarRefBot#e4fca4a3
flags:#
revoked:flags.0?true
peer:InputPeer
link:string

= payments.ConnectedStarRefBots

Parameter Tree

EditConnectedStarRefBot
├── revokedtrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── linkstring

Example

await app.invoke(
    EditConnectedStarRefBot(
        revoked=None,
        peer=await app.resolve_peer(chat_id),
        link="text",
    )
)