Raw.InputMediaPoll
A poll
inputMediaPoll#f94e5f1 flags:# poll:Poll correct_answers:flags.0?Vector<bytes> solution:flags.1?string solution_entities:flags.1?Vector<MessageEntity> = InputMedia;
export namespace Raw {
export class InputMediaPoll {
constructor(params: {
poll: Raw.TypePoll;
correctAnswers?: Array<Buffer>;
solution?: string;
solutionEntities?: Array<Raw.TypeMessageEntity>;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xf94e5f1
Property
poll
: Raw.TypePollThe poll to send
correctAnswers
: Array of Buffer or undefinedCorrect answer ids (for quiz polls)
solution
: string or undefinedExplanation of quiz solution
solutionEntities
: Array of Raw.TypeMessageEntity or undefinedMessage entities for styled text