account.SaveAutoSaveSettings

class pyrogram.raw.functions.account.SaveAutoSaveSettings

Modify autosave settings

Details:
  • Layer: 223

  • ID: D69B8361

Parameters:
  • settings (AutoSaveSettings) – The new autosave settings

  • users (bool, optional) – Whether the new settings should affect all private chats

  • chats (bool, optional) – Whether the new settings should affect all groups

  • broadcasts (bool, optional) – Whether the new settings should affect all channels

  • peer (InputPeer, optional) – Whether the new settings should affect a specific peer

Returns:

bool

TL Schema

account.saveAutoSaveSettings#d69b8361
flags:#
users:flags.0?true
chats:flags.1?true
broadcasts:flags.2?true
peer:flags.3?InputPeer
settings:AutoSaveSettings

= Bool

Parameter Tree

SaveAutoSaveSettings
├── userstrue (optional)
├── chatstrue (optional)
├── broadcaststrue (optional)
├── peerInputPeer (optional)
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── settingsAutoSaveSettings
├── photostrue (optional)
├── videostrue (optional)
└── video_max_sizelong (optional)

Example

await app.invoke(
    SaveAutoSaveSettings(
        users=None,
        chats=None,
        broadcasts=None,
        peer=await app.resolve_peer(chat_id),
        settings=AutoSaveSettings(
            photos=None,
            videos=None,
            video_max_size=None
        ),
    )
)