-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce42cb4
commit cb462c7
Showing
13 changed files
with
128 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package tdapi | ||
|
||
// Background action (for example: Excel import) information | ||
type BackgroundAction struct { | ||
// Action uid | ||
Action string `json:"action"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package tdapi | ||
|
||
// Task color rule form | ||
type ColorRule struct { | ||
// Rule priority | ||
Priority *int `json:"priority,omitempty"` | ||
|
||
// Color index | ||
ColorIndex *uint16 `json:"color_index,omitempty"` | ||
|
||
// Rule description | ||
Description string `json:"description"` | ||
|
||
// Task status | ||
TaskStatus *string `json:"task_status,omitempty"` | ||
|
||
// Project filter enabled | ||
ProjectEnabled bool `json:"section_enabled,omitempty"` // TODO: rename to "project_enabled" | ||
|
||
// Project id if project filter enabled | ||
Project *string `json:"section,omitempty"` // TODO: rename to "project" | ||
|
||
// Task importance filter enabled | ||
TaskImportanceEnabled bool `json:"task_importance_enabled,omitempty"` | ||
|
||
// Task importance if task importance filter enabled | ||
TaskImportance *int `json:"task_importance,omitempty"` | ||
|
||
// Task urgency filter enabled | ||
TaskUrgencyEnabled bool `json:"task_urgency_enabled,omitempty"` | ||
|
||
// Task urgency if task urgency filter enabled | ||
TaskUrgency *int `json:"task_urgency,omitempty"` | ||
|
||
// Tags filter enabled | ||
TagsEnabled bool `json:"tags_enabled,omitempty"` | ||
|
||
// Tag ids if tags filter enabled | ||
Tags *[]string `json:"tags,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package tdapi | ||
|
||
// Device ping response | ||
type DevicePing struct { | ||
// Unique value sent to device | ||
PingId string `json:"ping_id"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package tdapi | ||
|
||
import "github.com/tada-team/tdproto" | ||
|
||
// All-in-one response with all messages info for fast chat rendering | ||
type Hotmessages struct { | ||
// chat information | ||
Chat tdproto.Chat `json:"chat"` | ||
|
||
// Messages list | ||
Messages []tdproto.Message `json:"messages"` | ||
|
||
// Contacts list | ||
Contacts []tdproto.Contact `json:"contacts"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package tdapi | ||
|
||
import "github.com/tada-team/tdproto" | ||
|
||
// Reactions to messages: frequently used and all available | ||
type MyReactions struct { | ||
// My frequently used reactions | ||
Top []tdproto.Reaction `json:"top"` | ||
|
||
// All available reactions | ||
All []tdproto.Reaction `json:"all"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters