Skip to content

Commit

Permalink
ChatFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Nov 4, 2020
1 parent 03fb659 commit 57e3d1a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tdapi/chats.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package tdapi

type ChatFilter struct {
// ?unread_first=true|false (default: false)
UnreadFirst string `schema:"unread_first"`

// ?unread_only=true|false (default: false)
UnreadOnly string `schema:"unread_only"`

// ?hidden_only=true|false (default: false)
HiddenOnly string `schema:"hidden_only"`

// ?chat_type=task,group,direct|any (default: any)
ChatType string `schema:"chat_type"`

// ?mix_contacts=true|false (default: false)
MixContacts string `schema:"mix_contacts"`

// ?sort = [ "group_chat_display_name" | "-group_chat_display_name" | "last_message" | "-last_message" ]
Sort string `schema:"sort"`

// ?q=search-text
Q string `schema:"q"`
}

0 comments on commit 57e3d1a

Please sign in to comment.