telegram-bot-types 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/telegram/bot/types.rb +62 -28
  3. data/lib/telegram/bot/types/callback_query.rb +13 -0
  4. data/lib/telegram/bot/types/chosen_inline_result.rb +2 -0
  5. data/lib/telegram/bot/types/inline_keyboard_button.rb +12 -0
  6. data/lib/telegram/bot/types/inline_keyboard_markup.rb +9 -0
  7. data/lib/telegram/bot/types/inline_query.rb +1 -0
  8. data/lib/telegram/bot/types/inline_query_result_article.rb +2 -4
  9. data/lib/telegram/bot/types/inline_query_result_audio.rb +16 -0
  10. data/lib/telegram/bot/types/inline_query_result_cached_audio.rb +13 -0
  11. data/lib/telegram/bot/types/inline_query_result_cached_document.rb +16 -0
  12. data/lib/telegram/bot/types/inline_query_result_cached_gif.rb +15 -0
  13. data/lib/telegram/bot/types/inline_query_result_cached_mpeg4_gif.rb +15 -0
  14. data/lib/telegram/bot/types/inline_query_result_cached_photo.rb +16 -0
  15. data/lib/telegram/bot/types/inline_query_result_cached_sticker.rb +13 -0
  16. data/lib/telegram/bot/types/inline_query_result_cached_video.rb +16 -0
  17. data/lib/telegram/bot/types/inline_query_result_cached_voice.rb +14 -0
  18. data/lib/telegram/bot/types/inline_query_result_contact.rb +18 -0
  19. data/lib/telegram/bot/types/inline_query_result_document.rb +20 -0
  20. data/lib/telegram/bot/types/inline_query_result_gif.rb +2 -3
  21. data/lib/telegram/bot/types/inline_query_result_location.rb +18 -0
  22. data/lib/telegram/bot/types/inline_query_result_mpeg4_gif.rb +2 -3
  23. data/lib/telegram/bot/types/inline_query_result_photo.rb +3 -4
  24. data/lib/telegram/bot/types/inline_query_result_venue.rb +20 -0
  25. data/lib/telegram/bot/types/inline_query_result_video.rb +5 -5
  26. data/lib/telegram/bot/types/inline_query_result_voice.rb +15 -0
  27. data/lib/telegram/bot/types/input_contact_message_content.rb +11 -0
  28. data/lib/telegram/bot/types/input_location_message_content.rb +10 -0
  29. data/lib/telegram/bot/types/input_message_content.rb +8 -0
  30. data/lib/telegram/bot/types/input_text_message_content.rb +11 -0
  31. data/lib/telegram/bot/types/input_venue_message_content.rb +13 -0
  32. data/lib/telegram/bot/types/keyboard_button.rb +11 -0
  33. data/lib/telegram/bot/types/message.rb +12 -3
  34. data/lib/telegram/bot/types/message_entity.rb +13 -0
  35. data/lib/telegram/bot/types/reply_keyboard_markup.rb +1 -1
  36. data/lib/telegram/bot/types/sticker.rb +1 -0
  37. data/lib/telegram/bot/types/update.rb +4 -0
  38. data/lib/telegram/bot/types/venue.rb +12 -0
  39. data/lib/telegram/bot/types/version.rb +1 -1
  40. data/telegram-bot-types.gemspec +1 -0
  41. metadata +42 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 255070c993896965d846efc0581ee87b3c07a9c9
4
- data.tar.gz: 9d952c8ce6d299f505bdbe7353384ebce5357060
3
+ metadata.gz: 5ff08b336315c35d2fab807ae700f6699c1def62
4
+ data.tar.gz: f27f97750ab48c11c8c57c98abca5b2845c97552
5
5
  SHA512:
