secretlounge / secretlounge-ng

A bot to make an anonymous group chat on Telegram
119 stars 53 forks source link

Poll support #29

Closed sobornostea closed 3 years ago

sobornostea commented 3 years ago

Are there technical limitations that make it impossible to support polls ? If yes, that's sad... If not, i would be interested in helping ^^

sfan5 commented 3 years ago

Yes that's the case, sendPoll creates a new poll that is unique for every user it is called on (and so doescopyMessage).

sobornostea commented 3 years ago

Would it be possible to recreate a poll with the same characteristics ? And then forward it using forwardMessage ? Or does it create a unique poll again...

sfan5 commented 3 years ago

That sounds like it'd work. Only issue with it is that Telegram heavily throttles forwards, but that's in general.

sobornostea commented 3 years ago

Hi, I've implemented poll support with the forwardMessage method, are you interested by this feature ?