From 958e7a7b06e57bc94bd7ff712bab75a9ddbd12f8 Mon Sep 17 00:00:00 2001 From: Maxim Oransky Date: Mon, 28 Dec 2020 01:08:19 +0300 Subject: [PATCH] typos --- call_event.go | 2 +- chat.go | 18 +++++++++--------- contact.go | 8 ++++---- group_status.go | 4 ++-- push_device.go | 16 ++++++++-------- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/call_event.go b/call_event.go index 1d21cd1..4e04345 100644 --- a/call_event.go +++ b/call_event.go @@ -1,6 +1,6 @@ package tdproto -// Audiocall information +// Audio call information type CallEvent struct { // Call start, iso date Start *string `json:"start"` diff --git a/chat.go b/chat.go index 3d24f19..5601812 100644 --- a/chat.go +++ b/chat.go @@ -1,6 +1,6 @@ package tdproto -// Mimimal chat representaion +// Minimal chat representation type ChatShort struct { // Group/Task/Contact id Jid JID `json:"jid"` @@ -15,7 +15,7 @@ type ChatShort struct { Icons *IconData `json:"icons"` } -// Mimimal chat representaion for deletion +// Minimal chat representation for deletion type DeletedChat struct { // Group/Task/Contact id Jid JID `json:"jid"` @@ -23,14 +23,14 @@ type DeletedChat struct { // Chat type ChatType ChatType `json:"chat_type"` - // Chat fields (related to concrete participan) version + // Chat fields (related to concrete participant) version Gentime int64 `json:"gentime"` // Archive flag. Always true for this structure IsArchive bool `json:"is_archive"` } -// Chat (direct, group, task) representaion +// Chat (direct, group, task) representation type Chat struct { // Group/Task/Contact id Jid JID `json:"jid"` @@ -41,7 +41,7 @@ type Chat struct { // Base fields (not related to concrete participant) version BaseGentime int64 `json:"base_gentime,omitempty"` - // Chat fields related to concrete participan) version + // Chat fields related to concrete participant) version Gentime int64 `json:"gentime"` // Creation date, iso datetime @@ -80,10 +80,10 @@ type Chat struct { // Push notifications enabled NotificationsEnabled bool `json:"notifications_enabled,omitempty"` - // Number of importants messages + // Number of important messages NumImportants int `json:"num_importants,omitempty"` - // Unreads conuter + // Unread counter NumUnread uint `json:"num_unread,omitempty"` // Mentions (@) counter @@ -104,7 +104,7 @@ type Chat struct { // Is chat pinned on top Pinned bool `json:"pinned,omitempty"` - // Sort oreding for pinned chat + // Sort ordering for pinned chat PinnedSortOrdering int `json:"pinned_sort_ordering,omitempty"` // Non-archive participants number @@ -221,7 +221,7 @@ type Chat struct { // Readonly for non-admins group chat (Like Channels in Telegram bug switchable) ReadonlyForMembers bool `chattype:"group" json:"readonly_for_members,omitempty"` - // Delete messages in this chat in seconds. Experemental function + // Delete messages in this chat in seconds. Experimental function AutocleanupAge *int `chattype:"group" json:"autocleanup_age,omitempty"` // Can other team member see this task/group chat diff --git a/contact.go b/contact.go index 8847864..afff5e6 100644 --- a/contact.go +++ b/contact.go @@ -83,7 +83,7 @@ type Contact struct { // Enable remove all messages experimental features DropallEnabled *bool `json:"dropall_enabled,omitempty"` - // Use Ctrl/Cmd + Enter insted Enter + // Use Ctrl/Cmd + Enter instead Enter AltSend *bool `json:"alt_send,omitempty"` // Use * as @ for mentions @@ -128,10 +128,10 @@ type Contact struct { // Show archived contacts in contact list ContactShowArchived *bool `json:"contact_show_archived,omitempty"` - // Show inread chats first in feed + // Show unread chats first in feed UnreadFirst *bool `json:"unread_first,omitempty"` - // Show inread chats first in feed in mobile app + // Show unread chats first in feed in mobile app MUnreadFirst *bool `json:"munread_first,omitempty"` // Can I add new members to this team @@ -174,7 +174,7 @@ type ContactCustomFields struct { Source string `json:"source,omitempty"` } -// Short contact representaion +// Short contact representation type ContactShort struct { // Contact Id Jid JID `json:"jid"` diff --git a/group_status.go b/group_status.go index 90bae0c..a5ba2ec 100644 --- a/group_status.go +++ b/group_status.go @@ -5,8 +5,8 @@ type GroupStatus string const ( // Group administrator - GroupAdmin GroupStatus = "admin" // 3 + GroupAdmin GroupStatus = "admin" // 2 // Group member - GroupMember GroupStatus = "member" // 2 + GroupMember GroupStatus = "member" // 3 ) diff --git a/push_device.go b/push_device.go index c4ab126..2e055c2 100644 --- a/push_device.go +++ b/push_device.go @@ -1,12 +1,12 @@ package tdproto type PushDevice struct { - Type string `json:"type"` - DeviceId string `json:"device_id"` - NotifictionToken string `json:"notification_token"` - VoipNotifictionToken string `json:"voip_notification_token"` - AllowedNotifications bool `json:"allowed_notifications"` // deprecated - Name string `json:"name"` - DataPushes bool `json:"data_pushes"` - DataBadges bool `json:"data_badges"` + Type string `json:"type"` + DeviceId string `json:"device_id"` + NotificationToken string `json:"notification_token"` + VoipNotificationToken string `json:"voip_notification_token"` + AllowedNotifications bool `json:"allowed_notifications"` // deprecated + Name string `json:"name"` + DataPushes bool `json:"data_pushes"` + DataBadges bool `json:"data_badges"` }