Skip to content

Commit

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

type ChatFilter struct {
Paginator

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

Expand Down
6 changes: 6 additions & 0 deletions tdapi/paginator.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package tdapi

type Paginator struct {
Limit int `schema:"limit"`
Offset int `schema:"offset"`
}

0 comments on commit b51512a

Please sign in to comment.