6
- metadata.gz: 2697c41c1ddb8fe1e2e7448049f14ccd29a82b396cfc24e3ecc9a127c37d5b2ba5748e9cb2e39e217287ef3b671eeee68951956af14988f0ef74e513033c3949
7
- data.tar.gz: 108f81b906a8fbcb49379f9d3ffbf5c0bcb8b3c0b70f4ddcd20b36a0ee60fb38d8dfe387803415821e1c49fe78f5bdfc62a12bc5b46591950f0b06ab770e0a99
6
+ metadata.gz: 743b147a9662f57c95ed200bb568e53bb38bf9cd1fb95a15d76695c0fa59f766fe8633cb3973a3e0e730e540c1bdaf87065f0fcd1d843905137daea77c917610
7
+ data.tar.gz: 4c0a2ee263e74675b47b27430e677454555c0954fe7aabb349aba94151aa7318a5839899120a107ea1946ad7f8cb23199600cfabeed443f3610ac0bee3ff1da4
@@ -1,29 +1,63 @@
1
- %w(
2
- base
3
- user
4
- audio
5
- photo_size
6
- user_profile_photos
7
- document
8
- sticker
9
- video
10
- voice
11
- contact
12
- location
13
- chat
14
- message
15
- inline_query
16
- inline_query_result_article
17
- inline_query_result_photo
18
- inline_query_result_gif
19
- inline_query_result_mpeg4_gif
20
- inline_query_result_video
21
- chosen_inline_result
22
- update
23
- reply_keyboard_markup
24
- reply_keyboard_hide
25
- force_reply
26
- file
27
- ).each do |type|
28
- require "telegram/bot/types/#{type}"
1
+ require 'active_support/core_ext/string/inflections'
2
+
3
+ module Telegram
4
+ module Bot
5
+ module Types
6
+ %w(
7
+ audio
8
+ base
9
+ callback_query
10
+ chat
11
+ chosen_inline_result
12
+ contact
13
+ document
14
+ file
15
+ force_reply
16
+ inline_keyboard_button
17
+ inline_keyboard_markup
18
+ inline_query
19
+ inline_query_result_article
20
+ inline_query_result_audio
21
+ inline_query_result_cached_audio
22
+ inline_query_result_cached_document
23
+ inline_query_result_cached_gif
24
+ inline_query_result_cached_mpeg4_gif
25
+ inline_query_result_cached_photo
26
+ inline_query_result_cached_sticker
27
+ inline_query_result_cached_video
28
+ inline_query_result_cached_voice
29
+ inline_query_result_contact
30
+ inline_query_result_document
31
+ inline_query_result_gif
32
+ inline_query_result_location
33
+ inline_query_result_mpeg4_gif
34
+ inline_query_result_photo
35
+ inline_query_result_venue
36
+ inline_query_result_video
37
+ inline_query_result_voice
38
+ input_contact_message_content
39
+ input_location_message_content
40
+ input_message_content
41
+ input_text_message_content
42
+ input_venue_message_content
43
+ keyboard_button
44
+ location
45
+ message
46
+ message_entity
47
+ photo_size
48
+ reply_keyboard_hide
49
+ reply_keyboard_markup
50
+ sticker
51
+ update
52
+ user
53
+ user_profile_photos
54
+ venue
55
+ version
56
+ video
57
+ voice
58
+ ).each do |type|
59
+ autoload type.camelize, "telegram/bot/types/#{type}"
60
+ end
61
+ end
62
+ end
29
63
  end
@@ -0,0 +1,13 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class CallbackQuery < Base
5
+ attribute :id, String
6
+ attribute :from, User
7
+ attribute :message, Message
8
+ attribute :inline_message_id, String
9
+ attribute :data, String
10
+ end
11
+ end
12
+ end
13
+ end
@@ -4,6 +4,8 @@ module Telegram
4
4
  class ChosenInlineResult < Base
5
5
  attribute :result_id, String
6
6
  attribute :from, User
7
+ attribute :location, Location
8
+ attribute :inline_message_id, String
7
9
  attribute :query, String
8
10
 
9
11
  alias_method :to_s, :query
@@ -0,0 +1,12 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineKeyboardButton < Base
5
+ attribute :text, String
6
+ attribute :url, String
7
+ attribute :callback_data, String
8
+ attribute :switch_inline_query, String
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,9 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineKeyboardMarkup < Base
5
+ attribute :inline_keyboard, [[InlineKeyboardButton]]
6
+ end
7
+ end
8
+ end
9
+ end
@@ -4,6 +4,7 @@ module Telegram
4
4
  class InlineQuery < Base
5
5
  attribute :id, String
6
6
  attribute :from, User
7
+ attribute :location, Location
7
8
  attribute :query, String
8
9
  attribute :offset, String
9
10
 
@@ -5,10 +5,8 @@ module Telegram
5
5
  attribute :type, String, default: 'article'
6
6
  attribute :id, String
7
7
  attribute :title, String
8
- attribute :message_text, String
9
- attribute :parse_mode, String
10
- attribute :parse_mode, String
11
- attribute :disable_web_page_preview, Boolean
8
+ attribute :input_message_content, InputMessageContent
9
+ attribute :reply_markup, InlineKeyboardMarkup
12
10
  attribute :url, String
