payments.ConnectStarRefBot

class pyrogram.raw.functions.payments.ConnectStarRefBot

Join a bot’s affiliate program, becoming an affiliate »

Details:
  • Layer: 223

  • ID: 7ED5348A

Parameters:
  • peer (InputPeer) – The peer that will become the affiliate: star commissions will be transferred to this peer’s star balance.

  • bot (InputUser) – The bot that offers the affiliate program

Returns:

payments.ConnectedStarRefBots

TL Schema

payments.connectStarRefBot#7ed5348a
peer:InputPeer
bot:InputUser

= payments.ConnectedStarRefBots

Parameter Tree

ConnectStarRefBot
├── 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
└── botInputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── user_idlong

Example

await app.invoke(
    ConnectStarRefBot(
        peer=await app.resolve_peer(chat_id),
        bot=await app.resolve_user(chat_id),
    )
)