createPoll
TODO: توضیحات مربوط به createPoll را وارد کنید.
ورودیها
| نام | نوع |
|---|---|
object_guid | string |
question | string |
options | string[] |
type | `"Regular" |
is_anonymous | boolean (اختیاری، پیشفرض: true) |
allows_multiple_answers | boolean (اختیاری، پیشفرض: true) |
correct_option_index | number (اختیاری) |
explanation | string (اختیاری) |
reply_to_message_id | string (اختیاری) |
خروجی
unknown
نحوه استفاده
import Client from "rubika/client";
const client = new Client("session-name");
client.command("/createPoll", async (ctx) => {
await client.createPoll(
"object_guid: string",
"question: string",
"options: string[]",
"Regular",
true,
true,
"correct_option_index: number",
"explanation: string",
"reply_to_message_id: string"
);
});
client.run();