UpdatePeerHistoryTTL

class pyrogram.raw.types.UpdatePeerHistoryTTL

The Time-To-Live for messages sent by the current user in a specific chat has changed

Constructor of Update.

Details:
  • Layer: 223

  • ID: BB9BB9A5

Parameters:
  • peer (Peer) – The chat

  • ttl_period (int 32-bit, optional) – The new Time-To-Live

TL Schema

updatePeerHistoryTTL#bb9bb9a5
flags:#
peer:Peer
ttl_period:flags.0?int

= Update

Parameter Tree

UpdatePeerHistoryTTL
├── peerPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
└── ttl_periodint (optional)

Example

UpdatePeerHistoryTTL(
    peer=PeerUser(user_id=0),
)