feat: add retry function for media messages#67
Draft
jiz4oh wants to merge 26 commits intoehForwarderBot:masterfrom
Draft
feat: add retry function for media messages#67jiz4oh wants to merge 26 commits intoehForwarderBot:masterfrom
jiz4oh wants to merge 26 commits intoehForwarderBot:masterfrom
Conversation
cause it's easier to reach rate limit on telegram
Replace hardcoded Windows path with dynamic base path from bot instance to improve portability and fix path resolution for CDN downloads. f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
comwechat 有 bug,偶尔会有这种 video/image 等不带 filepath 的消息
{ 'extrainfo': '<msgsource>\n\t<alnode>\n\t\t<fr>2</fr>\n\t</alnode>\n\t<tmp_node>\n\t\t<publisher-id></publisher-id>\n\t</tmp_node>\n\t<videopreloadlen>696270</videopreloadlen>\n\t<sec_msg_node>\n\t\t<uuid>74206657501c59dcd579ed62d6e4f641_</uuid>\n\t\t<risk-file-flag />\n\t\t<risk-file-md5-list />\n\t</sec_msg_node>\n\t<videomsg_pd cdnvideourl_size="2168123" cdnvideourl_score_all="" cdnvideourl_pd_pri="30" cdnvideourl_pd="0" />\n\t<silence>1</silence\n\t<membercount>183</membercount>\n\t<signature>N0_V1_KaPrvbXa|v1_roIRDPfD</signature>\n</msgsource>\n', 'filepath': '', 'isSendMsg': 0, 'message': '<?xml version="1.0"?>\n<msg>\n\t<videomsg aeskey="77ce5eff066fd9199e3664bbe3c1ce71" cdnvideourl="3057020100044b30490201000204f13225d402032f5c39020429000c790204692d906c042436313366336139362d373530352d343037322d393464322d6539343936363861663430370204052408040201000405004c550500" cdnthumbaeskey="77ce5eff066fd9199e3664bbe3c1ce71" cdnthumburl="3057020100044b30490201000204f13225d402032f5c39020429000c790204692d906c042436313366336139362d373530352d343037322d393464322d6539343936363861663430370204052408040201000405004c550500" length="2168123" playlength="16" cdnthumblength="18231" cdnthumbwidth="254" cdnthumbheight="452" fromusername="feifei599391" md5="2dd0944652134a3b6a51fd117ad2adea" newmd5="53998e517ba121545e0ad92dd4060008" isplaceholder="0" rawmd5="" rawlength="0" cdnrawvideourl="" cdnrawvideoaeskey="" overwritenewmsgid="0" originsourcemd5="" isad="0" />\n</msg>\n', 'msgid': 4762485558704801495, 'pid': 32, 'self': 'wxid_pesbuk5l2lfq21', 'sender': '52712247978@chatroom', 'sign': '294e1dd3f257ba8b4e0f208c25741618', 'thumb_path': '', 'time': '2025-12-01 23:44:54', 'timestamp': 1764636960, 'type': 'video', 'wxid': 'feifei599391' }在一些异常的媒体消息上添加重试命令。也可以主动回复
/retry做重试