createRequest

fun Poll.createRequest(chatId: ChatIdentifier, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendPoll

Return

SendPoll in case when all is right. It can return SendRegularPoll for QuizPoll in case if QuizPoll.correctOptionId equal to null