decrease hist size
This commit is contained in:
parent
dca8cfbea9
commit
a0d816e60e
2
td.go
2
td.go
@ -135,7 +135,7 @@ func getHistory(c *tdlib.Client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for lastMsgID64 >= 0 {
|
for lastMsgID64 >= 0 {
|
||||||
msgs, err := c.GetChatHistory(user_chtwrsbot, lastMsgID64, 0, 50, false)
|
msgs, err := c.GetChatHistory(user_chtwrsbot, lastMsgID64, 0, 20, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err.Error() == "timeout" {
|
if err.Error() == "timeout" {
|
||||||
logOnError(err, "Waiting...")
|
logOnError(err, "Waiting...")
|
||||||
|
Loading…
Reference in New Issue
Block a user