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

  • 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
├── peer → Peer
│ ├── PeerUser
│ │ └── user_id → long
│ ├── PeerChat
│ │ └── chat_id → long
│ └── PeerChannel
│ └── channel_id → long
└── ttl_period → int (optional)

Example

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