mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
client requests
This commit is contained in:
parent
997dc1006a
commit
862b94d2c7
6 changed files with 2701 additions and 1619 deletions
|
|
@ -26,7 +26,11 @@ func chats(tdlibClient *client.Client, chatChan chan *client.Chat, errChan chan
|
|||
}()
|
||||
|
||||
for {
|
||||
chats, err := tdlibClient.GetChats(offsetOrder, offsetChatId, limit)
|
||||
chats, err := tdlibClient.GetChats(&client.GetChatsRequest{
|
||||
OffsetOrder: offsetOrder,
|
||||
OffsetChatId: offsetChatId,
|
||||
Limit: limit,
|
||||
})
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue