پرش به مطلب اصلی

sendDocument

TODO: توضیحات مربوط به sendDocument را وارد کنید.

ورودی‌ها​

نامنوع
object_guidstring
documentstring , Buffer<ArrayBufferLike>
captionstring (اختیاری)
reply_to_message_idstring (اختیاری)
auto_deletenumber (اختیاری)

خروجی​

unknown


نحوه استفاده​

import Client from "rubika/client";

const client = new Client("session-name");

client.command("/sendDocument", async (ctx) => {
await client.sendDocument(
"object_guid: string",
"document: string | Buffer<ArrayBufferLike>",
"caption: string",
"reply_to_message_id: string",
"auto_delete: number"
);
});

client.run();