github.com/gotd/td v0.73.0
Yes
When I'm trying to use
update, err := api.MessagesAddChatUser(ctx, &tg.MessagesAddChatUserRequest{
ChatID: peer.ChannelID,
UserID: inputUser(user),
})
if err != nil {
return err
}
Always I have some problem
rpc error code 400: CHAT_ID_INVALID
User added
go1.18.1
go env
Output
GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/felipe/.cache/go-build" GOENV="/home/felipe/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/felipe/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/felipe/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/lib/go-1.18" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/lib/go-1.18/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.18.1" GCCGO="gccgo" GOAMD64="v1" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/home/felipe/Downloads/teste/go.mod" GOWORK="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3743326159=/tmp/go-build -gno-record-gcc-switches"
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too