payments.ConnectStarRefBot

class pyrogram.raw.functions.payments.ConnectStarRefBot

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

Details:
  • Layer: 227

  • 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
├── 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
└── bot → InputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_id → long
│ └── access_hash → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── user_id → long

Example

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