auth: complete account authorization flows
(cherry picked from commit 04f4527df32ad5c35720cccc41d27fe51549612f)
This commit is contained in:
parent
af41d18478
commit
6dc42942c8
21 changed files with 1780 additions and 50 deletions
|
|
@ -53,6 +53,10 @@ func Authorizations() *tg.AccountAuthorizations {
|
|||
return &tg.AccountAuthorizations{Authorizations: []tg.Authorization{}}
|
||||
}
|
||||
|
||||
func WebAuthorizations() *tg.AccountWebAuthorizations {
|
||||
return &tg.AccountWebAuthorizations{Authorizations: []tg.WebAuthorization{}, Users: []tg.UserClass{}}
|
||||
}
|
||||
|
||||
func Passkeys() *tg.AccountPasskeys {
|
||||
return &tg.AccountPasskeys{Passkeys: []tg.Passkey{}}
|
||||
}
|
||||
|
|
@ -69,6 +73,22 @@ func AccountThemes() tg.AccountThemesClass {
|
|||
return &tg.AccountThemesNotModified{}
|
||||
}
|
||||
|
||||
func AutoDownloadSettings() *tg.AccountAutoDownloadSettings {
|
||||
settings := tg.AutoDownloadSettings{
|
||||
PhotoSizeMax: 10 * 1024 * 1024,
|
||||
VideoSizeMax: 20 * 1024 * 1024,
|
||||
FileSizeMax: 20 * 1024 * 1024,
|
||||
VideoUploadMaxbitrate: 1000,
|
||||
SmallQueueActiveOperationsMax: 2,
|
||||
LargeQueueActiveOperationsMax: 1,
|
||||
}
|
||||
return &tg.AccountAutoDownloadSettings{
|
||||
Low: settings,
|
||||
Medium: settings,
|
||||
High: settings,
|
||||
}
|
||||
}
|
||||
|
||||
func DefaultEmojiStatuses() tg.AccountEmojiStatusesClass {
|
||||
return &tg.AccountEmojiStatusesNotModified{}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue