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

sendPhoto

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

ورودی‌ها​

نامنوع
object_guidstring
photoBuffer<ArrayBufferLike> , string
textstring (اختیاری)
reply_idstring (اختیاری)
is_spoilboolean (اختیاری)
auto_deletenumber (اختیاری)

خروجی​

unknown


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

import Client from "rubika/client";

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

client.command("/sendPhoto", async (ctx) => {
await client.sendPhoto(
"object_guid: string",
"photo: Buffer<ArrayBufferLike> | string",
"text: string",
"reply_id: string",
"is_spoil: boolean",
"auto_delete: number"
);
});

client.run();