td icon indicating copy to clipboard operation
td copied to clipboard

Failed to send KeyboardButtonSimpleWebView button

Open qdk0901 opened this issue 1 year ago • 0 comments

What version of gotd are you using?

github.com/gotd/td v0.115.0

Can this issue be reproduced with the latest version?

Yes

What did you do?

markup := &tg.ReplyInlineMarkup{
		Rows: []tg.KeyboardButtonRow{
			{
				Buttons: []tg.KeyboardButtonClass{
					&tg.KeyboardButtonSimpleWebView{
						Text: "test",
						URL:  "https://example.com",
					},
				},
			},
		},
	}

send this markup, and get error rpcDoRequest: rpc error code 400: BUTTON_TYPE_INVALID

What did you expect to see?

What did you see instead?

What Go version and environment are you using?

go version go1.23.3 windows/amd64

qdk0901 avatar Dec 18 '24 15:12 qdk0901