td icon indicating copy to clipboard operation
td copied to clipboard

GetMessageLinkRequest to get the message link and always get an error: INPUT_METHOD_INVALID.

Open DukeAnn opened this issue 1 year ago • 0 comments

What version of gotd are you using?

github.com/gotd/td v0.93.0

Can this issue be reproduced with the latest version?

Yes

What did you do?

tdClient := tdapi.NewClient(ctx.Raw.Invoker())
link, err := tdClient.GetMessageLink(ctx, &tdapi.GetMessageLinkRequest{
 ChatID:    update.EffectiveChat().GetID(),
 MessageID: int64(update.EffectiveMessage.ID),
})

What did you expect to see?

MessageLink

What did you see instead?

error: INPUT_METHOD_INVALID.

What Go version and environment are you using?

go version go1.21.0

go env Output
$ go env

DukeAnn avatar Jan 07 '24 15:01 DukeAnn