n3d1117 / chatgpt-telegram-bot

🤖 A Telegram bot that integrates with OpenAI's official ChatGPT APIs to provide answers, written in Python
GNU General Public License v2.0
3.1k stars 1.42k forks source link

help error 403 #629

Open Miracle122222 opened 3 months ago

Miracle122222 commented 3 months ago
raise Exception(f"⚠️ _{localized_text('error', bot_language)}._ ⚠️\n{st

r(e)}") from e Exception: ⚠️ An error has occurred. ⚠️ Error code: 403 - {'error': {'code': 'unsupported_country_region_territory', 'message': 'Country, region, or territory not supported', 'param': None, 'type': 'request_forbidden'}}

PROXY=http:/xxxxx:xxxxx@xxxxxx:62700

standby-cappuccino commented 3 months ago

I encountered the same issue, but I resolved it by changing the IP address of the server running the ChatGPT-Telegram bot.

DaDeDuDa commented 1 month ago

I encountered the same issue, but I resolved it by changing the IP address of the server running the ChatGPT-Telegram bot.

And how did you do it? In which file/code can/should I make changes? The trouble is that my country has been sanctioned and local hosting companies will not be able to help me install and launch the bot, and I really need it. I would be grateful for tips on how to solve the issue with this error.