зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-03 17:55:52 +03:00
Update to Bot API 8.2
Этот коммит содержится в:
@@ -89,31 +89,13 @@ module Telegram
|
||||
|
||||
extend Session::ConfigMethods
|
||||
|
||||
PAYLOAD_TYPES = Set.new(%w[
|
||||
message
|
||||
edited_message
|
||||
channel_post
|
||||
edited_channel_post
|
||||
business_connection
|
||||
business_message
|
||||
edited_business_message
|
||||
deleted_business_messages
|
||||
message_reaction
|
||||
message_reaction_count
|
||||
inline_query
|
||||
chosen_inline_result
|
||||
callback_query
|
||||
shipping_query
|
||||
pre_checkout_query
|
||||
purchased_paid_media
|
||||
poll
|
||||
poll_answer
|
||||
my_chat_member
|
||||
chat_member
|
||||
chat_join_request
|
||||
chat_boost
|
||||
removed_chat_boost
|
||||
].freeze)
|
||||
PAYLOAD_TYPES_FILE = File.expand_path('updates_controller/payload_types.txt', __dir__)
|
||||
PAYLOAD_TYPES = File.read(PAYLOAD_TYPES_FILE).
|
||||
lines.
|
||||
map(&:strip).
|
||||
reject { |x| x.empty? || x.start_with?('#') }.
|
||||
to_set.
|
||||
freeze
|
||||
|
||||
class << self
|
||||
# Initialize controller and process update.
|
||||
|
||||
Ссылка в новой задаче
Block a user