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

setSetting

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

ورودی‌ها​

نامنوع
show_my_last_onlineAllSettingsType (اختیاری)
show_my_phone_numberAllSettingsType (اختیاری)
link_forward_messageAllSettingsType (اختیاری)
show_my_profile_photoSettingsType (اختیاری)
can_join_chat_bySettingsType (اختیاری)

خروجی​

unknown


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

import Client from "rubika/client";

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

client.command("/setSetting", async (ctx) => {
await client.setSetting(
"show_my_last_online: AllSettingsType",
"show_my_phone_number: AllSettingsType",
"link_forward_message: AllSettingsType",
"show_my_profile_photo: SettingsType",
"can_join_chat_by: SettingsType"
);
});

client.run();