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

Added chat_join_request to PAYLOAD_TYPES + update API

Этот коммит содержится в:
Danyil Shkoropad
2023-06-28 23:54:47 +03:00
родитель af85966939
Коммит 74c2c28ab5
6 изменённых файлов: 12 добавлений и 1 удалений

1
.gitignore поставляемый
Просмотреть файл

@@ -10,3 +10,4 @@
/spec/reports/
/log/
/tmp/
.idea

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

@@ -1,5 +1,10 @@
# Unreleased
# 0.15.8
- Update to Bot API 6.7.
- Added `chat_join_request` to PAYLOAD_TYPES
# 0.15.7
- Add support for editMessageMedia similar to sendMediaGroup.

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

@@ -1,5 +1,5 @@
# Generated with bin/fetch-telegram-methods
# Bot API 6.6
# Bot API 6.7
getUpdates
setWebhook
@@ -72,6 +72,8 @@ answerCallbackQuery
setMyCommands
deleteMyCommands
getMyCommands
setMyName
getMyName
setMyDescription
getMyDescription
setMyShortDescription

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

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