Interface MessagePoll

A message with a poll. Subtype of MessageContent.

interface MessagePoll {
    @type: "messagePoll";
    can_add_option?: boolean;
    description: FormattedText;
    media: PollMedia;
    poll: Poll;
}

Properties

@type: "messagePoll"
can_add_option?: boolean

True, if an option can be added to the poll using addPollOption.

description: FormattedText

A message with a poll.

media: PollMedia

Media attached to the poll; may be null if none. If present, currently, can only be of the types pollMediaAnimation, pollMediaAudio, pollMediaDocument, pollMediaLocation, pollMediaPhoto, pollMediaVenue, or pollMediaVideo.

poll: Poll

Information about the poll.