Repository navigation
fix: 被回复消息已删除时忽略回复并继续转发 - #92
Merged
Merged
Conversation
当映射的 reply 目标在 Telegram 侧不存在时,不再让整条转发失败, 而是去掉回复后正常发送。映射回复发送同时带上 allow_sending_without_reply。 Co-authored-by: pplulee <hi@pplulee.me>
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.
用户私聊回复较早的消息时,如果管理群话题里对应的映射消息已被删除,Telegram 会返回
400: message to be replied not found,整条转发失败。本次改动:
allow_sending_without_reply=True(reply_to_message_id或ReplyParameters)message to be replied not found/replied message not found后去掉 reply kwargs 再发一次<blockquote>的回退仍然有效;quote 回退后再遇到目标消息不存在时,也会去掉回复继续发送测试:
python -m pytest已通过。