client requests

This commit is contained in:
Aleksandr Zelenin 2018-10-16 23:32:57 +03:00
parent 997dc1006a
commit 862b94d2c7
6 changed files with 2701 additions and 1619 deletions

View file

@ -24,7 +24,13 @@ func chatHistory(tdlibClient *client.Client, messageChan chan *client.Message, e
}()
for {
messages, err := tdlibClient.GetChatHistory(chatId, fromMessageId, offset, limit, onlyLocal)
messages, err := tdlibClient.GetChatHistory(&client.GetChatHistoryRequest{
ChatId: chatId,
FromMessageId: fromMessageId,
Offset: offset,
Limit: limit,
OnlyLocal: onlyLocal,
})
if err != nil {
errChan <- err