зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-08-28 15:26:18 +03:00
Сравнить коммиты
4 Коммитов
| Автор | SHA1 | Дата | |
|---|---|---|---|
|
|
533d84c9ce | ||
|
|
7ddebcb1e2 | ||
|
|
e7b7e2a219 | ||
|
|
7a34c0aa88 |
@@ -1,5 +1,10 @@
|
||||
# Unreleased
|
||||
|
||||
# 0.16.3
|
||||
|
||||
- Update to Bot API 7.7
|
||||
- Added `pre_checkout_query` to PAYLOAD_TYPES
|
||||
|
||||
# 0.16.2
|
||||
|
||||
- Update to Bot API 7.3
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Generated with bin/fetch-telegram-methods
|
||||
# Bot API 7.3
|
||||
# Bot API 7.7
|
||||
|
||||
getUpdates
|
||||
setWebhook
|
||||
@@ -21,6 +21,7 @@ sendVideo
|
||||
sendAnimation
|
||||
sendVoice
|
||||
sendVideoNote
|
||||
sendPaidMedia
|
||||
sendMediaGroup
|
||||
sendLocation
|
||||
sendVenue
|
||||
@@ -123,6 +124,8 @@ sendInvoice
|
||||
createInvoiceLink
|
||||
answerShippingQuery
|
||||
answerPreCheckoutQuery
|
||||
getStarTransactions
|
||||
refundStarPayment
|
||||
|
||||
setPassportDataErrors
|
||||
|
||||
|
||||
@@ -112,6 +112,7 @@ module Telegram
|
||||
chat_join_request
|
||||
chat_boost
|
||||
removed_chat_boost
|
||||
pre_checkout_query
|
||||
].freeze)
|
||||
|
||||
class << self
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
module Telegram
|
||||
module Bot
|
||||
VERSION = '0.16.2'
|
||||
VERSION = '0.16.3'
|
||||
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION
|
||||
|
||||
@@ -28,6 +28,7 @@ RSpec.describe Telegram::Bot::UpdatesController::TypedUpdate do
|
||||
message_reaction_count
|
||||
chat_boost
|
||||
removed_chat_boost
|
||||
pre_checkout_query
|
||||
]).
|
||||
map { |x| [x, Telegram::Bot::Types.const_get(x.camelize)] }.to_h.
|
||||
merge(
|
||||
|
||||
@@ -49,6 +49,7 @@ RSpec.describe Telegram::Bot::UpdatesController do
|
||||
callback_query
|
||||
poll_answer
|
||||
chat_join_request
|
||||
pre_checkout_query
|
||||
]
|
||||
(described_class::PAYLOAD_TYPES - custom_payload_types).each do |type|
|
||||
context "when payload is #{type}" do
|
||||
|
||||
Ссылка в новой задаче
Block a user