RequestedPeerChannel

class pyrogram.raw.types.RequestedPeerChannel

Info about a channel/supergroup, shared by a user with the currently logged in bot using messages.sendBotRequestedPeer.

Constructor of RequestedPeer.

Details:
  • Layer: 227

  • ID: 8BA403E4

Parameters:
  • channel_id (int 64-bit) – Channel/supergroup ID.

  • title (str, optional) – Channel/supergroup title.

  • username (str, optional) – Channel/supergroup username.

  • photo (Photo, optional) – Channel/supergroup photo.

TL Schema

requestedPeerChannel#8ba403e4
flags:#
channel_id:long
title:flags.0?string
username:flags.1?string
photo:flags.2?Photo

= RequestedPeer

Parameter Tree

RequestedPeerChannel
├── channel_id → long
├── title → string (optional)
├── username → string (optional)
└── photo → Photo (optional)
├── PhotoEmpty
│ └── id → long
└── Photo
├── has_stickers → true (optional)
├── id → long
├── access_hash → long
├── file_reference → bytes
├── date → int
├── sizes → Vector < PhotoSize >
│ ├── PhotoSizeEmpty
│ │ └── type → string
│ ├── PhotoSize
│ │ ├── type → string
│ │ ├── w → int
│ │ ├── h → int
│ │ └── size → int
│ ├── PhotoCachedSize
│ │ ├── type → string
│ │ ├── w → int
│ │ ├── h → int
│ │ └── bytes → bytes
│ ├── PhotoStrippedSize
│ │ ├── type → string
│ │ └── bytes → bytes
│ ├── PhotoSizeProgressive
│ │ ├── type → string
│ │ ├── w → int
│ │ ├── h → int
│ │ └── sizes → Vector < int >
│ └── PhotoPathSize
│ ├── type → string
│ └── bytes → bytes
├── video_sizes → Vector < VideoSize > (optional)
│ ├── VideoSize
│ │ ├── type → string
│ │ ├── w → int
│ │ ├── h → int
│ │ ├── size → int
│ │ └── video_start_ts → double (optional)
│ ├── VideoSizeEmojiMarkup
│ │ ├── emoji_id → long
│ │ └── background_colors → Vector < int >
│ ├── stickerset → InputStickerSet
│ │ ├── InputStickerSetEmpty
│ │ ├── InputStickerSetID
│ │ ├── InputStickerSetShortName
│ │ ├── InputStickerSetDice
│ │ ├── InputStickerSetPremiumGifts
│ │ └── InputStickerSetTonGifts
│ ├── sticker_id → long
│ └── background_colors → Vector < int >
└── dc_id → int

Example

RequestedPeerChannel(
    channel_id=0,
)