account.SaveAutoSaveSettings
- class pyrogram.raw.functions.account.SaveAutoSaveSettings
Modify autosave settings
- Details:
Layer:
223ID:
D69B8361
- Parameters:
settings (
AutoSaveSettings) – The new autosave settingsusers (
bool, optional) – Whether the new settings should affect all private chatschats (
bool, optional) – Whether the new settings should affect all groupsbroadcasts (
bool, optional) – Whether the new settings should affect all channelspeer (
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
├── users →
true (optional)├── chats →
true (optional)├── broadcasts →
true (optional)├── peer →
InputPeer (optional)│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── settings →
AutoSaveSettings└──
AutoSaveSettings├── photos →
true (optional)├── videos →
true (optional)└── video_max_size →
long (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
),
)
)