AI Update: الان کجاییم؟
This commit is contained in:
@@ -3134,14 +3134,15 @@ async def switch_conv_command(update: Update, context: ContextTypes.DEFAULT_TYPE
|
||||
await update.message.reply_html(msg_text)
|
||||
return
|
||||
|
||||
target_cid = curr_proj.conversation_id or target
|
||||
curr_proj = session_manager.get_current_project(chat_id)
|
||||
target_cid = (curr_proj.conversation_id if curr_proj else target) or target
|
||||
first_prompt = meta.get("first_prompt") or "(شروع مکالمه)"
|
||||
turns = meta.get("turns_count", 0)
|
||||
|
||||
if is_fa:
|
||||
text = (
|
||||
f"💬 <b>با موفقیت به گفتگو سوییچ کردید!</b>\n\n"
|
||||
f"• 📁 <b>پروژه فعال:</b> <code>{escape_html(curr_proj.name)}</code>\n"
|
||||
f"• 📁 <b>پروژه فعال:</b> <code>{escape_html(curr_proj.name if curr_proj else 'default')}</code>\n"
|
||||
f"• 💬 <b>شناسه مکالمه فعال:</b> <code>{target_cid}</code>\n"
|
||||
f"• 🔢 <b>تعداد نوبتها:</b> <code>{turns} نوبت</code>\n"
|
||||
f"• 📝 <b>موضوع/اولین پیام:</b> <i>{escape_html(first_prompt[:120])}</i>\n\n"
|
||||
@@ -5323,13 +5324,14 @@ async def callback_handler(update: Update, context: ContextTypes.DEFAULT_TYPE):
|
||||
if not success:
|
||||
await query.answer(strip_ansi(msg_text), show_alert=True)
|
||||
return
|
||||
curr_proj = session_manager.get_current_project(chat_id)
|
||||
await query.answer("✅ گفتگو با موفقیت تغییر یافت.")
|
||||
first_prompt = meta.get("first_prompt") or "(شروع مکالمه)"
|
||||
turns = meta.get("turns_count", 0)
|
||||
if is_fa:
|
||||
text = (
|
||||
f"💬 <b>گفتگو تغییر یافت!</b>\n\n"
|
||||
f"• 📁 <b>پروژه فعال:</b> <code>{escape_html(curr_proj.name)}</code>\n"
|
||||
f"• 📁 <b>پروژه فعال:</b> <code>{escape_html(curr_proj.name if curr_proj else 'default')}</code>\n"
|
||||
f"• 💬 <b>شناسه مکالمه فعال:</b> <code>{target_cid}</code>\n"
|
||||
f"• 🔢 <b>تعداد نوبتها:</b> <code>{turns} نوبت</code>\n"
|
||||
f"• 📝 <b>موضوع/اولین پیام:</b> <i>{escape_html(first_prompt[:120])}</i>\n\n"
|
||||
|
||||
Reference in New Issue
Block a user