Skip to content

Commit

Permalink
Merge pull request #95 from renatovico/main
Browse files Browse the repository at this point in the history
Add Suport to image/webp sticker media
  • Loading branch information
ignacio-chiazzo committed Jul 24, 2023
2 parents 078f320 + d0c072b commit 1572905
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Unreleased

- Add Support to image/webp sticker media. @renatovico [#94](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/issues/94)

# v 0.9.1
- Invalidate unsupported and invalid media types @ignacio-chiazzo [#89](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/89)

Expand Down
3 changes: 2 additions & 1 deletion lib/whatsapp_sdk/resource/media_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ class MediaTypes
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
].freeze
IMAGE_TYPES = %w[image/jpeg image/png].freeze
STICKER_TYPES = %w[image/webp].freeze
VIDEO_TYPES = %w[video/mp4 video/3gp].freeze

SUPPORTED_MEDIA_TYPES = [AUDIO_TYPES + DOCUMENT_TYPES + IMAGE_TYPES + VIDEO_TYPES].flatten.freeze
SUPPORTED_MEDIA_TYPES = [AUDIO_TYPES + DOCUMENT_TYPES + IMAGE_TYPES + STICKER_TYPES + VIDEO_TYPES].flatten.freeze
end
end
end

0 comments on commit 1572905

Please sign in to comment.