13
11
  attribute :hide_url, Boolean
14
12
  attribute :description, String
@@ -0,0 +1,16 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultAudio < Base
5
+ attribute :type, String, default: 'audio'
6
+ attribute :id, String
7
+ attribute :audio_url, String
8
+ attribute :title, String
9
+ attribute :performer, String
10
+ attribute :audio_duration, Integer
11
+ attribute :reply_markup, InlineKeyboardMarkup
12
+ attribute :input_message_content, InputMessageContent
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,13 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultCachedAudio < Base
5
+ attribute :type, String, default: 'audio'
6
+ attribute :id, String
7
+ attribute :audio_file_id, String
8
+ attribute :reply_markup, InlineKeyboardMarkup
9
+ attribute :input_message_content, InputMessageContent
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultCachedDocument < Base
5
+ attribute :type, String, default: 'document'
6
+ attribute :id, String
7
+ attribute :title, String
8
+ attribute :document_file_id, String
9
+ attribute :description, String
10
+ attribute :caption, String
11
+ attribute :reply_markup, InlineKeyboardMarkup
12
+ attribute :input_message_content, InputMessageContent
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultCachedGif < Base
5
+ attribute :type, String, default: 'gif'
6
+ attribute :id, String
7
+ attribute :gif_file_id, String
8
+ attribute :title, String
9
+ attribute :caption, String
10
+ attribute :reply_markup, InlineKeyboardMarkup
11
+ attribute :input_message_content, InputMessageContent
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultCachedMpeg4Gif < Base
5
+ attribute :type, String, default: 'mpeg4_gif'
6
+ attribute :id, String
7
+ attribute :mpeg4_file_id, String
8
+ attribute :title, String
9
+ attribute :caption, String
10
+ attribute :reply_markup, InlineKeyboardMarkup
11
+ attribute :input_message_content, InputMessageContent
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,16 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultCachedPhoto < Base
5
+ attribute :type, String, default: 'photo'
6
+ attribute :id, String
7
+ attribute :photo_file_id, String
8
+ attribute :title, String
9
+ attribute :description, String
10
+ attribute :caption, String
11
+ attribute :reply_markup, InlineKeyboardMarkup
12
+ attribute :input_message_content, InputMessageContent
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,13 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultCachedSticker < Base
5
+ attribute :type, String, default: 'sticker'
6
+ attribute :id, String
7
+ attribute :sticker_file_id, String
8
+ attribute :reply_markup, InlineKeyboardMarkup
9
+ attribute :input_message_content, InputMessageContent
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultCachedVideo < Base
5
+ attribute :type, String, default: 'video'
6
+ attribute :id, String
7
+ attribute :video_file_id, String
8
+ attribute :title, String
9
+ attribute :description, String
10
+ attribute :caption, String
11
+ attribute :reply_markup, InlineKeyboardMarkup
12
+ attribute :input_message_content, InputMessageContent
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,14 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultCachedVoice < Base
5
+ attribute :type, String, default: 'voice'
6
+ attribute :id, String
7
+ attribute :voice_file_id, String
8
+ attribute :title, String
9
+ attribute :reply_markup, InlineKeyboardMarkup
10
+ attribute :input_message_content, InputMessageContent
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,18 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultContact < Base
5
+ attribute :type, String, default: 'contact'
6
+ attribute :id, String
7
+ attribute :phone_number, String
8
+ attribute :first_name, String
9
+ attribute :last_name, String
10
+ attribute :reply_markup, InlineKeyboardMarkup
11
+ attribute :input_message_content, InputMessageContent
12
+ attribute :thumb_url, String
13
+ attribute :thumb_width, Integer
14
+ attribute :thumb_height, Integer
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,20 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultDocument < Base
5
+ attribute :type, String, default: 'document'
6
+ attribute :id, String
7
+ attribute :title, String
8
+ attribute :caption, String
9
+ attribute :document_url, String
10
+ attribute :mime_type, String
11
+ attribute :description, String
12
+ attribute :reply_markup, InlineKeyboardMarkup
13
+ attribute :input_message_content, InputMessageContent
14
+ attribute :thumb_url, String
15
+ attribute :thumb_width, Integer
16
+ attribute :thumb_height, Integer
17
+ end
18
+ end
19
+ end
20
+ end
@@ -10,9 +10,8 @@ module Telegram
10
10
  attribute :thumb_url, String
