Skip to content

Commit

Permalink
detect messages with story as "withVideo"
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Dec 8, 2024
1 parent 805e2a4 commit 639bb18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ func transform(msg *tbapi.Message) *bot.Message {
message.WithVideo = true
case msg.VideoNote != nil:
message.WithVideoNote = true
case msg.Story != nil: // telegram story is a sort of video-like thing, mark it as video
message.WithVideo = true
}

// fill in the message's reply-to message
Expand Down

0 comments on commit 639bb18

Please sign in to comment.