fix: emit channel avatar service messages
This commit is contained in:
parent
4d9f1e271d
commit
c38dd73fdd
14 changed files with 346 additions and 27 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue