update tdlib v1.8.0
This commit is contained in:
parent
e162b22637
commit
d916d47121
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
||||||
TAG := v1.7.0
|
TAG := v1.8.0
|
||||||
|
|
||||||
schema-update:
|
schema-update:
|
||||||
curl https://raw.githubusercontent.com/tdlib/td/${TAG}/td/generate/scheme/td_api.tl 2>/dev/null > ./data/td_api.tl
|
curl https://raw.githubusercontent.com/tdlib/td/${TAG}/td/generate/scheme/td_api.tl 2>/dev/null > ./data/td_api.tl
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# go-tdlib
|
# go-tdlib
|
||||||
|
|
||||||
Go wrapper for [TDLib (Telegram Database Library)](https://github.com/tdlib/td) with full support of TDLib v1.7.0
|
Go wrapper for [TDLib (Telegram Database Library)](https://github.com/tdlib/td) with full support of TDLib v1.8.0
|
||||||
|
|
||||||
## TDLib installation
|
## TDLib installation
|
||||||
|
|
||||||
|
|
3134
client/function.go
3134
client/function.go
File diff suppressed because it is too large
Load diff
|
@ -4,7 +4,7 @@ import (
|
||||||
"github.com/zelenin/go-tdlib/client"
|
"github.com/zelenin/go-tdlib/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func SupergroupMembers(tdlibClient *client.Client, supergroupId int32) (chan *client.ChatMember, chan error) {
|
func SupergroupMembers(tdlibClient *client.Client, supergroupId int64) (chan *client.ChatMember, chan error) {
|
||||||
chatMemberChan := make(chan *client.ChatMember, 10)
|
chatMemberChan := make(chan *client.ChatMember, 10)
|
||||||
errChan := make(chan error, 1)
|
errChan := make(chan error, 1)
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ func SupergroupMembers(tdlibClient *client.Client, supergroupId int32) (chan *cl
|
||||||
return chatMemberChan, errChan
|
return chatMemberChan, errChan
|
||||||
}
|
}
|
||||||
|
|
||||||
func supergroupMembers(tdlibClient *client.Client, chatMemberChan chan *client.ChatMember, errChan chan error, supergroupId int32, filter client.SupergroupMembersFilter, offset int32, limit int32) {
|
func supergroupMembers(tdlibClient *client.Client, chatMemberChan chan *client.ChatMember, errChan chan error, supergroupId int64, filter client.SupergroupMembersFilter, offset int32, limit int32) {
|
||||||
defer func() {
|
defer func() {
|
||||||
close(chatMemberChan)
|
close(chatMemberChan)
|
||||||
close(errChan)
|
close(errChan)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build darwin
|
||||||
// +build darwin
|
// +build darwin
|
||||||
|
|
||||||
package client
|
package client
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build libtdjson && (linux || darwin || windows)
|
||||||
// +build libtdjson
|
// +build libtdjson
|
||||||
// +build linux darwin windows
|
// +build linux darwin windows
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build !libtdjson && (linux || darwin)
|
||||||
// +build !libtdjson
|
// +build !libtdjson
|
||||||
// +build linux darwin
|
// +build linux darwin
|
||||||
|
|
||||||
|
|
5555
client/type.go
5555
client/type.go
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
5408
data/td_api.json
5408
data/td_api.json
File diff suppressed because it is too large
Load diff
2231
data/td_api.tl
2231
data/td_api.tl
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue