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

Failed to send KeyboardButtonSimpleWebView button #1493

Open
qdk0901 opened this issue Dec 18, 2024 · 0 comments
Open

Failed to send KeyboardButtonSimpleWebView button #1493

qdk0901 opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@qdk0901
Copy link

qdk0901 commented Dec 18, 2024

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 qdk0901 added the bug Something isn't working label Dec 18, 2024
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

1 participant