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

Cyrillic poll answers does not work #912

Closed
LazarenkoA opened this issue Oct 31, 2022 · 0 comments
Closed

Cyrillic poll answers does not work #912

LazarenkoA opened this issue Oct 31, 2022 · 0 comments
Labels
area: client telegram package issues bug Something isn't working

Comments

@LazarenkoA
Copy link
Contributor

LazarenkoA commented Oct 31, 2022

What version of gotd are you using?

github.com/gotd/td v0.70.0

this code

poll := message.Poll("Вопрос", message.PollAnswer("Ответ 1"), message.PollAnswer("Ответ 2"), message.CorrectPollAnswer("Ответ 3"), message.PollAnswer("Ответ 4")).PublicVoters(true)
u, err := message.NewSender(w.raw).To(to).Media(ctx, poll)

Get an error POLL_OPTION_INVALID, the reason is in Cyrillic, it is in this line of code
https://github.com/gotd/td/blob/main/telegram/message/poll.go#L46
https://github.com/gotd/td/blob/main/telegram/message/poll.go#L36

@LazarenkoA LazarenkoA added the bug Something isn't working label Oct 31, 2022
@ernado ernado changed the title Poll doesn't work Cyrillic poll answers does not work Oct 31, 2022
@ernado ernado added the area: client telegram package issues label Oct 31, 2022
@ernado ernado closed this as completed in 987365c Nov 6, 2022
ernado added a commit that referenced this issue Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: client telegram package issues bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants