Skip to content

Commit

Permalink
Merge pull request #914 from LazarenkoA/main
Browse files Browse the repository at this point in the history
fix #912
  • Loading branch information
ernado committed Nov 6, 2022
2 parents 790abf0 + 987365c commit 0c665f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telegram/message/poll.go
Expand Up @@ -33,7 +33,7 @@ func PollAnswer(text string) PollAnswerOption {
i := len(p.input.Poll.Answers)
p.input.Poll.Answers = append(p.input.Poll.Answers, tg.PollAnswer{
Text: text,
Option: []byte(text + strconv.Itoa(i)),
Option: []byte(strconv.Itoa(i)),
})
}
}
Expand All @@ -43,7 +43,7 @@ func CorrectPollAnswer(text string) PollAnswerOption {
return func(p *pollAnswerBuilder) {
p.input.Poll.Quiz = true
i := len(p.input.Poll.Answers)
option := []byte(text + strconv.Itoa(i))
option := []byte(strconv.Itoa(i))
p.input.Poll.Answers = append(p.input.Poll.Answers, tg.PollAnswer{
Text: text,
Option: option,
Expand Down

0 comments on commit 0c665f3

Please sign in to comment.