Skip to content

Commit adf6528

Browse files
committed
Update to Bot API 8.0
1 parent 04dc4a7 commit adf6528

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Unreleased
22

33
- Rails 8.0 support
4+
- Update to Bot API 8.0
45

56
# 0.16.4
67

lib/telegram/bot/client/api_methods.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Generated with bin/fetch-telegram-methods
2-
# Bot API 7.9
2+
# Bot API 8.0
33

44
getUpdates
55
setWebhook
@@ -31,6 +31,7 @@ sendDice
3131
sendChatAction
3232
setMessageReaction
3333
getUserProfilePhotos
34+
setUserEmojiStatus
3435
getFile
3536
banChatMember
3637
unbanChatMember
@@ -118,16 +119,20 @@ setStickerSetTitle
118119
setStickerSetThumbnail
119120
setCustomEmojiStickerSetThumbnail
120121
deleteStickerSet
122+
getAvailableGifts
123+
sendGift
121124

122125
answerInlineQuery
123126
answerWebAppQuery
127+
savePreparedInlineMessage
124128

125129
sendInvoice
126130
createInvoiceLink
127131
answerShippingQuery
128132
answerPreCheckoutQuery
129133
getStarTransactions
130134
refundStarPayment
135+
editUserStarSubscription
131136

132137
setPassportDataErrors
133138

lib/telegram/bot/updates_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ class UpdatesController < AbstractController::Base # rubocop:disable Metrics/Cla
105105
callback_query
106106
shipping_query
107107
pre_checkout_query
108+
purchased_paid_media
108109
poll
109110
poll_answer
110111
my_chat_member
111112
chat_member
112113
chat_join_request
113114
chat_boost
114115
removed_chat_boost
115-
pre_checkout_query
116116
].freeze)
117117

118118
class << self

spec/telegram/bot/updates_controller/typed_update_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
message_reaction_count
2929
chat_boost
3030
removed_chat_boost
31+
purchased_paid_media
3132
pre_checkout_query
3233
]).
3334
map { |x| [x, Telegram::Bot::Types.const_get(x.camelize)] }.to_h.

0 commit comments

Comments
 (0)