telegram-bot-types 0.4.1 → 0.5.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/lib/telegram/bot/types.rb +3 -0
- data/lib/telegram/bot/types/chat.rb +4 -0
- data/lib/telegram/bot/types/chat_member.rb +14 -0
- data/lib/telegram/bot/types/chat_photo.rb +10 -0
- data/lib/telegram/bot/types/mask_position.rb +12 -0
- data/lib/telegram/bot/types/message.rb +2 -0
- data/lib/telegram/bot/types/sticker.rb +2 -0
- data/lib/telegram/bot/types/sticker_set.rb +12 -0
- data/lib/telegram/bot/types/user.rb +1 -0
- data/lib/telegram/bot/types/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efd171234f59546cec519c29366258709481e042
|
4
|
+
data.tar.gz: 9eab2e052f4425620d217e9caa01a62b9d7c2b4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 002a6095e19407aac9e7a96fc9839da49fc844887cc9f88c27b5327eb186360e103e6bd0c54b474b25ad63f9e6f286b3c9e91991551e51aa6e481deb2c3dcb0e
|
7
|
+
data.tar.gz: 92879a21d4bcdbde8d4d732e315f42aa74db1d7451ffb01e92bcfd9285a7c9f6134387fd7e1b2e709a652366eb98ce0a62ea7941d6707ee2be9c35a172857d30
|
data/lib/telegram/bot/types.rb
CHANGED
@@ -11,6 +11,7 @@ module Telegram
|
|
11
11
|
callback_query
|
12
12
|
chat
|
13
13
|
chat_member
|
14
|
+
chat_photo
|
14
15
|
chosen_inline_result
|
15
16
|
contact
|
16
17
|
document
|
@@ -50,6 +51,7 @@ module Telegram
|
|
50
51
|
keyboard_button
|
51
52
|
labeled_price
|
52
53
|
location
|
54
|
+
mask_position
|
53
55
|
message
|
54
56
|
message_entity
|
55
57
|
order_info
|
@@ -61,6 +63,7 @@ module Telegram
|
|
61
63
|
shipping_option
|
62
64
|
shipping_query
|
63
65
|
sticker
|
66
|
+
sticker_set
|
64
67
|
successful_payment
|
65
68
|
update
|
66
69
|
user
|
@@ -9,6 +9,10 @@ module Telegram
|
|
9
9
|
attribute :first_name, String
|
10
10
|
attribute :last_name, String
|
11
11
|
attribute :all_members_are_administrators, Boolean
|
12
|
+
attribute :photo, ChatPhoto
|
13
|
+
attribute :description, String
|
14
|
+
attribute :invite_link, String
|
15
|
+
attribute :pinned_message, Message
|
12
16
|
end
|
13
17
|
end
|
14
18
|
end
|
@@ -4,6 +4,20 @@ module Telegram
|
|
4
4
|
class ChatMember < Base
|
5
5
|
attribute :user, User
|
6
6
|
attribute :status, String
|
7
|
+
attribute :until_date, Integer
|
8
|
+
attribute :can_be_edited, Boolean
|
9
|
+
attribute :can_change_info, Boolean
|
10
|
+
attribute :can_post_messages, Boolean
|
11
|
+
attribute :can_edit_messages, Boolean
|
12
|
+
attribute :can_delete_messages, Boolean
|
13
|
+
attribute :can_invite_users, Boolean
|
14
|
+
attribute :can_restrict_members, Boolean
|
15
|
+
attribute :can_pin_messages, Boolean
|
16
|
+
attribute :can_promote_members, Boolean
|
17
|
+
attribute :can_send_messages, Boolean
|
18
|
+
attribute :can_send_media_messages, Boolean
|
19
|
+
attribute :can_send_other_messages, Boolean
|
20
|
+
attribute :can_add_web_page_previews, Boolean
|
7
21
|
end
|
8
22
|
end
|
9
23
|
end
|
@@ -9,9 +9,11 @@ module Telegram
|
|
9
9
|
attribute :forward_from, User
|
10
10
|
attribute :forward_from_chat, Chat
|
11
11
|
attribute :forward_from_message_id, Integer
|
12
|
+
attribute :forward_signature, String
|
12
13
|
attribute :forward_date, Integer
|
13
14
|
attribute :reply_to_message, Message
|
14
15
|
attribute :edit_date, Integer
|
16
|
+
attribute :author_signature, String
|
15
17
|
attribute :text, String
|
16
18
|
attribute :entities, [MessageEntity]
|
17
19
|
attribute :audio, Audio
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telegram-bot-types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tipugin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: virtus
|
@@ -151,6 +151,7 @@ files:
|
|
151
151
|
- lib/telegram/bot/types/callback_query.rb
|
152
152
|
- lib/telegram/bot/types/chat.rb
|
153
153
|
- lib/telegram/bot/types/chat_member.rb
|
154
|
+
- lib/telegram/bot/types/chat_photo.rb
|
154
155
|
- lib/telegram/bot/types/chosen_inline_result.rb
|
155
156
|
- lib/telegram/bot/types/contact.rb
|
156
157
|
- lib/telegram/bot/types/document.rb
|
@@ -190,6 +191,7 @@ files:
|
|
190
191
|
- lib/telegram/bot/types/keyboard_button.rb
|
191
192
|
- lib/telegram/bot/types/labeled_price.rb
|
192
193
|
- lib/telegram/bot/types/location.rb
|
194
|
+
- lib/telegram/bot/types/mask_position.rb
|
193
195
|
- lib/telegram/bot/types/message.rb
|
194
196
|
- lib/telegram/bot/types/message_entity.rb
|
195
197
|
- lib/telegram/bot/types/order_info.rb
|
@@ -201,6 +203,7 @@ files:
|
|
201
203
|
- lib/telegram/bot/types/shipping_option.rb
|
202
204
|
- lib/telegram/bot/types/shipping_query.rb
|
203
205
|
- lib/telegram/bot/types/sticker.rb
|
206
|
+
- lib/telegram/bot/types/sticker_set.rb
|
204
207
|
- lib/telegram/bot/types/successful_payment.rb
|
205
208
|
- lib/telegram/bot/types/update.rb
|
206
209
|
- lib/telegram/bot/types/user.rb
|