11
11
  attribute :title, String
12
12
  attribute :caption, String
13
- attribute :message_text, String
14
- attribute :parse_mode, String
15
- attribute :disable_web_page_preview, Boolean
13
+ attribute :reply_markup, InlineKeyboardMarkup
14
+ attribute :input_message_content, InputMessageContent
16
15
  end
17
16
  end
18
17
  end
@@ -0,0 +1,18 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultLocation < Base
5
+ attribute :type, String, default: 'location'
6
+ attribute :id, String
7
+ attribute :latitude, Float
8
+ attribute :longitude, Float
9
+ attribute :title, String
10
+ attribute :reply_markup, InlineKeyboardMarkup
11
+ attribute :input_message_content, InputMessageContent
12
+ attribute :thumb_url, String
13
+ attribute :thumb_width, Integer
14
+ attribute :thumb_height, Integer
15
+ end
16
+ end
17
+ end
18
+ end
@@ -10,9 +10,8 @@ module Telegram
10
10
  attribute :thumb_url, String
11
11
  attribute :title, String
12
12
  attribute :caption, String
13
- attribute :message_text, String
14
- attribute :parse_mode, String
15
- attribute :disable_web_page_preview, Boolean
13
+ attribute :reply_markup, InlineKeyboardMarkup
14
+ attribute :input_message_content, InputMessageContent
16
15
  end
17
16
  end
18
17
  end
@@ -5,15 +5,14 @@ module Telegram
5
5
  attribute :type, String, default: 'photo'
6
6
  attribute :id, String
7
7
  attribute :photo_url, String
8
+ attribute :thumb_url, String
8
9
  attribute :photo_width, Integer
9
10
  attribute :photo_height, Integer
10
- attribute :thumb_url, String
11
11
  attribute :title, String
12
12
  attribute :description, String
13
13
  attribute :caption, String
14
- attribute :message_text, String
15
- attribute :parse_mode, String
16
- attribute :disable_web_page_preview, Boolean
14
+ attribute :reply_markup, InlineKeyboardMarkup
15
+ attribute :input_message_content, InputMessageContent
17
16
  end
18
17
  end
19
18
  end
@@ -0,0 +1,20 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultVenue < Base
5
+ attribute :type, String, default: 'venue'
6
+ attribute :id, String
7
+ attribute :latitude, Float
8
+ attribute :longitude, Float
9
+ attribute :title, String
10
+ attribute :address, String
11
+ attribute :foursquare_id, String
12
+ attribute :reply_markup, InlineKeyboardMarkup
13
+ attribute :input_message_content, InputMessageContent
14
+ attribute :thumb_url, String
15
+ attribute :thumb_width, Integer
16
+ attribute :thumb_height, Integer
17
+ end
18
+ end
19
+ end
20
+ end
@@ -6,15 +6,15 @@ module Telegram
6
6
  attribute :id, String
7
7
  attribute :video_url, String
8
8
  attribute :mime_type, String
9
- attribute :message_text, String
10
- attribute :parse_mode, String
11
- attribute :disable_web_page_preview, Boolean
9
+ attribute :thumb_url, String
10
+ attribute :title, String
11
+ attribute :caption, String
12
12
  attribute :video_width, Integer
13
13
  attribute :video_height, Integer
14
14
  attribute :video_duration, Integer
15
- attribute :thumb_url, String
16
- attribute :title, String
17
15
  attribute :description, String
16
+ attribute :reply_markup, InlineKeyboardMarkup
17
+ attribute :input_message_content, InputMessageContent
18
18
  end
19
19
  end
20
20
  end
@@ -0,0 +1,15 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InlineQueryResultVoice < Base
5
+ attribute :type, String, default: 'voice'
6
+ attribute :id, String
7
+ attribute :voice_url, String
8
+ attribute :title, String
9
+ attribute :voice_duration, Integer
10
+ attribute :reply_markup, InlineKeyboardMarkup
11
+ attribute :input_message_content, InputMessageContent
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,11 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InputContactMessageContent < InputMessageContent
5
+ attribute :phone_number, String
6
+ attribute :first_name, String
7
+ attribute :last_name, String
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InputLocationMessageContent < InputMessageContent
5
+ attribute :latitude, Float
6
+ attribute :longitude, Float
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,8 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InputMessageContent < Base
5
+ end
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,11 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InputTextMessageContent < InputMessageContent
5
+ attribute :message_text, String
6
+ attribute :parse_mode, String
7
+ attribute :disable_web_page_preview, Boolean
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class InputVenueMessageContent < InputMessageContent
5
+ attribute :latitude, Float
6
+ attribute :longitude, Float
7
+ attribute :title, String
8
+ attribute :address, String
9
+ attribute :foursquare_id, String
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class KeyboardButton < Base
5
+ attribute :text, String
6
+ attribute :request_contact, Boolean
7
+ attribute :request_location, Boolean
8
+ end
9
+ end
10
+ end
11
+ end
@@ -5,10 +5,14 @@ module Telegram
5
5
  attribute :message_id, Integer
