Message.vote()
- async Message.vote()
Bound method vote of
Message.Use as a shortcut for:
client.vote_poll( chat_id=message.chat.id, message_id=message.id, option=1 )Example
message.vote(6)- Parameters:
option (
int) – Index of the poll option you want to vote for (0 to 9).- Returns:
Poll– On success, the poll with the chosen option is returned.- Raises:
RPCError – In case of a Telegram RPC error.