Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Dec 27, 2020
1 parent 0d2ce7e commit 958e7a7
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion call_event.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tdproto

// Audiocall information
// Audio call information
type CallEvent struct {
// Call start, iso date
Start *string `json:"start"`
Expand Down
18 changes: 9 additions & 9 deletions chat.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tdproto

// Mimimal chat representaion
// Minimal chat representation
type ChatShort struct {
// Group/Task/Contact id
Jid JID `json:"jid"`
Expand All @@ -15,22 +15,22 @@ 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"`

// 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"`
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"`
Expand Down
4 changes: 2 additions & 2 deletions group_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
16 changes: 8 additions & 8 deletions push_device.go
Original file line number Diff line number Diff line change
@@ -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"`
}

0 comments on commit 958e7a7

Please sign in to comment.