Message.vote()¶
- Message.vote()¶
Shortcut for method
vote_pollwill automatically fill method attributes:chat_id
message_id
- Parameters:
option (
int| List ofint) – Index or list of indexes (for multiple answers) of the poll option(s) you want to vote for (0 to 11).- Returns:
Poll– On success, the poll with the chosen option is returned.- Raises:
RPCError – In case of a Telegram RPC error.