1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-03 17:55:52 +03:00

Сравнить коммиты

..

4 Коммитов

Автор SHA1 Сообщение Дата
Max Melentiev
533d84c9ce v0.16.3 2024-07-21 19:50:03 -04:00
Danyil Shkoropad
7ddebcb1e2 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
2024-07-16 22:20:52 +01:00
Danyil Shkoropad
e7b7e2a219 Update Bot API version from 7.5 to 7.7 (#237)
- Add new method: sendPaidMedia
2024-07-08 21:05:45 +01:00
Danyil Shkoropad
7a34c0aa88 Bot API updated from 7.3 to 7.5 (#236) 2024-06-29 14:31:34 +01:00
6 изменённых файлов: 13 добавлений и 2 удалений

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

@@ -1,5 +1,10 @@
# Unreleased # Unreleased
# 0.16.3
- 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

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

@@ -1,5 +1,5 @@
# Generated with bin/fetch-telegram-methods # Generated with bin/fetch-telegram-methods
# Bot API 7.3 # Bot API 7.7
getUpdates getUpdates
setWebhook setWebhook
@@ -21,6 +21,7 @@ sendVideo
sendAnimation sendAnimation
sendVoice sendVoice
sendVideoNote sendVideoNote
sendPaidMedia
sendMediaGroup sendMediaGroup
sendLocation sendLocation
sendVenue sendVenue
@@ -123,6 +124,8 @@ sendInvoice
createInvoiceLink createInvoiceLink
answerShippingQuery answerShippingQuery
answerPreCheckoutQuery answerPreCheckoutQuery
getStarTransactions
refundStarPayment
setPassportDataErrors setPassportDataErrors

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

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

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

@@ -2,7 +2,7 @@
module Telegram module Telegram
module Bot module Bot
VERSION = '0.16.2' VERSION = '0.16.3'
def self.gem_version def self.gem_version
Gem::Version.new VERSION Gem::Version.new VERSION

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

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