github.com/tada-team/tdproto@v1.51.57/tdapi/contact.go (about)

     1  package tdapi
     2  
     3  import "github.com/tada-team/tdproto"
     4  
     5  type ContactFilter struct {
     6  	Paginator
     7  
     8  	// Comma separated statuses in team
     9  	Status string `schema:"status"`
    10  
    11  	// * ?id=jid,jid
    12  	ID string `schema:"id"`
    13  
    14  	// * ?display_name=
    15  	DisplayName string `schema:"display_name"`
    16  
    17  	// * ?is_archived=
    18  	IsArchived *bool `schema:"is_archived"`
    19  
    20  	// * ?is_bot=
    21  	IsBot *bool `schema:"is_bot"`
    22  
    23  	// * ?without_me=
    24  	WithoutMe bool `schema:"without_me"`
    25  }
    26  
    27  // Contact invite/edit form
    28  type Contact struct {
    29  	// User uid (for invitation from other team)
    30  	UserUid string `json:"user_uid,omitempty"`
    31  
    32  	// Phone number (for invitation by phone)
    33  	Phone string `json:"phone"`
    34  
    35  	// Contact phone number (part of contact information in team, visible by all)
    36  	ContactPhone string `json:"contact_phone"`
    37  
    38  	// Contact email (part of contact information in team, visible by all)
    39  	ContactEmail string `json:"contact_email"`
    40  
    41  	// Family name
    42  	FamilyName string `json:"family_name"`
    43  
    44  	// Given name
    45  	GivenName string `json:"given_name"`
    46  
    47  	// Patronymic
    48  	Patronymic string `json:"patronymic"`
    49  
    50  	// Role in team
    51  	Role string `json:"role"`
    52  
    53  	// Public Status
    54  	PublicStatus tdproto.PublicStatusType `json:"public_status"`
    55  
    56  	// Mood in team
    57  	Mood string `json:"mood"`
    58  
    59  	// Enable debug messages in UI
    60  	DebugShowActivity bool `json:"debug_show_activity"`
    61  
    62  	// Status in team
    63  	Status tdproto.TeamStatus `json:"status"`
    64  
    65  	// ContactSection uids, if any
    66  	Sections []string `json:"sections"`
    67  
    68  	// Use Ctrl/Cmd + Enter instead Enter
    69  	AltSend bool `json:"alt_send"`
    70  
    71  	// Focus mode enabled until
    72  	FocusUntil tdproto.ISODateTimeString `json:"focus_until"`
    73  
    74  	// Use * as @ for mentions
    75  	AsteriskMention bool `json:"asterisk_mention"`
    76  
    77  	// Send push notifications even contact is online
    78  	AlwaysSendPushes bool `json:"always_send_pushes"`
    79  
    80  	// Hide pushes body
    81  	HidePushesContent bool `json:"hide_pushes_content"`
    82  
    83  	// Show unread chats first (web/desktop)
    84  	UnreadFirst bool `json:"unread_first"`
    85  
    86  	// Show unread chats first (mobile app)
    87  	MunreadFirst bool `json:"munread_first"`
    88  
    89  	// Default language code
    90  	DefaultLang string `json:"default_lang"`
    91  
    92  	// Timezone, if any
    93  	Timezone string `json:"timezone"`
    94  
    95  	// Start silently time (no pushes, no sounds)
    96  	QuietTimeStart string `json:"quiet_time_start"`
    97  
    98  	// Quiet time finish
    99  	QuietTimeFinish string `json:"quiet_time_finish"`
   100  
   101  	// Push notifications for group chats
   102  	GroupNotificationsEnabled bool `json:"group_notifications_enabled"`
   103  
   104  	// Push notifications for task chats
   105  	TaskNotificationsEnabled bool `json:"task_notifications_enabled"`
   106  
   107  	// Push notifications from systembot
   108  	SystembotNotificationsEnabled bool `json:"systembot_notifications_enabled"`
   109  
   110  	// Push notifications for meeting chats
   111  	MeetingNotificationsEnabled bool `json:"meeting_notifications_enabled"`
   112  
   113  	// Push notifications for reactions
   114  	ReactionNotificationsEnabled bool `json:"reaction_notifications_enabled"`
   115  
   116  	// Short view in contact list
   117  	ContactShortView bool `json:"contact_short_view"`
   118  
   119  	// Short view in group list
   120  	GroupShortView bool `json:"group_short_view"`
   121  
   122  	// Short view in task list
   123  	TaskShortView bool `json:"task_short_view"`
   124  
   125  	// Short view in meeting list
   126  	MeetingShortView bool `json:"meeting_short_view"`
   127  
   128  	// Short view in contact list in mobile app
   129  	ContactMshortView bool `json:"contact_mshort_view"`
   130  
   131  	// Show archived contacts in contact list
   132  	ContactShowArchived bool `json:"contact_show_archived"`
   133  
   134  	// Short view in group list in mobile app
   135  	GroupMshortView bool `json:"group_mshort_view"`
   136  
   137  	// Short view in task list in mobile app
   138  	TaskMshortView bool `json:"task_mshort_view"`
   139  
   140  	// Short view in meeting list in mobile app
   141  	MeetingMshortView bool `json:"meeting_mshort_view"`
   142  }