6
6
  attribute :from, User
7
7
  attribute :date, Integer
8
+ attribute :chat, Chat
8
9
  attribute :forward_from, User
10
+ attribute :forward_from_chat, Chat
9
11
  attribute :forward_date, Integer
10
12
  attribute :reply_to_message, Message
13
+ attribute :edit_date, Integer
11
14
  attribute :text, String
15
+ attribute :entities, [MessageEntity]
12
16
  attribute :audio, Audio
13
17
  attribute :document, Document
14
18
  attribute :photo, [PhotoSize]
@@ -18,13 +22,18 @@ module Telegram
18
22
  attribute :caption, String
19
23
  attribute :contact, Contact
20
24
  attribute :location, Location
21
- attribute :new_chat_participant, User
22
- attribute :left_chat_participant, User
25
+ attribute :venue, Venue
26
+ attribute :new_chat_member, User
27
+ attribute :left_chat_member, User
23
28
  attribute :new_chat_title, String
24
29
  attribute :new_chat_photo, [PhotoSize]
25
30
  attribute :delete_chat_photo, Boolean
26
31
  attribute :group_chat_created, Boolean
27
- attribute :chat, Chat
32
+ attribute :supergroup_chat_created, Boolean
33
+ attribute :channel_chat_created, Boolean
34
+ attribute :migrate_to_chat_id, Integer
35
+ attribute :migrate_from_chat_id, Integer
36
+ attribute :pinned_message, Message
28
37
 
29
38
  alias_method :to_s, :text
30
39
  end
@@ -0,0 +1,13 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class MessageEntity < Base
5
+ attribute :type, String
6
+ attribute :offset, Integer
7
+ attribute :length, Integer
8
+ attribute :url, String
9
+ attribute :user, User
10
+ end
11
+ end
12
+ end
13
+ end
@@ -2,7 +2,7 @@ module Telegram
2
2
  module Bot
3
3
  module Types
4
4
  class ReplyKeyboardMarkup < Base
5
- attribute :keyboard, [[String]]
5
+ attribute :keyboard, [[KeyboardButton]]
6
6
  attribute :resize_keyboard, Boolean, default: false
7
7
  attribute :one_time_keyboard, Boolean, default: false
8
8
  attribute :selective, Boolean, default: false
@@ -6,6 +6,7 @@ module Telegram
6
6
  attribute :width, Integer
7
7
  attribute :height, Integer
8
8
  attribute :thumb, PhotoSize
9
+ attribute :emoji, String
9
10
  attribute :file_size, Integer
10
11
  end
11
12
  end
@@ -4,8 +4,12 @@ module Telegram
4
4
  class Update < Base
5
5
  attribute :update_id, Integer
6
6
  attribute :message, Message
7
+ attribute :edited_message, Message
8
+ attribute :channel_post, Message
9
+ attribute :edited_channel_post, Message
7
10
  attribute :inline_query, InlineQuery
8
11
  attribute :chosen_inline_result, ChosenInlineResult
12
+ attribute :callback_query, CallbackQuery
9
13
  end
10
14
  end
11
15
  end
@@ -0,0 +1,12 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class Venue < Base
5
+ attribute :location, Location
6
+ attribute :title, String
7
+ attribute :address, String
8
+ attribute :foursquare_id, String
9
+ end
10
+ end
11
+ end
12
+ end
@@ -1,7 +1,7 @@
1
1
  module Telegram
2
2
  module Bot
3
3
  module Types
4
- VERSION = '0.2.0'.freeze
4
+ VERSION = '0.3.0'.freeze
5
5
 
6
6
  def self.gem_version
7
7
  Gem::Version.new VERSION
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'virtus', '~> 1.0'
22
+ spec.add_dependency 'activesupport'
22
23
 
