Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHAT_ID_INVALID: When try to use MessagesAddChatUser #946

Open
felipeflores opened this issue Dec 15, 2022 · 1 comment
Open

CHAT_ID_INVALID: When try to use MessagesAddChatUser #946

felipeflores opened this issue Dec 15, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@felipeflores
Copy link

What version of gotd are you using?

 github.com/gotd/td v0.73.0

Can this issue be reproduced with the latest version?

Yes

What did you do?

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

What did you expect to see?

User added

What did you see instead?

What Go version and environment are you using?

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"
    
@felipeflores felipeflores added the bug Something isn't working label Dec 15, 2022
@DukeAnn
Copy link

DukeAnn commented Jan 7, 2024

Has it been resolved? I also encountered this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants