payments.EditConnectedStarRefBot
- class pyrogram.raw.functions.payments.EditConnectedStarRefBot
Leave a bot’s affiliate program »
- Details:
Layer:
223ID:
E4FCA4A3
- Parameters:
peer (
InputPeer) – The peer that was affiliatedlink (
str) – The affiliate link to revokerevoked (
bool, optional) – If set, leaves the bot’s affiliate program
- Returns:
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│ ├──
InputPeerUserFromMessage│ │ ├── 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 →
stringExample
await app.invoke(
EditConnectedStarRefBot(
revoked=None,
peer=await app.resolve_peer(chat_id),
link="text",
)
)