You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go list -m github.com/gotd/td
-> github.com/gotd/td v0.111.2
Can this issue be reproduced with the latest version?
Tried in latest version v0.111.2
What did you do?
I tried the very example in the README, set the appID and appHash, double checked the appid and apphash, both correct:
package main
import (
"context""fmt""github.com/gotd/td/telegram"
)
funcmain() {
appID:=<redacted>appHash:="<redacted>"// https://core.telegram.org/api/obtaining_api_idclient:=telegram.NewClient(appID, appHash, telegram.Options{})
iferr:=client.Run(context.Background(), func(ctx context.Context) error {
// It is only valid to use client while this function is not returned// and ctx is not cancelled.api:=client.API()
// Now you can invoke MTProto RPC requests by calling the API.// ...// Return to close client connection and free up resources.returnnil
}); err!=nil {
panic(err)
}
// Client is closed.
}
What version of gotd are you using?
$ go list -m github.com/gotd/td -> github.com/gotd/td v0.111.2
Can this issue be reproduced with the latest version?
Tried in latest version v0.111.2
What did you do?
I tried the very example in the README, set the
appID
andappHash
, double checked the appid and apphash, both correct:What did you expect to see?
autheticated and code work normally
What did you see instead?
What Go version and environment are you using?
$ go version -> go version go1.22.3 linux/amd64
go env
OutputThe text was updated successfully, but these errors were encountered: