Skip to content

Commit

Permalink
Merge pull request #209 from anko20094/added-chat-join-request-to-pay…
Browse files Browse the repository at this point in the history
…load-types

Added chat_join_request to PAYLOAD_TYPES + update API
  • Loading branch information
printercu authored Nov 10, 2023
2 parents ca20bb0 + 7cfceb7 commit 21ca16f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Unreleased

- Update to Bot API 6.8
- Added `chat_join_request` to PAYLOAD_TYPES

# 0.15.7

- Add support for editMessageMedia similar to sendMediaGroup.
Expand Down
1 change: 1 addition & 0 deletions lib/telegram/bot/updates_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class UpdatesController < AbstractController::Base # rubocop:disable ClassLength
poll_answer
my_chat_member
chat_member
chat_join_request
].freeze

class << self
Expand Down
1 change: 1 addition & 0 deletions spec/telegram/bot/updates_controller/typed_update_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
edited_channel_post
my_chat_member
chat_member
chat_join_request
]).
map { |x| [x, Telegram::Bot::Types.const_get(x.camelize)] }.to_h.
merge(
Expand Down
1 change: 1 addition & 0 deletions spec/telegram/bot/updates_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def stub_payload(*fields)
chosen_inline_result
callback_query
poll_answer
chat_join_request
]
(described_class::PAYLOAD_TYPES - custom_payload_types).each do |type|
context "when payload is #{type}" do
Expand Down

0 comments on commit 21ca16f

Please sign in to comment.