fix: emit channel avatar service messages

This commit is contained in:
A 2026-07-05 15:14:41 +08:00
parent 4d9f1e271d
commit c38dd73fdd
14 changed files with 346 additions and 27 deletions

View file

@ -205,6 +205,17 @@ func tgChannelMessageAction(action domain.ChannelMessageAction) tg.MessageAction
userID = action.UserIDs[0]
}
return &tg.MessageActionChatDeleteUser{UserID: userID}
case domain.ChannelActionChatEditPhoto:
if action.Photo == nil {
return nil
}
photo := tgPhoto(*action.Photo)
if _, empty := photo.(*tg.PhotoEmpty); empty {
return nil
}
return &tg.MessageActionChatEditPhoto{Photo: photo}
case domain.ChannelActionChatDeletePhoto:
return &tg.MessageActionChatDeletePhoto{}
case domain.ChannelActionEditTitle:
return &tg.MessageActionChatEditTitle{Title: action.Title}
case domain.ChannelActionTopicCreate: