How can I get poll and poll_answer updates in my bot ? I

checked getWebhookInfo and I believe I have specified it in the allowed_updates.

My code is simple, just sends the update object as a Telegram message if it is received from the webhook.

16 ответов

6 просмотров

Just to make sure - the poll meets the conditions? - Bots receive only updates about stopped polls and polls, which are sent by the bot - A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.

Яico X
Just to make sure - the poll meets the conditions?...

I was about to ask him to read the image of the documentation xD

Яico X
Just to make sure - the poll meets the conditions?...

yes, I sent a poll using the same bot, Then using Telegram Application I voted on the poll. but I don't receive poll or poll_answer even after the open_period expires.

This is first step 👆

Then this 😬

Яico X
You are sending a quiz tho, not a poll.

how to get user answers for a poll ? To know if the user has voted on the correct answer.

I am not sure if that's possible. Maybe try it with a regular poll first and check if you can receive answers there.

Nothing happens even if I comment the type = quiz line.

Яico X
I am not sure if that's possible. Maybe try it wit...

🙄🙄 why ? How does the @QuizBot work ? 😬😢😅

Воспоминания <last name><a href=></a>
Nothing happens even if I comment the type = quiz ...

You also have the correct_option_id set. Also you should explicitly set type = poll

Яico X
You also have the correct_option_id set. Also you ...

Poll is the default if we don't specify anything , right?

Яico X
You also have the correct_option_id set. Also you ...

correct_option_id is ignored if not a quiz, right?

Яico X
You also have the correct_option_id set. Also you ...

Oh , this was it 😬💪😐 Thank You 😪😍😍

Похожие вопросы

Обсуждают сегодня

Эх кто-то пришел и весь праздник испортил :( You need complex FBX scene importing setup to change things on import? good luck with that. You need navigation and pathfinding? g...
Serg Gini
5
День добрый. Стандартная библиотека phobos (std.array) ссылается на внешнюю фунцию _d_newarrayUTrace и при сборке с ключом profile-gc эта ссылка остаётся неопределённой. Никак...
slacker linuxoid
5
на D можно построить абсолютно разный архитект, как объектный, так и нет, оч широкий простор для принятия решений. Однако проблема в том, что большинство книг об айтишной архи...
Constantin_FV
1
ну кстати в ноду 22 завезли движок 12.4 с WasmGC. А как у нас дела с wasm, мб в дискорде что-то кто-то писал-отвечал? Из BetterC, конечно, тоже можно выжать что-нибудь, но хот...
Constantin_FV
1
а у нас кто-нибудь разбирается в матлаб? Накопал статью по замощению Фодерберга, о нём вообще мало инфы в сети. Но там матлабовский код, который нужно через песочницу по сути ...
Constantin_FV
1
Доброго времени суток. Сейчас я работаю над своей архитектурой Component / Systems. Если просто, это то что использовали до дробления на ECS. Потому что ECS это все таки нишев...
Vi
26
string xczhojoxueaflfhhygcc ="xczhojoxueaflfhhygcc"; long xczhojoxueaflfhhygcc_2 =1368962155; import std.conv: text; writeln(text(xczhojoxueaflfhhygcc, " ", xczhojoxueaflfhhyg...
Constantin_FV
6
Для меня наследование это просто удобство ради удобства. Без множественного наследования, это бесполезная вещь, но удобная. С множественным наследованием, это опасная, но мощн...
Vi
1
а что на D можно делать под 3й Godot ?
Dmitry Ponyatov
3
А кто-нибудь встречал в пакетах\графических движках генерацию мозаик, Пенроуз и т.п.? На гитхабе вижу около сотни репов, ток по Пенроузу + разбросаны сниппеты по сети, но мб г...
Constantin_FV
3
Карта сайта