Skip to content

Commit

Permalink
less references
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Apr 3, 2021
1 parent dd3aed7 commit 81fce34
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions call_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package tdproto

// Audio call information
type CallEvent struct {
// Call start, iso date
Start *string `json:"start"`
// Call start
Start *ISODateTimeString `json:"start"`

// Call finish, iso date
Finish *string `json:"finish"`
// Call finish
Finish *ISODateTimeString `json:"finish"`

// Call record enabled
Audiorecord bool `json:"audiorecord"`
Expand Down
6 changes: 3 additions & 3 deletions contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ type Contact struct {
ChangeableFields []string `json:"changeable_fields,omitempty"`

// Family name
FamilyName *string `json:"family_name,omitempty"`
FamilyName string `json:"family_name,omitempty"`

// Given name
GivenName *string `json:"given_name,omitempty"`
GivenName string `json:"given_name,omitempty"`

// Patronymic, if any
Patronymic *string `json:"patronymic,omitempty"`
Patronymic string `json:"patronymic,omitempty"`

// Default language code
DefaultLang *string `json:"default_lang,omitempty"`
Expand Down
16 changes: 8 additions & 8 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ type MessageContent struct {
// Change actor contact id (for "change" mediatype)
Actor *JID `mediatype:"change" json:"actor,omitempty"`

// Comment. For audio message.
Comment string `mediatype:"progress" json:"comment,omitempty"`
// Comment (for "audiomsg" mediatype)
Comment string `mediatype:"audiomsg" json:"comment,omitempty"`

// Given name (for "contact" mediatype)
GivenName *string `mediatype:"contact" json:"given_name,omitempty"`
// Given name (for "contact" mediatype)
GivenName string `mediatype:"contact" json:"given_name,omitempty"`

// Family name (for "contact" mediatype)
FamilyName *string `mediatype:"contact" json:"family_name,omitempty"`
// Family name (for "contact" mediatype)
FamilyName string `mediatype:"contact" json:"family_name,omitempty"`

// Patronymic name (for "contact" mediatype)
Patronymic *string `mediatype:"contact" json:"patronymic,omitempty"`
// Patronymic name (for "contact" mediatype)
Patronymic string `mediatype:"contact" json:"patronymic,omitempty"`

// Contact phones list (for "contact" mediatype)
Phones []string `mediatype:"contact" json:"phones,omitempty"`
Expand Down

0 comments on commit 81fce34

Please sign in to comment.