Skip to content

Commit

Permalink
Merge pull request #5 from NahidaBuer/main
Browse files Browse the repository at this point in the history
πŸ› bugfix: try to fix wrong sender for forwarded channel messge
  • Loading branch information
krau authored Jun 20, 2024
2 parents ee8c1c5 + 3e5b398 commit 80391de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/quote.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ module.exports = async (ctx, next) => {
} else if (replyMessageInfo.forward_from_chat) {
replyMessageInfo.from = replyMessageInfo.forward_from_chat
}
if (replyMessageInfo.title) message.replyMessage.name = title
if (replyMessageInfo.from.title) message.replyMessage.name = replyMessageInfo.from.title
if (replyMessageInfo.from.first_name) message.replyMessage.name = replyMessageInfo.from.first_name
if (replyMessageInfo.from.last_name) message.replyMessage.name += ' ' + replyMessageInfo.from.last_name
if (replyMessageInfo.from.id) {
Expand Down

0 comments on commit 80391de

Please sign in to comment.