setSetting
TODO: توضیحات مربوط به 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 (اختیاری) |
خروجی
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();