Skip to content

Commit

Permalink
fix: fix media not being sent
Browse files Browse the repository at this point in the history
  • Loading branch information
akshettrj committed Oct 20, 2024
1 parent d804a86 commit bd5bec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whatsapp/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ func MessageFromOthersEventHandler(text string, v *events.Message, isEdited bool
ReplyParameters: &gotgbot.ReplyParameters{
MessageId: replyToMsgId,
},
HasSpoiler: *imageMsg.ViewOnce,
HasSpoiler: (imageMsg.ViewOnce != nil && *imageMsg.ViewOnce),
MessageThreadId: threadId,
})
if sentMsg.MessageId != 0 {
Expand Down Expand Up @@ -654,7 +654,7 @@ func MessageFromOthersEventHandler(text string, v *events.Message, isEdited bool
ReplyParameters: &gotgbot.ReplyParameters{
MessageId: replyToMsgId,
},
HasSpoiler: *videoMsg.ViewOnce,
HasSpoiler: (videoMsg.ViewOnce != nil && *videoMsg.ViewOnce),
MessageThreadId: threadId,
})
if sentMsg.MessageId != 0 {
Expand Down

0 comments on commit bd5bec9

Please sign in to comment.