sendPhoto
TODO: توضیحات مربوط به sendPhoto را وارد کنید.
ورودیها
| نام | نوع |
|---|---|
object_guid | string |
photo | Buffer<ArrayBufferLike> , string |
text | string (اختیاری) |
reply_id | string (اختیاری) |
is_spoil | boolean (اختیاری) |
auto_delete | number (اختیاری) |
خروجی
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();