An error occurs when using the self-built api with --local to accept small file(<20m) from the wechat slave
All middlewares are initialized.
2022-09-09 08:40:20,729 [ERROR]: efb_telegram_master.slave_message (slave_message.send_message; slave_message.py:123)
Error occurred while processing message from slave channel.
Message: <Message, <ETMSelfChatMember: You (__self__) @ <ETMPrivateChat: 接收者 (xxxx) @ 💬WeChat Slave (blueset.wechat)>>@<ETMPrivateChat: 接收者(xxxx) @ 💬WeChat Slave (blueset.wechat)> [File]: 我的文件.pdf; Attributes: None; Delivering to: <efb_telegram_master.TelegramChannel object at 0x7f480abbc460>; Edited: False; System message: False; Substitutions: None; Target messages: None; UID: [["805520846334248486"]]; Reactions: {}; File: <tempfile._TemporaryFileWrapper object at 0x7f48082a5a90> 我的文件.pdf @ /tmp/tmpj7pesnxn), application/pdf; Vendor: {}>
FileNotFoundError(2, 'No such file or directory')
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 121, in send_message
self.dispatch_message(msg, msg_template, old_msg_id, tg_dest, silent)
File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 191, in dispatch_message
tg_msg = self.slave_message_file(msg, tg_dest, msg_template, reactions, old_msg_id, target_msg_id,
File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 706, in slave_message_file
return self.bot.send_document(tg_dest, file,
File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/bot_manager.py", line 94, in caption_affix
is_empty = self._detect_empty_file(file, chat, text, prefix, suffix)
File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/bot_manager.py", line 584, in _detect_empty_file
empty = os.stat(file).st_size == 0
FileNotFoundError: [Errno 2] No such file or directory: 'file:///tmp/tmpj7pesnxn'
and another error will occour when a big file(>20m) send from tg-master to wechat-slave:
Message is not sent.
Error from Web WeChat while sending file: [-1000] 返回值不带BaseResponse
An error occurs when using the self-built api with --local to accept small file(<20m) from the wechat slave
and another error will occour when a big file(>20m) send from tg-master to wechat-slave: