зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-05 18:45:51 +03:00
Add pre_checkout_query to PAYLOAD_TYPES (#238)
* Update Bot API version from 7.5 to 7.7 - Add new method: sendPaidMedia * Add pre_checkout_query to PAYLOAD_TYPES - Added pre_checkout_query to updates_controller.rb - Updated tests in updates_controller_spec.rb - Updated tests in typed_update_spec.rb - Updated CHANGELOG.md for Bot API 7.7 and pre_checkout_query
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e7b7e2a219
Коммит
7ddebcb1e2
@@ -1,5 +1,8 @@
|
|||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- Update to Bot API 7.7
|
||||||
|
- Added `pre_checkout_query` to PAYLOAD_TYPES
|
||||||
|
|
||||||
# 0.16.2
|
# 0.16.2
|
||||||
|
|
||||||
- Update to Bot API 7.3
|
- Update to Bot API 7.3
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ module Telegram
|
|||||||
chat_join_request
|
chat_join_request
|
||||||
chat_boost
|
chat_boost
|
||||||
removed_chat_boost
|
removed_chat_boost
|
||||||
|
pre_checkout_query
|
||||||
].freeze)
|
].freeze)
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ RSpec.describe Telegram::Bot::UpdatesController::TypedUpdate do
|
|||||||
message_reaction_count
|
message_reaction_count
|
||||||
chat_boost
|
chat_boost
|
||||||
removed_chat_boost
|
removed_chat_boost
|
||||||
|
pre_checkout_query
|
||||||
]).
|
]).
|
||||||
map { |x| [x, Telegram::Bot::Types.const_get(x.camelize)] }.to_h.
|
map { |x| [x, Telegram::Bot::Types.const_get(x.camelize)] }.to_h.
|
||||||
merge(
|
merge(
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ RSpec.describe Telegram::Bot::UpdatesController do
|
|||||||
callback_query
|
callback_query
|
||||||
poll_answer
|
poll_answer
|
||||||
chat_join_request
|
chat_join_request
|
||||||
|
pre_checkout_query
|
||||||
]
|
]
|
||||||
(described_class::PAYLOAD_TYPES - custom_payload_types).each do |type|
|
(described_class::PAYLOAD_TYPES - custom_payload_types).each do |type|
|
||||||
context "when payload is #{type}" do
|
context "when payload is #{type}" do
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user