messages.SendVote#

class pyrogram.raw.functions.messages.SendVote#

Vote in a poll Starting from layer 159, the vote will be sent from the peer specified using messages.saveDefaultSendAs. Before voting, clients should check that the user is actually allowed to vote: voting is not possible if the poll is closed, if it is subscriber-only and the user is not an eligible subscriber, or if it is country-restricted and the user’s phone_country_iso2 is not in the poll’s allowed country list. See vote restrictions for the full list of conditions.

Usable by Users Bots
Details:
  • Layer: 227

  • ID: 10EA6184

Parameters:
  • peer (InputPeer) – The chat where the poll was sent

  • msg_id (int 32-bit) – The message ID of the poll

  • options (List of bytes) – The options that were chosen

Returns:

Updates