23
24
  spec.add_development_dependency 'bundler', '~> 1.9'
24
25
  spec.add_development_dependency 'rake', '~> 10.0'
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.2.0
4
+ version: 0.3.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: 2016-02-23 00:00:00.000000000 Z
12
+ date: 2016-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtus
@@ -25,6 +25,20 @@ dependencies:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: activesupport
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: bundler
30
44
  requirement: !ruby/object:Gem::Requirement
@@ -146,20 +160,44 @@ files:
146
160
  - lib/telegram/bot/types.rb
147
161
  - lib/telegram/bot/types/audio.rb
148
162
  - lib/telegram/bot/types/base.rb
163
+ - lib/telegram/bot/types/callback_query.rb
149
164
  - lib/telegram/bot/types/chat.rb
150
165
  - lib/telegram/bot/types/chosen_inline_result.rb
151
166
  - lib/telegram/bot/types/contact.rb
152
167
  - lib/telegram/bot/types/document.rb
153
168
  - lib/telegram/bot/types/file.rb
154
169
  - lib/telegram/bot/types/force_reply.rb
170
+ - lib/telegram/bot/types/inline_keyboard_button.rb
171
+ - lib/telegram/bot/types/inline_keyboard_markup.rb
155
172
  - lib/telegram/bot/types/inline_query.rb
156
173
  - lib/telegram/bot/types/inline_query_result_article.rb
174
+ - lib/telegram/bot/types/inline_query_result_audio.rb
175
+ - lib/telegram/bot/types/inline_query_result_cached_audio.rb
176
+ - lib/telegram/bot/types/inline_query_result_cached_document.rb
177
+ - lib/telegram/bot/types/inline_query_result_cached_gif.rb
178
+ - lib/telegram/bot/types/inline_query_result_cached_mpeg4_gif.rb
179
+ - lib/telegram/bot/types/inline_query_result_cached_photo.rb
180
+ - lib/telegram/bot/types/inline_query_result_cached_sticker.rb
181
+ - lib/telegram/bot/types/inline_query_result_cached_video.rb
182
+ - lib/telegram/bot/types/inline_query_result_cached_voice.rb
183
+ - lib/telegram/bot/types/inline_query_result_contact.rb
184
+ - lib/telegram/bot/types/inline_query_result_document.rb
157
185
  - lib/telegram/bot/types/inline_query_result_gif.rb
186
+ - lib/telegram/bot/types/inline_query_result_location.rb
158
187
  - lib/telegram/bot/types/inline_query_result_mpeg4_gif.rb
159
188
  - lib/telegram/bot/types/inline_query_result_photo.rb
189
+ - lib/telegram/bot/types/inline_query_result_venue.rb
160
190
  - lib/telegram/bot/types/inline_query_result_video.rb
191
+ - lib/telegram/bot/types/inline_query_result_voice.rb
192
+ - lib/telegram/bot/types/input_contact_message_content.rb
193
+ - lib/telegram/bot/types/input_location_message_content.rb
194
+ - lib/telegram/bot/types/input_message_content.rb
195
+ - lib/telegram/bot/types/input_text_message_content.rb
196
+ - lib/telegram/bot/types/input_venue_message_content.rb
197
+ - lib/telegram/bot/types/keyboard_button.rb
161
198
  - lib/telegram/bot/types/location.rb
162
199
  - lib/telegram/bot/types/message.rb
200
+ - lib/telegram/bot/types/message_entity.rb
163
201
  - lib/telegram/bot/types/photo_size.rb
164
202
  - lib/telegram/bot/types/reply_keyboard_hide.rb
165
203
  - lib/telegram/bot/types/reply_keyboard_markup.rb
@@ -167,6 +205,7 @@ files:
167
205
  - lib/telegram/bot/types/update.rb
168
206
  - lib/telegram/bot/types/user.rb
169
207
  - lib/telegram/bot/types/user_profile_photos.rb
208
+ - lib/telegram/bot/types/venue.rb
170
209
  - lib/telegram/bot/types/version.rb
171
210
  - lib/telegram/bot/types/video.rb
172
211
  - lib/telegram/bot/types/voice.rb
@@ -191,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
230
  version: '0'
192
231
  requirements: []
193
232
  rubyforge_project:
194
- rubygems_version: 2.4.6
233
+ rubygems_version: 2.5.1
195
234
  signing_key:
196
235
  specification_version: 4
197
236
  summary: Virtus types for Telegram Bot API