fix bot text style
This commit is contained in:
@@ -45,15 +45,15 @@ export async function POST(request: Request) {
|
||||
}
|
||||
|
||||
const lines = [
|
||||
'📩 <b>درخواست جدید مشاوره سازمانی</b>',
|
||||
'',
|
||||
`<b>نام و نام خانوادگی:</b> ${escapeHtml(fullName.trim())}`,
|
||||
`<b>نام سازمان:</b> ${escapeHtml(organization.trim())}`,
|
||||
`<b>شماره تماس:</b> ${escapeHtml(phone.trim())}`,
|
||||
`<b>حوزه مشاوره:</b> ${escapeHtml(area.trim())}`,
|
||||
'📩 درخواست جدید مشاوره سازمانی',
|
||||
'────────────────',
|
||||
`👤 نام و نام خانوادگی: ${escapeHtml(fullName.trim())}`,
|
||||
`🏢 نام سازمان: ${escapeHtml(organization.trim())}`,
|
||||
`📱 شماره تماس: ${escapeHtml(phone.trim())}`,
|
||||
`📋 حوزه مشاوره: ${escapeHtml(area.trim())}`,
|
||||
]
|
||||
if (description?.trim()) {
|
||||
lines.push('', '<b>توضیحات:</b>', escapeHtml(description.trim()))
|
||||
lines.push('', `💬 توضیحات:\n${escapeHtml(description.trim())}`)
|
||||
}
|
||||
|
||||
const text = lines.join('\n')
|
||||
@@ -65,7 +65,6 @@ export async function POST(request: Request) {
|
||||
body: JSON.stringify({
|
||||
chat_id: chatId,
|
||||
text,
|
||||
parse_mode: 'HTML',
|
||||
}),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user