PollAnswer#

class pyrogram.raw.types.PollAnswer#

A possible answer of a poll

Constructor of PollAnswer.

Details:
  • Layer: 227

  • ID: 4B7D786A

Parameters:
  • text (TextWithEntities) – Textual representation of the answer (only Premium users can use custom emoji entities here).

  • option (bytes) – The param that has to be passed to messages.sendVote.

  • media (MessageMedia, optional) – Optional media attachment displayed alongside the answer

  • added_by (Peer, optional) – The peer who added this answer; only set for answers dynamically added to an open-answer poll, see polls »

  • date (int 32-bit, optional) – When this answer was added; only set for answers dynamically added to an open-answer poll