mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 15:19:51 +08:00
When a media attachment cannot be sent, the Telegram channel tells the
chat "[Failed to send: <name>]", taking the name with
media_path.rsplit("/", 1)[-1]. A Windows server's path has no "/", so
the chat received the server's full local path instead, exposing the
account name and directory layout to everyone in the chat.
Use Path(media_path).name, as the WeChat channel already does.