telegram-bot-types 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/telegram/bot/types.rb +2 -0
- data/lib/telegram/bot/types/audio.rb +1 -0
- data/lib/telegram/bot/types/chat_invite_link.rb +16 -0
- data/lib/telegram/bot/types/chat_location.rb +12 -0
- data/lib/telegram/bot/types/chat_member.rb +4 -1
- data/lib/telegram/bot/types/chat_member_updated.rb +16 -0
- data/lib/telegram/bot/types/dice.rb +12 -0
- 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_gif.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 +2 -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 +8 -0
- data/lib/telegram/bot/types/message_auto_delete_timer_changed.rb +11 -0
- data/lib/telegram/bot/types/poll.rb +4 -0
- data/lib/telegram/bot/types/proximity_alert_triggered.rb +13 -0
- data/lib/telegram/bot/types/sticker_set.rb +1 -0
- data/lib/telegram/bot/types/update.rb +2 -0
- data/lib/telegram/bot/types/venue.rb +2 -0
- data/lib/telegram/bot/types/version.rb +1 -1
- data/lib/telegram/bot/types/video.rb +1 -0
- data/lib/telegram/bot/types/voice_chat_ended.rb +11 -0
- data/lib/telegram/bot/types/voice_chat_participants_invited.rb +11 -0
- data/lib/telegram/bot/types/voice_chat_started.rb +10 -0
- data/lib/telegram/bot/types/webhook_info.rb +2 -0
- metadata +16 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0606fc748fb8602745774a0445227cfd5ead1b8d5669bd08bd9ee1bb0ce3b53b
|
4
|
+
data.tar.gz: b8c309b5149ac1b850dcd7de3e4fda9150091d1b91dff03376b5e8b93c15d44e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c5928397f4828c224ca987c5487655ccf5e9603329859fa13c64b6e12dc792ec53d62d0cc3b3b201be552982e7e1e12dba72eabb986c0dbc42c8bde28639d2d
|
7
|
+
data.tar.gz: 26927705f798cc3da58bc6371f10d8b1c1104342a913f29e8a9298b38ee16ea0bb20900fd4e016f7a493742edf6740645efa3743e09f0ee55d631ee959096a90
|
data/CHANGELOG.md
CHANGED
data/lib/telegram/bot/types.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Telegram
|
4
|
+
module Bot
|
5
|
+
module Types
|
6
|
+
class ChatInviteLink < Base
|
7
|
+
attribute :invite_link, String
|
8
|
+
attribute :creator, User
|
9
|
+
attribute :is_primary, Boolean
|
10
|
+
attribute :is_revoked, Boolean
|
11
|
+
attribute :expire_date, Integer
|
12
|
+
attribute :member_limit, Integer
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -7,11 +7,13 @@ module Telegram
|
|
7
7
|
attribute :user, User
|
8
8
|
attribute :status, String
|
9
9
|
attribute :custom_title, String
|
10
|
-
attribute :
|
10
|
+
attribute :is_anonymous, Boolean
|
11
11
|
attribute :can_be_edited, Boolean
|
12
|
+
attribute :can_manage_chat, Boolean
|
12
13
|
attribute :can_post_messages, Boolean
|
13
14
|
attribute :can_edit_messages, Boolean
|
14
15
|
attribute :can_delete_messages, Boolean
|
16
|
+
attribute :can_manage_voice_chats, Boolean
|
15
17
|
attribute :can_restrict_members, Boolean
|
16
18
|
attribute :can_promote_members, Boolean
|
17
19
|
attribute :can_change_info, Boolean
|
@@ -23,6 +25,7 @@ module Telegram
|
|
23
25
|
attribute :can_send_polls, Boolean
|
24
26
|
attribute :can_send_other_messages, Boolean
|
25
27
|
attribute :can_add_web_page_previews, Boolean
|
28
|
+
attribute :until_date, Integer
|
26
29
|
end
|
27
30
|
end
|
28
31
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Telegram
|
4
|
+
module Bot
|
5
|
+
module Types
|
6
|
+
class ChatMemberUpdated < Base
|
7
|
+
attribute :chat, Chat
|
8
|
+
attribute :from, User
|
9
|
+
attribute :date, Integer
|
10
|
+
attribute :old_chat_member, ChatMember
|
11
|
+
attribute :new_chat_member, ChatMember
|
12
|
+
attribute :invite_link, ChatInviteLink
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -10,6 +10,7 @@ module Telegram
|
|
10
10
|
attribute :document_file_id, String
|
11
11
|
attribute :description, String
|
12
12
|
attribute :caption, String
|
13
|
+
attribute :parse_mode, String
|
13
14
|
attribute :reply_markup, InlineKeyboardMarkup
|
14
15
|
attribute :input_message_content, InputMessageContent
|
15
16
|
end
|
@@ -11,6 +11,7 @@ module Telegram
|
|
11
11
|
attribute :gif_height, Integer
|
12
12
|
attribute :gif_duration, Integer
|
13
13
|
attribute :thumb_url, String
|
14
|
+
attribute :thumb_mime_type, String
|
14
15
|
attribute :title, String
|
15
16
|
attribute :caption, String
|
16
17
|
attribute :reply_markup, InlineKeyboardMarkup
|
@@ -9,6 +9,10 @@ module Telegram
|
|
9
9
|
attribute :latitude, Float
|
10
10
|
attribute :longitude, Float
|
11
11
|
attribute :title, String
|
12
|
+
attribute :horizontal_accuracy, Float
|
13
|
+
attribute :live_period, Integer
|
14
|
+
attribute :heading, Integer
|
15
|
+
attribute :proximity_alert_radius, Integer
|
12
16
|
attribute :reply_markup, InlineKeyboardMarkup
|
13
17
|
attribute :input_message_content, InputMessageContent
|
14
18
|
attribute :thumb_url, String
|
@@ -11,8 +11,10 @@ module Telegram
|
|
11
11
|
attribute :mpeg4_height, Integer
|
12
12
|
attribute :mpeg4_duration, Integer
|
13
13
|
attribute :thumb_url, String
|
14
|
+
attribute :thumb_mime_type, String
|
14
15
|
attribute :title, String
|
15
16
|
attribute :caption, String
|
17
|
+
attribute :parse_mode, String
|
16
18
|
attribute :reply_markup, InlineKeyboardMarkup
|
17
19
|
attribute :input_message_content, InputMessageContent
|
18
20
|
end
|
@@ -12,6 +12,8 @@ module Telegram
|
|
12
12
|
attribute :address, String
|
13
13
|
attribute :foursquare_id, String
|
14
14
|
attribute :foursquare_type, String
|
15
|
+
attribute :google_place_id, String
|
16
|
+
attribute :google_place_type, String
|
15
17
|
attribute :reply_markup, InlineKeyboardMarkup
|
16
18
|
attribute :input_message_content, InputMessageContent
|
17
19
|
attribute :thumb_url, String
|
@@ -9,6 +9,7 @@ module Telegram
|
|
9
9
|
attribute :voice_url, String
|
10
10
|
attribute :title, String
|
11
11
|
attribute :caption, String
|
12
|
+
attribute :parse_mode, String
|
12
13
|
attribute :voice_duration, Integer
|
13
14
|
attribute :reply_markup, InlineKeyboardMarkup
|
14
15
|
attribute :input_message_content, InputMessageContent
|
@@ -6,6 +6,10 @@ module Telegram
|
|
6
6
|
class InputLocationMessageContent < InputMessageContent
|
7
7
|
attribute :latitude, Float
|
8
8
|
attribute :longitude, Float
|
9
|
+
attribute :horizontal_accuracy, Float
|
10
|
+
attribute :live_period, Integer
|
11
|
+
attribute :heading, Integer
|
12
|
+
attribute :proximity_alert_radius, Integer
|
9
13
|
end
|
10
14
|
end
|
11
15
|
end
|
@@ -6,6 +6,10 @@ module Telegram
|
|
6
6
|
class Location < Base
|
7
7
|
attribute :longitude, Float
|
8
8
|
attribute :latitude, Float
|
9
|
+
attribute :horizontal_accuracy, Float
|
10
|
+
attribute :live_period, Integer
|
11
|
+
attribute :heading, Integer
|
12
|
+
attribute :proximity_alert_radius, Integer
|
9
13
|
end
|
10
14
|
end
|
11
15
|
end
|
@@ -6,6 +6,7 @@ module Telegram
|
|
6
6
|
class Message < Base
|
7
7
|
attribute :message_id, Integer
|
8
8
|
attribute :from, User
|
9
|
+
attribute :sender_chat, Chat
|
9
10
|
attribute :date, Integer
|
10
11
|
attribute :chat, Chat
|
11
12
|
attribute :forward_from, User
|
@@ -15,6 +16,7 @@ module Telegram
|
|
15
16
|
attribute :forward_sender_name, String
|
16
17
|
attribute :forward_date, Integer
|
17
18
|
attribute :reply_to_message, Message
|
19
|
+
attribute :via_bot, User
|
18
20
|
attribute :edit_date, Integer
|
19
21
|
attribute :media_group_id, String
|
20
22
|
attribute :author_signature, String
|
@@ -32,6 +34,7 @@ module Telegram
|
|
32
34
|
attribute :video_note, VideoNote
|
33
35
|
attribute :caption, String
|
34
36
|
attribute :contact, Contact
|
37
|
+
attribute :dice, Dice
|
35
38
|
attribute :location, Location
|
36
39
|
attribute :venue, Venue
|
37
40
|
attribute :poll, Poll
|
@@ -43,6 +46,7 @@ module Telegram
|
|
43
46
|
attribute :group_chat_created, Boolean
|
44
47
|
attribute :supergroup_chat_created, Boolean
|
45
48
|
attribute :channel_chat_created, Boolean
|
49
|
+
attribute :message_auto_delete_timer_changed, MessageAutoDeleteTimerChanged
|
46
50
|
attribute :migrate_to_chat_id, Integer
|
47
51
|
attribute :migrate_from_chat_id, Integer
|
48
52
|
attribute :pinned_message, Message
|
@@ -50,6 +54,10 @@ module Telegram
|
|
50
54
|
attribute :successful_payment, SuccessfulPayment
|
51
55
|
attribute :connected_website, String
|
52
56
|
attribute :passport_data, PassportData
|
57
|
+
attribute :proximity_alert_triggered, ProximityAlertTriggered
|
58
|
+
attribute :voice_chat_started, VoiceChatStarted
|
59
|
+
attribute :voice_chat_ended, VoiceChatEnded
|
60
|
+
attribute :voice_chat_participants_invited, VoiceChatParticipantsInvited
|
53
61
|
attribute :reply_markup, InlineKeyboardMarkup
|
54
62
|
|
55
63
|
alias_method :to_s, :text
|
@@ -13,6 +13,10 @@ module Telegram
|
|
13
13
|
attribute :type, String
|
14
14
|
attribute :allows_multiple_answers, Boolean
|
15
15
|
attribute :correct_option_id, Integer
|
16
|
+
attribute :explanation, String
|
17
|
+
attribute :explanation_entities, [MessageEntity]
|
18
|
+
attribute :open_period, Integer
|
19
|
+
attribute :close_date, Integer
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|
@@ -7,8 +7,10 @@ module Telegram
|
|
7
7
|
attribute :url, String
|
8
8
|
attribute :has_custom_certificate, Boolean
|
9
9
|
attribute :pending_update_count, Integer
|
10
|
+
attribute :ip_address, String
|
10
11
|
attribute :last_error_date, Integer
|
11
12
|
attribute :last_error_message, String
|
13
|
+
attribute :max_connections, String
|
12
14
|
attribute :max_connections, Integer
|
13
15
|
attribute :allowed_updates, [String]
|
14
16
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telegram-bot-types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tipugin
|
8
8
|
- Max Melentiev
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-06-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: virtus
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: 0.81.0
|
112
|
-
description:
|
112
|
+
description:
|
113
113
|
email:
|
114
114
|
- atipugin@gmail.com
|
115
115
|
- melentievm@gmail.com
|
@@ -137,11 +137,15 @@ files:
|
|
137
137
|
- lib/telegram/bot/types/callback_game.rb
|
138
138
|
- lib/telegram/bot/types/callback_query.rb
|
139
139
|
- lib/telegram/bot/types/chat.rb
|
140
|
+
- lib/telegram/bot/types/chat_invite_link.rb
|
141
|
+
- lib/telegram/bot/types/chat_location.rb
|
140
142
|
- lib/telegram/bot/types/chat_member.rb
|
143
|
+
- lib/telegram/bot/types/chat_member_updated.rb
|
141
144
|
- lib/telegram/bot/types/chat_permissions.rb
|
142
145
|
- lib/telegram/bot/types/chat_photo.rb
|
143
146
|
- lib/telegram/bot/types/chosen_inline_result.rb
|
144
147
|
- lib/telegram/bot/types/contact.rb
|
148
|
+
- lib/telegram/bot/types/dice.rb
|
145
149
|
- lib/telegram/bot/types/document.rb
|
146
150
|
- lib/telegram/bot/types/encrypted_credentials.rb
|
147
151
|
- lib/telegram/bot/types/encrypted_passport_element.rb
|
@@ -190,6 +194,7 @@ files:
|
|
190
194
|
- lib/telegram/bot/types/login_url.rb
|
191
195
|
- lib/telegram/bot/types/mask_position.rb
|
192
196
|
- lib/telegram/bot/types/message.rb
|
197
|
+
- lib/telegram/bot/types/message_auto_delete_timer_changed.rb
|
193
198
|
- lib/telegram/bot/types/message_entity.rb
|
194
199
|
- lib/telegram/bot/types/order_info.rb
|
195
200
|
- lib/telegram/bot/types/passport_data.rb
|
@@ -208,6 +213,7 @@ files:
|
|
208
213
|
- lib/telegram/bot/types/poll_answer.rb
|
209
214
|
- lib/telegram/bot/types/poll_option.rb
|
210
215
|
- lib/telegram/bot/types/pre_checkout_query.rb
|
216
|
+
- lib/telegram/bot/types/proximity_alert_triggered.rb
|
211
217
|
- lib/telegram/bot/types/reply_keyboard_markup.rb
|
212
218
|
- lib/telegram/bot/types/reply_keyboard_remove.rb
|
213
219
|
- lib/telegram/bot/types/response.rb
|
@@ -225,13 +231,16 @@ files:
|
|
225
231
|
- lib/telegram/bot/types/video.rb
|
226
232
|
- lib/telegram/bot/types/video_note.rb
|
227
233
|
- lib/telegram/bot/types/voice.rb
|
234
|
+
- lib/telegram/bot/types/voice_chat_ended.rb
|
235
|
+
- lib/telegram/bot/types/voice_chat_participants_invited.rb
|
236
|
+
- lib/telegram/bot/types/voice_chat_started.rb
|
228
237
|
- lib/telegram/bot/types/webhook_info.rb
|
229
238
|
- telegram-bot-types.gemspec
|
230
239
|
homepage: https://github.com/telegram-bot-rb/telegram-bot-types
|
231
240
|
licenses:
|
232
241
|
- MIT
|
233
242
|
metadata: {}
|
234
|
-
post_install_message:
|
243
|
+
post_install_message:
|
235
244
|
rdoc_options: []
|
236
245
|
require_paths:
|
237
246
|
- lib
|
@@ -246,8 +255,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
255
|
- !ruby/object:Gem::Version
|
247
256
|
version: '0'
|
248
257
|
requirements: []
|
249
|
-
rubygems_version: 3.
|
250
|
-
signing_key:
|
258
|
+
rubygems_version: 3.1.4
|
259
|
+
signing_key:
|
251
260
|
specification_version: 4
|
252
261
|
summary: Virtus types for Telegram Bot API
|
253
262
|
test_files: []
|