telegram-bot-ruby 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/telegram/bot/api.rb +1 -1
- data/lib/telegram/bot/types.rb +3 -0
- data/lib/telegram/bot/types/audio.rb +1 -0
- data/lib/telegram/bot/types/chat_location.rb +10 -0
- data/lib/telegram/bot/types/chat_member.rb +2 -1
- data/lib/telegram/bot/types/inline_query_result_audio.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_cached_audio.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_cached_document.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_cached_gif.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_cached_mpeg4_gif.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_cached_photo.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_cached_video.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_cached_voice.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_document.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_location.rb +4 -0
- data/lib/telegram/bot/types/inline_query_result_mpeg4_gif.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_photo.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_venue.rb +2 -0
- data/lib/telegram/bot/types/inline_query_result_video.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_voice.rb +1 -0
- data/lib/telegram/bot/types/input_location_message_content.rb +4 -0
- data/lib/telegram/bot/types/input_media_document.rb +2 -0
- data/lib/telegram/bot/types/input_media_photo.rb +1 -0
- data/lib/telegram/bot/types/input_media_video.rb +1 -0
- data/lib/telegram/bot/types/input_venue_message_content.rb +2 -0
- data/lib/telegram/bot/types/location.rb +4 -0
- data/lib/telegram/bot/types/message.rb +2 -0
- data/lib/telegram/bot/types/proximity_alert_triggered.rb +11 -0
- data/lib/telegram/bot/types/venue.rb +2 -0
- data/lib/telegram/bot/types/video.rb +1 -0
- data/lib/telegram/bot/types/webhook_info.rb +17 -0
- data/lib/telegram/bot/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0ba0d92965d18c16f771efe9627014c8eed215ed5df52ffd42941fcb6fe9aac
|
4
|
+
data.tar.gz: 6d6878ef985d34e14277c682c793477e4a9bd8feabce322c5a14017de1364ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6242afc917fb38d18f24b7ceeb27224464ffc8e71acc17aecf03296368f07c9a56b05e4b7d0b8d3a8c27ccab978fe544017dece71fcb4087154e37ce09d39f35
|
7
|
+
data.tar.gz: 7807d1b0f930714927c26f1295cbaecedd3a51f0342e50abcb2aff09aa4da56086609bb2ac18235a1084aef023936e06975368a8a4f7d2a2580d7bdcb5f49cb2
|
data/CHANGELOG.md
CHANGED
data/lib/telegram/bot/api.rb
CHANGED
@@ -19,7 +19,7 @@ module Telegram
|
|
19
19
|
sendGame setGameScore getGameHighScores setPassportDataErrors
|
20
20
|
editMessageMedia sendAnimation sendPoll stopPoll setChatPermissions
|
21
21
|
setChatAdministratorCustomTitle sendDice getMyCommands setMyCommands
|
22
|
-
setStickerSetThumb
|
22
|
+
setStickerSetThumb logOut close copyMessage
|
23
23
|
).freeze
|
24
24
|
REPLY_MARKUP_TYPES = [
|
25
25
|
Telegram::Bot::Types::ReplyKeyboardMarkup,
|
data/lib/telegram/bot/types.rb
CHANGED
@@ -72,6 +72,7 @@ require 'telegram/bot/types/inline_query_result_venue'
|
|
72
72
|
require 'telegram/bot/types/inline_query_result_video'
|
73
73
|
require 'telegram/bot/types/inline_query_result_voice'
|
74
74
|
require 'telegram/bot/types/chosen_inline_result'
|
75
|
+
require 'telegram/bot/types/proximity_alert_triggered'
|
75
76
|
require 'telegram/bot/types/message'
|
76
77
|
require 'telegram/bot/types/callback_query'
|
77
78
|
require 'telegram/bot/types/shipping_query'
|
@@ -92,5 +93,7 @@ require 'telegram/bot/types/input_media_video'
|
|
92
93
|
require 'telegram/bot/types/input_media_animation'
|
93
94
|
require 'telegram/bot/types/input_media_audio'
|
94
95
|
require 'telegram/bot/types/input_media_document'
|
96
|
+
require 'telegram/bot/types/webhook_info'
|
97
|
+
require 'telegram/bot/types/chat_location'
|
95
98
|
|
96
99
|
Virtus.finalize
|
@@ -5,7 +5,7 @@ module Telegram
|
|
5
5
|
attribute :user, User
|
6
6
|
attribute :status, String
|
7
7
|
attribute :custom_title, String
|
8
|
-
attribute :
|
8
|
+
attribute :is_anonymous, Boolean
|
9
9
|
attribute :can_be_edited, Boolean
|
10
10
|
attribute :can_post_messages, Boolean
|
11
11
|
attribute :can_edit_messages, Boolean
|
@@ -21,6 +21,7 @@ module Telegram
|
|
21
21
|
attribute :can_send_polls, Boolean
|
22
22
|
attribute :can_send_other_messages, Boolean
|
23
23
|
attribute :can_add_web_page_previews, Boolean
|
24
|
+
attribute :until_date, Integer
|
24
25
|
end
|
25
26
|
end
|
26
27
|
end
|
@@ -7,6 +7,10 @@ module Telegram
|
|
7
7
|
attribute :latitude, Float
|
8
8
|
attribute :longitude, Float
|
9
9
|
attribute :title, String
|
10
|
+
attribute :horizontal_accuracy, Float
|
11
|
+
attribute :live_period, Integer
|
12
|
+
attribute :heading, Integer
|
13
|
+
attribute :proximity_alert_radius, Integer
|
10
14
|
attribute :reply_markup, InlineKeyboardMarkup
|
11
15
|
attribute :input_message_content, InputMessageContent
|
12
16
|
attribute :thumb_url, String
|
@@ -10,6 +10,8 @@ module Telegram
|
|
10
10
|
attribute :address, String
|
11
11
|
attribute :foursquare_id, String
|
12
12
|
attribute :foursquare_type, String
|
13
|
+
attribute :google_place_id, String
|
14
|
+
attribute :google_place_type, String
|
13
15
|
attribute :reply_markup, InlineKeyboardMarkup
|
14
16
|
attribute :input_message_content, InputMessageContent
|
15
17
|
attribute :thumb_url, String
|
@@ -7,6 +7,7 @@ module Telegram
|
|
7
7
|
attribute :voice_url, String
|
8
8
|
attribute :title, String
|
9
9
|
attribute :caption, String
|
10
|
+
attribute :parse_mode, String
|
10
11
|
attribute :voice_duration, Integer
|
11
12
|
attribute :reply_markup, InlineKeyboardMarkup
|
12
13
|
attribute :input_message_content, InputMessageContent
|
@@ -4,6 +4,10 @@ module Telegram
|
|
4
4
|
class InputLocationMessageContent < InputMessageContent
|
5
5
|
attribute :latitude, Float
|
6
6
|
attribute :longitude, Float
|
7
|
+
attribute :horizontal_accuracy, Float
|
8
|
+
attribute :live_period, Integer
|
9
|
+
attribute :heading, Integer
|
10
|
+
attribute :proximity_alert_radius, Integer
|
7
11
|
end
|
8
12
|
end
|
9
13
|
end
|
@@ -4,6 +4,10 @@ module Telegram
|
|
4
4
|
class Location < Base
|
5
5
|
attribute :longitude, Float
|
6
6
|
attribute :latitude, Float
|
7
|
+
attribute :horizontal_accuracy, Float
|
8
|
+
attribute :live_period, Integer
|
9
|
+
attribute :heading, Integer
|
10
|
+
attribute :proximity_alert_radius, Integer
|
7
11
|
end
|
8
12
|
end
|
9
13
|
end
|
@@ -4,6 +4,7 @@ module Telegram
|
|
4
4
|
class Message < Base
|
5
5
|
attribute :message_id, Integer
|
6
6
|
attribute :from, User
|
7
|
+
attribute :sender_chat, Chat
|
7
8
|
attribute :date, Integer
|
8
9
|
attribute :chat, Chat
|
9
10
|
attribute :forward_from, User
|
@@ -50,6 +51,7 @@ module Telegram
|
|
50
51
|
attribute :successful_payment, SuccessfulPayment
|
51
52
|
attribute :connected_website, String
|
52
53
|
attribute :passport_data, PassportData
|
54
|
+
attribute :proximity_alert_triggered, ProximityAlertTriggered
|
53
55
|
attribute :reply_markup, InlineKeyboardMarkup
|
54
56
|
|
55
57
|
alias to_s text
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Telegram
|
2
|
+
module Bot
|
3
|
+
module Types
|
4
|
+
class WebhookInfo < Base
|
5
|
+
attribute :url, String
|
6
|
+
attribute :has_custom_certificate, Boolean
|
7
|
+
attribute :pending_update_count, Integer
|
8
|
+
attribute :ip_address, String
|
9
|
+
attribute :last_error_date, Integer
|
10
|
+
attribute :last_error_message, String
|
11
|
+
attribute :max_connections, String
|
12
|
+
attribute :max_connections, Integer
|
13
|
+
attribute :allowed_updates, Array[String]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/telegram/bot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telegram-bot-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tipugin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -157,6 +157,7 @@ files:
|
|
157
157
|
- lib/telegram/bot/types/callback_game.rb
|
158
158
|
- lib/telegram/bot/types/callback_query.rb
|
159
159
|
- lib/telegram/bot/types/chat.rb
|
160
|
+
- lib/telegram/bot/types/chat_location.rb
|
160
161
|
- lib/telegram/bot/types/chat_member.rb
|
161
162
|
- lib/telegram/bot/types/chat_permissions.rb
|
162
163
|
- lib/telegram/bot/types/chat_photo.rb
|
@@ -230,6 +231,7 @@ files:
|
|
230
231
|
- lib/telegram/bot/types/poll_answer.rb
|
231
232
|
- lib/telegram/bot/types/poll_option.rb
|
232
233
|
- lib/telegram/bot/types/pre_checkout_query.rb
|
234
|
+
- lib/telegram/bot/types/proximity_alert_triggered.rb
|
233
235
|
- lib/telegram/bot/types/reply_keyboard_markup.rb
|
234
236
|
- lib/telegram/bot/types/reply_keyboard_remove.rb
|
235
237
|
- lib/telegram/bot/types/shipping_address.rb
|
@@ -245,6 +247,7 @@ files:
|
|
245
247
|
- lib/telegram/bot/types/video.rb
|
246
248
|
- lib/telegram/bot/types/video_note.rb
|
247
249
|
- lib/telegram/bot/types/voice.rb
|
250
|
+
- lib/telegram/bot/types/webhook_info.rb
|
248
251
|
- lib/telegram/bot/version.rb
|
249
252
|
- telegram-bot-ruby.gemspec
|
250
253
|
homepage: https://github.com/atipugin/telegram-bot
|
@@ -265,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
268
|
- !ruby/object:Gem::Version
|
266
269
|
version: '0'
|
267
270
|
requirements: []
|
268
|
-
rubygems_version: 3.1.
|
271
|
+
rubygems_version: 3.1.4
|
269
272
|
signing_key:
|
270
273
|
specification_version: 4
|
271
274
|
summary: Ruby wrapper for Telegram's Bot API
|