fix: remove Markdown parse_mode from Telegram messages
- Telegram API returns 400 Bad Request with invalid Markdown characters - Switched to plain text mode (no parse_mode) to prevent errors - Photo and voice processing now work correctly - Fixes issue where vision-8b responses couldn't be sent to users
This commit is contained in:
@@ -1640,7 +1640,7 @@ async def send_telegram_message(chat_id: str, text: str, bot_token: str = None):
|
|||||||
payload = {
|
payload = {
|
||||||
"chat_id": chat_id,
|
"chat_id": chat_id,
|
||||||
"text": text,
|
"text": text,
|
||||||
"parse_mode": "Markdown",
|
# "parse_mode": "Markdown", # Removed to prevent 400 errors
|
||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user