Telethon: How to publish @vote poll?

Created on 2 May 2017  Â·  5Comments  Â·  Source: LonamiWebs/Telethon

Imagine I have made a poll using @vote bot. How can I publish it to a list of chatIDs I have in Telethon? 😵

RTFM

Most helpful comment

why the hell do we have to pass a random number!?

¯\_(ツ)_/¯

Couldn't they make a random number server-side, which looks to be a better approach!?

I don't know why they did it the way the did. Perhaps it's so people can't spam by resending certain packets without modifying the random ID (which would first involve decoding the packet).

All 5 comments

Try searching for "bot" on the documentation. I found these results:

I would say those work. If they do please close the issue and you may want to post the solution here so other people can find it too :)

Actually, I had read both pages before opening the issue, but couldn't figure out the arguments. random_id!? offset!? No idea what to pass to the function!

random_id is clearly a random ID (!), and offset is probably the offset of the results. So, try passing offset=0, since you don't want to skip any.

Thanks @Lonami. Yeah random_id seems to be self-explaining, but why the hell do we have to pass a random number!? Couldn't they make a random number server-side, which looks to be a better approach!?

why the hell do we have to pass a random number!?

¯\_(ツ)_/¯

Couldn't they make a random number server-side, which looks to be a better approach!?

I don't know why they did it the way the did. Perhaps it's so people can't spam by resending certain packets without modifying the random ID (which would first involve decoding the packet).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jinqad picture Jinqad  Â·  6Comments

iranpak picture iranpak  Â·  3Comments

saeedesfandi picture saeedesfandi  Â·  3Comments

Lerbytech picture Lerbytech  Â·  5Comments

saharokk picture saharokk  Â·  3Comments