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: 223

  • 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_idlong
├── titlestring (optional)
├── usernamestring (optional)
└── photoPhoto (optional)
├── PhotoEmpty
│ └── idlong
└── Photo
├── has_stickerstrue (optional)
├── idlong
├── access_hashlong
├── file_referencebytes
├── dateint
├── sizesVector < PhotoSize >
│ ├── PhotoSizeEmpty
│ │ └── typestring
│ ├── PhotoSize
│ │ ├── typestring
│ │ ├── wint
│ │ ├── hint
│ │ └── sizeint
│ ├── PhotoCachedSize
│ │ ├── typestring
│ │ ├── wint
│ │ ├── hint
│ │ └── bytesbytes
│ ├── PhotoStrippedSize
│ │ ├── typestring
│ │ └── bytesbytes
│ ├── PhotoSizeProgressive
│ │ ├── typestring
│ │ ├── wint
│ │ ├── hint
│ │ └── sizesVector < int >
│ └── PhotoPathSize
│ ├── typestring
│ └── bytesbytes
├── video_sizesVector < VideoSize > (optional)
│ ├── VideoSize
│ │ ├── typestring
│ │ ├── wint
│ │ ├── hint
│ │ ├── sizeint
│ │ └── video_start_tsdouble (optional)
│ ├── VideoSizeEmojiMarkup
│ │ ├── emoji_idlong
│ │ └── background_colorsVector < int >
│ ├── stickersetInputStickerSet
│ │ ├── InputStickerSetEmpty
│ │ ├── InputStickerSetID
│ │ ├── InputStickerSetShortName
│ │ ├── InputStickerSetDice
│ │ ├── InputStickerSetPremiumGifts
│ │ └── InputStickerSetTonGifts
│ ├── sticker_idlong
│ └── background_colorsVector < int >
└── dc_idint

Example

RequestedPeerChannel(
    channel_id=0,
)