PeerStories

class pyrogram.raw.base.PeerStories

Stories associated to a peer

Constructors:

This base type has 1 constructor available.

PeerStories

Stories associated to a peer

TL Schema

peerStories#9a35e999
flags:#
peer:Peer
max_read_id:flags.0?int
stories:Vector<StoryItem>

= PeerStories

Parameter Tree

PeerStories
├── peer → Peer
│ ├── PeerUser
│ │ └── user_id → long
│ ├── PeerChat
│ │ └── chat_id → long
│ └── PeerChannel
│ └── channel_id → long
├── max_read_id → int (optional)
└── stories → Vector < StoryItem >
│ └── id → int
│ ├── close_friends → true (optional)
│ ├── live → true (optional)
│ ├── id → int
│ ├── date → int
│ └── expire_date → int
└── StoryItem
├── pinned → true (optional)
├── public → true (optional)
├── close_friends → true (optional)
├── min → true (optional)
├── noforwards → true (optional)
├── edited → true (optional)
├── contacts → true (optional)
├── selected_contacts → true (optional)
├── out → true (optional)
├── id → int
├── date → int
├── from_id → Peer (optional)
│ ├── PeerUser
│ │ └── user_id → long
│ ├── PeerChat
│ │ └── chat_id → long
│ └── PeerChannel
│ └── channel_id → long
├── fwd_from → StoryFwdHeader (optional)
│ └── StoryFwdHeader
│ ├── modified → true (optional)
│ ├── from_peer → Peer (optional)
│ │ ├── PeerUser
│ │ ├── PeerChat
│ │ └── PeerChannel
│ ├── from_name → string (optional)
│ └── story_id → int (optional)
├── expire_date → int
├── caption → string (optional)
├── entities → Vector < MessageEntity > (optional)
│ ├── MessageEntityUnknown
│ │ ├── offset → int
│ │ └── length → int
│ ├── MessageEntityMention
│ │ ├── offset → int
│ │ └── length → int
│ ├── MessageEntityHashtag
│ │ ├── offset → int
│ │ └── length → int
│ │ ├── offset → int
│ │ └── length → int
│ ├── MessageEntityUrl
│ │ ├── offset → int
│ │ └── length → int
│ ├── MessageEntityEmail
│ │ ├── offset → int
│ │ └── length → int
│ ├── MessageEntityBold
│ │ ├── offset → int
│ │ └── length → int
│ ├── MessageEntityItalic
│ │ ├── offset → int
│ │ └── length → int
│ ├── MessageEntityCode
│ │ ├── offset → int
│ │ └── length → int
│ ├── MessageEntityPre
│ │ ├── offset → int
│ │ ├── length → int
│ │ └── language → string
│ ├── MessageEntityTextUrl
│ │ ├── offset → int
│ │ ├── length → int
│ │ └── url → string
│ │ ├── offset → int
│ │ ├── length → int
│ │ └── user_id → long
│ │ ├── offset → int
│ │ ├── length → int
│ │ └── user_id → InputUser
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ └── InputUserFromMessage
│ ├── MessageEntityPhone
│ │ ├── offset → int
│ │ └── length → int
│ ├── MessageEntityCashtag
│ │ ├── offset → int
│ │ └── length → int
│ │ ├── offset → int
│ │ └── length → int
│ ├── MessageEntityStrike
│ │ ├── offset → int
│ │ └── length → int
│ ├── MessageEntityBankCard
│ │ ├── offset → int
│ │ └── length → int
│ ├── MessageEntitySpoiler
│ │ ├── offset → int
│ │ └── length → int
│ │ ├── offset → int
│ │ ├── length → int
│ │ └── document_id → long
│ │ ├── collapsed → true (optional)
│ │ ├── offset → int
│ │ └── length → int
│ │ ├── relative → true (optional)
│ │ ├── short_time → true (optional)
│ │ ├── long_time → true (optional)
│ │ ├── short_date → true (optional)
│ │ ├── long_date → true (optional)
│ │ ├── day_of_week → true (optional)
│ │ ├── offset → int
│ │ ├── length → int
│ │ └── date → int
│ │ ├── offset → int
│ │ └── length → int
│ │ ├── offset → int
│ │ ├── length → int
│ │ └── old_text → string
│ ├── offset → int
│ └── length → int
├── media → MessageMedia
│ ├── MessageMediaEmpty
│ ├── MessageMediaPhoto
│ │ ├── spoiler → true (optional)
│ │ ├── live_photo → true (optional)
│ │ ├── photo → Photo (optional)
│ │ │ ├── PhotoEmpty
│ │ │ └── Photo
│ │ ├── ttl_seconds → int (optional)
│ │ └── video → Document (optional)
│ │ ├── DocumentEmpty
│ │ └── Document
│ ├── MessageMediaGeo
│ │ └── geo → GeoPoint
│ │ ├── GeoPointEmpty
│ │ └── GeoPoint
│ ├── MessageMediaContact
│ │ ├── phone_number → string
│ │ ├── first_name → string
│ │ ├── last_name → string
│ │ ├── vcard → string
│ │ └── user_id → long
│ ├── MessageMediaDocument
│ │ ├── nopremium → true (optional)
│ │ ├── spoiler → true (optional)
│ │ ├── video → true (optional)
│ │ ├── round → true (optional)
│ │ ├── voice → true (optional)
│ │ ├── document → Document (optional)
│ │ │ ├── DocumentEmpty
│ │ │ └── Document
│ │ ├── alt_documents → Vector < Document > (optional)
│ │ │ ├── DocumentEmpty
│ │ │ └── Document
│ │ ├── video_cover → Photo (optional)
│ │ │ ├── PhotoEmpty
│ │ │ └── Photo
│ │ ├── video_timestamp → int (optional)
│ │ └── ttl_seconds → int (optional)
│ ├── MessageMediaWebPage
│ │ ├── force_large_media → true (optional)
│ │ ├── force_small_media → true (optional)
│ │ ├── manual → true (optional)
│ │ ├── safe → true (optional)
│ │ └── webpage → WebPage
│ │ ├── WebPageEmpty
│ │ ├── WebPagePending
│ │ ├── WebPage
│ │ └── WebPageNotModified
│ ├── MessageMediaVenue
│ │ ├── geo → GeoPoint
│ │ │ ├── GeoPointEmpty
│ │ │ └── GeoPoint
│ │ ├── title → string
│ │ ├── address → string
│ │ ├── provider → string
│ │ ├── venue_id → string
│ │ └── venue_type → string
│ ├── MessageMediaGame
│ │ └── game → Game
│ │ └── Game
│ ├── MessageMediaInvoice
│ │ ├── shipping_address_requested → true (optional)
│ │ ├── test → true (optional)
│ │ ├── title → string
│ │ ├── description → string
│ │ ├── photo → WebDocument (optional)
│ │ │ ├── WebDocument
│ │ │ └── WebDocumentNoProxy
│ │ ├── receipt_msg_id → int (optional)
│ │ ├── currency → string
│ │ ├── total_amount → long
│ │ ├── start_param → string
│ │ └── extended_media → MessageExtendedMedia (optional)
│ │ ├── MessageExtendedMediaPreview
│ │ └── MessageExtendedMedia
│ ├── MessageMediaGeoLive
│ │ ├── geo → GeoPoint
│ │ │ ├── GeoPointEmpty
│ │ │ └── GeoPoint
│ │ ├── heading → int (optional)
│ │ ├── period → int
│ │ └── proximity_notification_radius → int (optional)
│ ├── MessageMediaPoll
│ │ ├── poll → Poll
│ │ │ └── Poll
│ │ ├── results → PollResults
│ │ │ └── PollResults
│ │ └── attached_media → MessageMedia (optional)
│ │ ├── MessageMediaEmpty
│ │ ├── MessageMediaPhoto
│ │ ├── MessageMediaGeo
│ │ ├── MessageMediaContact
│ │ ├── MessageMediaUnsupported
│ │ ├── MessageMediaDocument
│ │ ├── MessageMediaWebPage
│ │ ├── MessageMediaVenue
│ │ ├── MessageMediaGame
│ │ ├── MessageMediaInvoice
│ │ ├── MessageMediaGeoLive
│ │ ├── MessageMediaPoll
│ │ ├── MessageMediaDice
│ │ ├── MessageMediaStory
│ │ ├── MessageMediaGiveaway
│ │ ├── MessageMediaGiveawayResults
│ │ ├── MessageMediaPaidMedia
│ │ ├── MessageMediaToDo
│ │ └── MessageMediaVideoStream
│ ├── MessageMediaDice
│ │ ├── value → int
│ │ ├── emoticon → string
│ │ └── game_outcome → messages.EmojiGameOutcome (optional)
│ │ └── messages.EmojiGameOutcome
│ ├── MessageMediaStory
│ │ ├── via_mention → true (optional)
│ │ ├── peer → Peer
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── id → int
│ │ └── story → StoryItem (optional)
│ │ ├── StoryItemDeleted
│ │ ├── StoryItemSkipped
│ │ └── StoryItem
│ ├── MessageMediaGiveaway
│ │ ├── only_new_subscribers → true (optional)
│ │ ├── winners_are_visible → true (optional)
│ │ ├── channels → Vector < long >
│ │ ├── countries_iso2 → Vector < string > (optional)
│ │ ├── prize_description → string (optional)
│ │ ├── quantity → int
│ │ ├── months → int (optional)
│ │ ├── stars → long (optional)
│ │ └── until_date → int
│ │ ├── only_new_subscribers → true (optional)
│ │ ├── refunded → true (optional)
│ │ ├── channel_id → long
│ │ ├── additional_peers_count → int (optional)
│ │ ├── launch_msg_id → int
│ │ ├── winners_count → int
│ │ ├── unclaimed_count → int
│ │ ├── winners → Vector < long >
│ │ ├── months → int (optional)
│ │ ├── stars → long (optional)
│ │ ├── prize_description → string (optional)
│ │ └── until_date → int
│ ├── MessageMediaPaidMedia
│ │ ├── stars_amount → long
│ │ └── extended_media → Vector < MessageExtendedMedia >
│ │ ├── MessageExtendedMediaPreview
│ │ └── MessageExtendedMedia
│ ├── MessageMediaToDo
│ │ ├── todo → TodoList
│ │ │ └── TodoList
│ │ └── completions → Vector < TodoCompletion > (optional)
│ │ └── TodoCompletion
│ ├── rtmp_stream → true (optional)
│ └── call → InputGroupCall
│ ├── InputGroupCall
│ ├── InputGroupCallSlug
├── media_areas → Vector < MediaArea > (optional)
│ ├── MediaAreaVenue
│ │ ├── coordinates → MediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ ├── geo → GeoPoint
│ │ │ ├── GeoPointEmpty
│ │ │ └── GeoPoint
│ │ ├── title → string
│ │ ├── address → string
│ │ ├── provider → string
│ │ ├── venue_id → string
│ │ └── venue_type → string
│ ├── InputMediaAreaVenue
│ │ ├── coordinates → MediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ ├── query_id → long
│ │ └── result_id → string
│ ├── MediaAreaGeoPoint
│ │ ├── coordinates → MediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ ├── geo → GeoPoint
│ │ │ ├── GeoPointEmpty
│ │ │ └── GeoPoint
│ │ └── address → GeoPointAddress (optional)
│ │ └── GeoPointAddress
│ │ ├── dark → true (optional)
│ │ ├── flipped → true (optional)
│ │ ├── coordinates → MediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ └── reaction → Reaction
│ │ ├── ReactionEmpty
│ │ ├── ReactionEmoji
│ │ ├── ReactionCustomEmoji
│ │ └── ReactionPaid
│ ├── MediaAreaChannelPost
│ │ ├── coordinates → MediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ ├── channel_id → long
│ │ └── msg_id → int
│ │ ├── coordinates → MediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ ├── channel → InputChannel
│ │ │ ├── InputChannelEmpty
│ │ │ ├── InputChannel
│ │ │ └── InputChannelFromMessage
│ │ └── msg_id → int
│ ├── MediaAreaUrl
│ │ ├── coordinates → MediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ └── url → string
│ ├── MediaAreaWeather
│ │ ├── coordinates → MediaAreaCoordinates
│ │ │ └── MediaAreaCoordinates
│ │ ├── emoji → string
│ │ ├── temperature_c → double
│ │ └── color → int
│ └── MediaAreaStarGift
│ ├── coordinates → MediaAreaCoordinates
│ │ └── MediaAreaCoordinates
│ └── slug → string
├── privacy → Vector < PrivacyRule > (optional)
│ ├── PrivacyValueAllowAll
│ │ └── users → Vector < long >
│ │ └── users → Vector < long >
│ │ └── chats → Vector < long >
│ │ └── chats → Vector < long >
│ ├── PrivacyValueAllowBots
├── views → StoryViews (optional)
│ └── StoryViews
│ ├── has_viewers → true (optional)
│ ├── views_count → int
│ ├── forwards_count → int (optional)
│ ├── reactions → Vector < ReactionCount > (optional)
│ │ └── ReactionCount
│ ├── reactions_count → int (optional)
│ └── recent_viewers → Vector < long > (optional)
├── sent_reaction → Reaction (optional)
│ ├── ReactionEmpty
│ ├── ReactionEmoji
│ │ └── emoticon → string
│ ├── ReactionCustomEmoji
│ │ └── document_id → long
│ └── ReactionPaid
├── albums → Vector < int > (optional)
└── music → Document (optional)
├── DocumentEmpty
│ └── id → long
└── Document
├── id → long
├── access_hash → long
├── file_reference → bytes
├── date → int
├── mime_type → string
├── size → long
├── thumbs → Vector < PhotoSize > (optional)
│ ├── PhotoSizeEmpty
│ ├── PhotoSize
│ ├── PhotoCachedSize
│ ├── PhotoStrippedSize
│ ├── PhotoSizeProgressive
│ └── PhotoPathSize
├── video_thumbs → Vector < VideoSize > (optional)
│ ├── VideoSize
│ ├── VideoSizeEmojiMarkup
├── dc_id → int
└── attributes → Vector < DocumentAttribute >

Example

PeerStories(
    peer=PeerUser(user_id=0),
    max_read_id=0,
    stories=[
            StoryItemDeleted(id=0)
        ],
)