telegram-bot-types 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85255981f3fa947c7001592ffa42a38cd96e9916
4
- data.tar.gz: bd72458c724896c5ea7a58c0b3d22b552861cc27
3
+ metadata.gz: efd171234f59546cec519c29366258709481e042
4
+ data.tar.gz: 9eab2e052f4425620d217e9caa01a62b9d7c2b4c
5
5
  SHA512:
6
- metadata.gz: 4c49b3b44ab2731764e7d7b4d5f6ad3a9f261d512a87089e5a2822bb7721308398295617fcf458fa35bbb5eaa9e0d08c011074771ddf084da633e9e7728248d9
7
- data.tar.gz: 79e3ef124f2e3ab0fe3cfe8e5aee74a2f4d94597f3f60a1bb5f4a5d409a988bc8ae7dca28d03415155ce6e508984c0bfb8695a5c6e004bc45ffb66e968788ced
6
+ metadata.gz: 002a6095e19407aac9e7a96fc9839da49fc844887cc9f88c27b5327eb186360e103e6bd0c54b474b25ad63f9e6f286b3c9e91991551e51aa6e481deb2c3dcb0e
7
+ data.tar.gz: 92879a21d4bcdbde8d4d732e315f42aa74db1d7451ffb01e92bcfd9285a7c9f6134387fd7e1b2e709a652366eb98ce0a62ea7941d6707ee2be9c35a172857d30
@@ -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
@@ -0,0 +1,10 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class ChatPhoto < Base
5
+ attribute :small_file_id, String
6
+ attribute :big_file_id, String
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,12 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class MaskPosition < Base
5
+ attribute :point, String
6
+ attribute :x_shift, Float
7
+ attribute :y_shift, Float
8
+ attribute :zoom, Float
9
+ end
10
+ end
11
+ end
12
+ 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
@@ -7,6 +7,8 @@ module Telegram
7
7
  attribute :height, Integer
8
8
  attribute :thumb, PhotoSize
9
9
  attribute :emoji, String
10
+ attribute :set_name, String
11
+ attribute :mask_position, MaskPosition
10
12
  attribute :file_size, Integer
11
13
  end
12
14
  end
@@ -0,0 +1,12 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class StickerSet < Base
5
+ attribute :name, String
6
+ attribute :title, String
7
+ attribute :contains_masks, Boolean
8
+ attribute :stickers, [Sticker]
9
+ end
10
+ end
11
+ end
12
+ end
@@ -3,6 +3,7 @@ module Telegram
3
3
  module Types
4
4
  class User < Base
5
5
  attribute :id, Integer
6
+ attribute :is_bot, Boolean
6
7
  attribute :first_name, String
7
8
  attribute :last_name, String
8
9
  attribute :username, String
@@ -1,7 +1,7 @@
1
1
  module Telegram
2
2
  module Bot
3
3
  module Types
4
- VERSION = '0.4.1'.freeze
4
+ VERSION = '0.5.0'.freeze
5
5
 
6
6
  def self.gem_version
7
7
  Gem::Version.new VERSION
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.1
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-05-30 00:00:00.000000000 Z
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