Expose the price-channel per-product message template.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-04 20:42:57 +03:30
co-authored by Cursor
parent 3364e92d5d
commit bef5da6239
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -252,6 +252,7 @@ const PRICE_CHANNEL_PANEL_KEYS = new Set([
'price_channel_diff',
'price_channel_min_seconds',
'price_channel_message_text',
'price_channel_product_message_text',
'price_channel_footer_id',
'price_channel_footer_phone',
'price_channel_footer_link',
@@ -430,6 +431,7 @@ const KEY_TYPE_FALLBACK: Record<string, SettingFieldType> = {
price_channel_telegram_to: 'text',
price_channel_rubika_to: 'text',
price_channel_message_text: 'longtext',
price_channel_product_message_text: 'longtext',
rubika_bot_token: 'text',
change_mesghal: 'number'
}
@@ -998,6 +1000,8 @@ const KEY_HELP_FALLBACK: Record<string, string> = {
'آیدی چنل یا گروه روبیکا که قیمت برایش ارسال می‌شود. چند مقصد را با ویرگول جدا کنید.',
price_channel_message_text:
'قالب پیامی که با تغییر قیمت به کانال ارسال می‌شود. متن را بنویسید و متغیرها را با کلیک اضافه کنید؛ پیش‌نمایش، پیام نهایی را با مقادیر نمونه نشان می‌دهد. خالی = قالب پیش‌فرض.',
price_channel_product_message_text:
'قالب نمایش هر یک از محصولات در پیام کانال. متغیرهای %نام_محصول، %قیمت_خرید، %قیمت_فروش به ازای هر محصول جایگزین شده و کل لیست به جای %محصولات قرار می‌گیرد. خالی = قالب پیش‌فرض.',
rubika_bot_token:
'توکن ربات روبیکا برای ارسال قیمت به کانال. محرمانه نگه دارید.',
change_mesghal:
@@ -1143,6 +1147,7 @@ export const KEY_LABEL_FALLBACK: Record<string, string> = {
price_channel_telegram_to: 'مقصد ارسال تلگرام',
price_channel_rubika_to: 'مقصد ارسال روبیکا',
price_channel_message_text: 'قالب متن پیام کانال',
price_channel_product_message_text: 'قالب متن هر محصول کانال',
rubika_bot_token: 'توکن بات روبیکا',
change_mesghal: 'وزن مثقال (گرم)'
}
+1
View File
@@ -142,6 +142,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"price_channel_footer_link",
"price_channel_footer_phone",
"price_channel_message_text",
"price_channel_product_message_text",
"price_channel_messengers",
"price_channel_min_seconds",
"price_channel_rubika_to",