1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-08-28 15:26:18 +03:00

Merge pull request #209 from anko20094/added-chat-join-request-to-payload-types

Added chat_join_request to PAYLOAD_TYPES + update API
Этот коммит содержится в:
Max Melentiev
2023-11-09 21:14:23 -08:00
коммит произвёл GitHub
родитель ca20bb0533 7cfceb7439
Коммит 21ca16f613
4 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@@ -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.

Просмотреть файл

@@ -101,6 +101,7 @@ module Telegram
poll_answer
my_chat_member
chat_member
chat_join_request
].freeze
class << self

Просмотреть файл

@@ -15,6 +15,7 @@ RSpec.describe Telegram::Bot::UpdatesController::TypedUpdate do
edited_channel_post
my_chat_member
chat_member
chat_join_request
]).
map { |x| [x, Telegram::Bot::Types.const_get(x.camelize)] }.to_h.
merge(

Просмотреть файл

@@ -46,6 +46,7 @@ RSpec.describe Telegram::Bot::UpdatesController do
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