github.com/tada-team/tdproto@v1.51.57/user.go (about) 1 package tdproto 2 3 // Account data 4 type User struct { 5 // Phone for login 6 Phone string `json:"phone,omitempty"` 7 8 // Email for login 9 Email string `json:"email,omitempty"` 10 11 // Family name 12 FamilyName string `json:"family_name,omitempty"` 13 14 // Given name 15 GivenName string `json:"given_name,omitempty"` 16 17 // Patronymic, if any 18 Patronymic string `json:"patronymic,omitempty"` 19 20 // Default language code 21 DefaultLang string `json:"default_lang,omitempty"` 22 23 // Use Ctrl/Cmd + Enter instead Enter 24 AltSend bool `json:"alt_send"` 25 26 // Use * as @ for mentions 27 AsteriskMention bool `json:"asterisk_mention"` 28 29 // Send pushes even user is online 30 AlwaysSendPushes bool `json:"always_send_pushes"` 31 32 // Hide pushes body 33 HidePushesContent bool `json:"hide_pushes_content"` 34 35 // Show unread chats in chat list first 36 UnreadFirst bool `json:"unread_first"` 37 38 // Show unread chats in chat list first on mobiles 39 MUnreadFirst bool `json:"munread_first"` 40 41 // Timezone 42 Timezone string `json:"timezone"` 43 44 // Start silently time (no pushes, no sounds) 45 QuietTimeStart *string `json:"quiet_time_start"` 46 47 // Finish silently time (no pushes, no sounds) 48 QuietTimeFinish *string `json:"quiet_time_finish"` 49 50 // Icon data 51 Icons IconData `json:"icons"` 52 } 53 54 // Account data with extra information 55 type UserWithMe struct { 56 User 57 58 // Inviter id, if any 59 Inviter JID `json:"inviter,omitempty"` 60 61 // Available teams 62 Teams []Team `json:"teams"` 63 64 // Registered push devices 65 Devices []PushDevice `json:"devices"` 66 67 // Personal account from billing 68 Account *PersonalAccountBilling `json:"account,omitempty"` 69 70 // Personal account from billing by opened team 71 TeamAccount *PersonalAccountBilling `json:"team_account,omitempty"` 72 }