payments.EditConnectedStarRefBot

class pyrogram.raw.functions.payments.EditConnectedStarRefBot

Leave a bot’s affiliate program »

Details:
  • Layer: 227

  • 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
├── revoked → true (optional)
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── link → string

Example

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