我尝试使用python和TelegrambotAPI构建Telegram机器人,由于TelegramBotAPI在我的国家被审查,我发现此脚本通过使用Google Apps脚本部署的应用程序绕过了它但问题是,它只发送文本,而不是文件,所以我希望web应用程序将我发送给它的文件重定向到Telegram,这是我的python代码的一部分:
f
我试图从一个电报BOT.When中发送一个PDF,我从我的服务器上选择一个文件,它显示了以下消息:
Client error: `POST https://api.telegram.org/botXXXX/sendDocument` resulted in a `400 Bad Request` response:\n {"ok":false,"error_code":400,"descriptio