telegram-bot-ruby 0.16.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +8 -3
  3. data/CHANGELOG.md +18 -0
  4. data/Gemfile +2 -0
  5. data/Rakefile +3 -1
  6. data/examples/bot.rb +2 -0
  7. data/lib/telegram/bot/api.rb +11 -5
  8. data/lib/telegram/bot/client.rb +4 -3
  9. data/lib/telegram/bot/configuration.rb +5 -1
  10. data/lib/telegram/bot/exceptions/base.rb +2 -0
  11. data/lib/telegram/bot/exceptions/response_error.rb +3 -0
  12. data/lib/telegram/bot/exceptions.rb +2 -0
  13. data/lib/telegram/bot/null_logger.rb +3 -1
  14. data/lib/telegram/bot/types/animation.rb +2 -0
  15. data/lib/telegram/bot/types/audio.rb +2 -0
  16. data/lib/telegram/bot/types/base.rb +2 -0
  17. data/lib/telegram/bot/types/bot_command.rb +12 -0
  18. data/lib/telegram/bot/types/bot_command_scope_all_chat_administrators.rb +11 -0
  19. data/lib/telegram/bot/types/bot_command_scope_all_group_chats.rb +11 -0
  20. data/lib/telegram/bot/types/bot_command_scope_all_private_chats.rb +11 -0
  21. data/lib/telegram/bot/types/bot_command_scope_chat.rb +12 -0
  22. data/lib/telegram/bot/types/bot_command_scope_chat_administrators.rb +12 -0
  23. data/lib/telegram/bot/types/bot_command_scope_chat_member.rb +13 -0
  24. data/lib/telegram/bot/types/bot_command_scope_default.rb +11 -0
  25. data/lib/telegram/bot/types/callback_game.rb +2 -0
  26. data/lib/telegram/bot/types/callback_query.rb +2 -0
  27. data/lib/telegram/bot/types/chat.rb +9 -1
  28. data/lib/telegram/bot/types/chat_administrator_rights.rb +21 -0
  29. data/lib/telegram/bot/types/chat_invite_link.rb +5 -0
  30. data/lib/telegram/bot/types/chat_join_request.rb +15 -0
  31. data/lib/telegram/bot/types/chat_location.rb +2 -0
  32. data/lib/telegram/bot/types/chat_member.rb +3 -1
  33. data/lib/telegram/bot/types/chat_member_updated.rb +2 -0
  34. data/lib/telegram/bot/types/chat_permissions.rb +2 -0
  35. data/lib/telegram/bot/types/chat_photo.rb +2 -0
  36. data/lib/telegram/bot/types/chosen_inline_result.rb +2 -0
  37. data/lib/telegram/bot/types/compactable.rb +4 -2
  38. data/lib/telegram/bot/types/contact.rb +2 -0
  39. data/lib/telegram/bot/types/dice.rb +2 -0
  40. data/lib/telegram/bot/types/document.rb +2 -0
  41. data/lib/telegram/bot/types/encrypted_credentials.rb +2 -0
  42. data/lib/telegram/bot/types/encrypted_passport_element.rb +2 -0
  43. data/lib/telegram/bot/types/file.rb +2 -0
  44. data/lib/telegram/bot/types/force_reply.rb +3 -0
  45. data/lib/telegram/bot/types/game.rb +2 -0
  46. data/lib/telegram/bot/types/game_high_score.rb +2 -0
  47. data/lib/telegram/bot/types/inline_keyboard_button.rb +4 -1
  48. data/lib/telegram/bot/types/inline_keyboard_markup.rb +2 -0
  49. data/lib/telegram/bot/types/inline_query.rb +4 -1
  50. data/lib/telegram/bot/types/inline_query_result_article.rb +2 -0
  51. data/lib/telegram/bot/types/inline_query_result_audio.rb +2 -0
  52. data/lib/telegram/bot/types/inline_query_result_cached_audio.rb +2 -0
  53. data/lib/telegram/bot/types/inline_query_result_cached_document.rb +2 -0
  54. data/lib/telegram/bot/types/inline_query_result_cached_gif.rb +2 -0
  55. data/lib/telegram/bot/types/inline_query_result_cached_mpeg4_gif.rb +2 -0
  56. data/lib/telegram/bot/types/inline_query_result_cached_photo.rb +2 -0
  57. data/lib/telegram/bot/types/inline_query_result_cached_sticker.rb +2 -0
  58. data/lib/telegram/bot/types/inline_query_result_cached_video.rb +2 -0
  59. data/lib/telegram/bot/types/inline_query_result_cached_voice.rb +2 -0
  60. data/lib/telegram/bot/types/inline_query_result_contact.rb +2 -0
  61. data/lib/telegram/bot/types/inline_query_result_document.rb +2 -0
  62. data/lib/telegram/bot/types/inline_query_result_game.rb +2 -0
  63. data/lib/telegram/bot/types/inline_query_result_gif.rb +2 -0
  64. data/lib/telegram/bot/types/inline_query_result_location.rb +2 -0
  65. data/lib/telegram/bot/types/inline_query_result_mpeg4_gif.rb +2 -0
  66. data/lib/telegram/bot/types/inline_query_result_photo.rb +2 -0
  67. data/lib/telegram/bot/types/inline_query_result_venue.rb +2 -0
  68. data/lib/telegram/bot/types/inline_query_result_video.rb +2 -0
  69. data/lib/telegram/bot/types/inline_query_result_voice.rb +2 -0
  70. data/lib/telegram/bot/types/input_contact_message_content.rb +2 -0
  71. data/lib/telegram/bot/types/input_invoice_message_content.rb +30 -0
  72. data/lib/telegram/bot/types/input_location_message_content.rb +2 -0
  73. data/lib/telegram/bot/types/input_media_animation.rb +2 -0
  74. data/lib/telegram/bot/types/input_media_audio.rb +2 -0
  75. data/lib/telegram/bot/types/input_media_document.rb +2 -0
  76. data/lib/telegram/bot/types/input_media_photo.rb +2 -0
  77. data/lib/telegram/bot/types/input_media_video.rb +2 -0
  78. data/lib/telegram/bot/types/input_message_content.rb +2 -0
  79. data/lib/telegram/bot/types/input_text_message_content.rb +2 -0
  80. data/lib/telegram/bot/types/input_venue_message_content.rb +2 -0
  81. data/lib/telegram/bot/types/invoice.rb +2 -0
  82. data/lib/telegram/bot/types/keyboard_button.rb +3 -0
  83. data/lib/telegram/bot/types/keyboard_button_poll_type.rb +2 -0
  84. data/lib/telegram/bot/types/labeled_price.rb +2 -0
  85. data/lib/telegram/bot/types/location.rb +2 -0
  86. data/lib/telegram/bot/types/login_url.rb +2 -0
  87. data/lib/telegram/bot/types/mask_position.rb +2 -0
  88. data/lib/telegram/bot/types/menu_button_commands.rb +11 -0
  89. data/lib/telegram/bot/types/menu_button_default.rb +11 -0
  90. data/lib/telegram/bot/types/menu_button_web_app.rb +13 -0
  91. data/lib/telegram/bot/types/message.rb +15 -9
  92. data/lib/telegram/bot/types/message_auto_delete_timer_changed.rb +2 -0
  93. data/lib/telegram/bot/types/message_entity.rb +2 -0
  94. data/lib/telegram/bot/types/order_info.rb +2 -0
  95. data/lib/telegram/bot/types/passport_data.rb +2 -0
  96. data/lib/telegram/bot/types/passport_element_error_data_field.rb +2 -0
  97. data/lib/telegram/bot/types/passport_element_error_file.rb +2 -0
  98. data/lib/telegram/bot/types/passport_element_error_files.rb +2 -0
  99. data/lib/telegram/bot/types/passport_element_error_front_side.rb +2 -0
  100. data/lib/telegram/bot/types/passport_element_error_reverse_side.rb +2 -0
  101. data/lib/telegram/bot/types/passport_element_error_selfie.rb +2 -0
  102. data/lib/telegram/bot/types/passport_element_error_translation_file.rb +2 -0
  103. data/lib/telegram/bot/types/passport_element_error_translation_files.rb +2 -0
  104. data/lib/telegram/bot/types/passport_element_error_unspecified.rb +2 -0
  105. data/lib/telegram/bot/types/passport_file.rb +2 -0
  106. data/lib/telegram/bot/types/pattern_matching.rb +2 -0
  107. data/lib/telegram/bot/types/photo_size.rb +2 -0
  108. data/lib/telegram/bot/types/poll.rb +2 -0
  109. data/lib/telegram/bot/types/poll_answer.rb +2 -0
  110. data/lib/telegram/bot/types/poll_option.rb +2 -0
  111. data/lib/telegram/bot/types/pre_checkout_query.rb +2 -0
  112. data/lib/telegram/bot/types/proximity_alert_triggered.rb +2 -0
  113. data/lib/telegram/bot/types/reply_keyboard_markup.rb +3 -0
  114. data/lib/telegram/bot/types/reply_keyboard_remove.rb +2 -0
  115. data/lib/telegram/bot/types/sent_web_app_message.rb +11 -0
  116. data/lib/telegram/bot/types/shipping_address.rb +2 -0
  117. data/lib/telegram/bot/types/shipping_option.rb +2 -0
  118. data/lib/telegram/bot/types/shipping_query.rb +2 -0
  119. data/lib/telegram/bot/types/sticker.rb +3 -0
  120. data/lib/telegram/bot/types/sticker_set.rb +3 -0
  121. data/lib/telegram/bot/types/successful_payment.rb +2 -0
  122. data/lib/telegram/bot/types/update.rb +3 -0
  123. data/lib/telegram/bot/types/user.rb +2 -0
  124. data/lib/telegram/bot/types/user_profile_photos.rb +2 -0
  125. data/lib/telegram/bot/types/venue.rb +2 -0
  126. data/lib/telegram/bot/types/video.rb +2 -0
  127. data/lib/telegram/bot/types/{voice_chat_ended.rb → video_chat_ended.rb} +3 -1
  128. data/lib/telegram/bot/types/{voice_chat_participants_invited.rb → video_chat_participants_invited.rb} +3 -1
  129. data/lib/telegram/bot/types/video_chat_scheduled.rb +11 -0
  130. data/lib/telegram/bot/types/{voice_chat_started.rb → video_chat_started.rb} +3 -1
  131. data/lib/telegram/bot/types/video_note.rb +2 -0
  132. data/lib/telegram/bot/types/voice.rb +2 -0
  133. data/lib/telegram/bot/types/web_app_data.rb +12 -0
  134. data/lib/telegram/bot/types/web_app_info.rb +11 -0
  135. data/lib/telegram/bot/types/webhook_info.rb +3 -1
  136. data/lib/telegram/bot/types.rb +25 -5
  137. data/lib/telegram/bot/version.rb +3 -1
  138. data/lib/telegram/bot.rb +2 -0
  139. data/telegram-bot-ruby.gemspec +9 -6
  140. metadata +55 -23
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Telegram
2
4
  module Bot
3
5
  module Types
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Telegram
2
4
  module Bot
3
5
  module Types
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Telegram
2
4
  module Bot
3
5
  module Types
4
- class VoiceChatEnded < Base
6
+ class VideoChatEnded < Base
5
7
  attribute :duration, Integer
6
8
  end
7
9
  end
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Telegram
2
4
  module Bot
3
5
  module Types
4
- class VoiceChatParticipantsInvited < Base
6
+ class VideoChatParticipantsInvited < Base
5
7
  attribute :users, Array[User]
6
8
  end
7
9
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telegram
4
+ module Bot
5
+ module Types
6
+ class VideoChatScheduled < Base
7
+ attribute :start_date, Integer
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Telegram
2
4
  module Bot
3
5
  module Types
4
- class VoiceChatStarted < Base
6
+ class VideoChatStarted < Base
5
7
  end
6
8
  end
7
9
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Telegram
2
4
  module Bot
3
5
  module Types
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Telegram
2
4
  module Bot
3
5
  module Types
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telegram
4
+ module Bot
5
+ module Types
6
+ class WebAppData < Base
7
+ attribute :data, String
8
+ attribute :button_text, String
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telegram
4
+ module Bot
5
+ module Types
6
+ class WebAppInfo < Base
7
+ attribute :url, String
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Telegram
2
4
  module Bot
3
5
  module Types
@@ -8,7 +10,7 @@ module Telegram
8
10
  attribute :ip_address, String
9
11
  attribute :last_error_date, Integer
10
12
  attribute :last_error_message, String
11
- attribute :max_connections, String
13
+ attribute :last_synchronization_error_date, Integer
12
14
  attribute :max_connections, Integer
13
15
  attribute :allowed_updates, Array[String]
14
16
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'telegram/bot/types/compactable'
2
4
  require 'telegram/bot/types/pattern_matching'
3
5
  require 'telegram/bot/types/base'
@@ -16,6 +18,7 @@ require 'telegram/bot/types/dice'
16
18
  require 'telegram/bot/types/location'
17
19
  require 'telegram/bot/types/chat_photo'
18
20
  require 'telegram/bot/types/chat_permissions'
21
+ require 'telegram/bot/types/chat_location'
19
22
  require 'telegram/bot/types/chat'
20
23
  require 'telegram/bot/types/message_entity'
21
24
  require 'telegram/bot/types/venue'
@@ -43,12 +46,15 @@ require 'telegram/bot/types/passport_element_error_files'
43
46
  require 'telegram/bot/types/passport_element_error_translation_file'
44
47
  require 'telegram/bot/types/passport_element_error_translation_files'
45
48
  require 'telegram/bot/types/passport_element_error_unspecified'
49
+ require 'telegram/bot/types/labeled_price'
46
50
  require 'telegram/bot/types/input_message_content'
47
51
  require 'telegram/bot/types/input_contact_message_content'
52
+ require 'telegram/bot/types/input_invoice_message_content'
48
53
  require 'telegram/bot/types/input_location_message_content'
49
54
  require 'telegram/bot/types/input_text_message_content'
50
55
  require 'telegram/bot/types/input_venue_message_content'
51
56
  require 'telegram/bot/types/login_url'
57
+ require 'telegram/bot/types/web_app_info'
52
58
  require 'telegram/bot/types/inline_keyboard_button'
53
59
  require 'telegram/bot/types/inline_keyboard_markup'
54
60
  require 'telegram/bot/types/inline_query'
@@ -74,10 +80,12 @@ require 'telegram/bot/types/inline_query_result_video'
74
80
  require 'telegram/bot/types/inline_query_result_voice'
75
81
  require 'telegram/bot/types/chosen_inline_result'
76
82
  require 'telegram/bot/types/proximity_alert_triggered'
77
- require 'telegram/bot/types/voice_chat_started'
78
- require 'telegram/bot/types/voice_chat_ended'
79
- require 'telegram/bot/types/voice_chat_participants_invited'
83
+ require 'telegram/bot/types/video_chat_scheduled'
84
+ require 'telegram/bot/types/video_chat_started'
85
+ require 'telegram/bot/types/video_chat_ended'
86
+ require 'telegram/bot/types/video_chat_participants_invited'
80
87
  require 'telegram/bot/types/message_auto_delete_timer_changed'
88
+ require 'telegram/bot/types/web_app_data'
81
89
  require 'telegram/bot/types/message'
82
90
  require 'telegram/bot/types/callback_query'
83
91
  require 'telegram/bot/types/shipping_query'
@@ -88,11 +96,11 @@ require 'telegram/bot/types/reply_keyboard_markup'
88
96
  require 'telegram/bot/types/reply_keyboard_remove'
89
97
  require 'telegram/bot/types/force_reply'
90
98
  require 'telegram/bot/types/file'
91
- require 'telegram/bot/types/labeled_price'
92
99
  require 'telegram/bot/types/shipping_option'
93
100
  require 'telegram/bot/types/chat_invite_link'
94
101
  require 'telegram/bot/types/chat_member'
95
102
  require 'telegram/bot/types/chat_member_updated'
103
+ require 'telegram/bot/types/chat_join_request'
96
104
  require 'telegram/bot/types/update'
97
105
  require 'telegram/bot/types/user_profile_photos'
98
106
  require 'telegram/bot/types/input_media_photo'
@@ -101,6 +109,18 @@ require 'telegram/bot/types/input_media_animation'
101
109
  require 'telegram/bot/types/input_media_audio'
102
110
  require 'telegram/bot/types/input_media_document'
103
111
  require 'telegram/bot/types/webhook_info'
104
- require 'telegram/bot/types/chat_location'
112
+ require 'telegram/bot/types/bot_command'
113
+ require 'telegram/bot/types/bot_command_scope_all_chat_administrators'
114
+ require 'telegram/bot/types/bot_command_scope_all_group_chats'
115
+ require 'telegram/bot/types/bot_command_scope_all_private_chats'
116
+ require 'telegram/bot/types/bot_command_scope_chat_administrators'
117
+ require 'telegram/bot/types/bot_command_scope_chat_member'
118
+ require 'telegram/bot/types/bot_command_scope_chat'
119
+ require 'telegram/bot/types/bot_command_scope_default'
120
+ require 'telegram/bot/types/sent_web_app_message'
121
+ require 'telegram/bot/types/menu_button_commands'
122
+ require 'telegram/bot/types/menu_button_web_app'
123
+ require 'telegram/bot/types/menu_button_default'
124
+ require 'telegram/bot/types/chat_administrator_rights'
105
125
 
106
126
  Virtus.finalize
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Telegram
2
4
  module Bot
3
- VERSION = '0.16.0'.freeze
5
+ VERSION = '0.19.0'
4
6
  end
5
7
  end
data/lib/telegram/bot.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'virtus'
2
4
  require 'logger'
3
5
  require 'json'
@@ -1,4 +1,6 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
2
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
5
 
4
6
  require 'telegram/bot/version'
@@ -17,13 +19,14 @@ Gem::Specification.new do |spec|
17
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
20
  spec.require_paths = ['lib']
19
21
 
20
- spec.add_dependency 'faraday'
21
- spec.add_dependency 'virtus', '~> 2.0'
22
22
  spec.add_dependency 'dry-inflector'
23
+ spec.add_dependency 'faraday', '~> 1.0'
24
+ spec.add_dependency 'virtus', '~> 2.0'
23
25
 
24
- spec.add_development_dependency 'rake', '~> 13.0'
25
26
  spec.add_development_dependency 'pry'
26
- spec.add_development_dependency 'rubocop', '~> 0.48.1'
27
+ spec.add_development_dependency 'rake', '~> 13.0'
27
28
  spec.add_development_dependency 'rspec', '~> 3.4'
28
- spec.add_development_dependency 'rubocop-rspec', '~> 1.8'
29
+ spec.add_development_dependency 'rubocop', '~> 1.27'
30
+ spec.add_development_dependency 'rubocop-rake'
31
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.10'
29
32
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telegram-bot-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.19.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: 2021-06-07 00:00:00.000000000 Z
11
+ date: 2022-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: faraday
14
+ name: dry-inflector
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: virtus
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -39,13 +53,13 @@ dependencies:
39
53
  - !ruby/object:Gem::Version
40
54
  version: '2.0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: dry-inflector
56
+ name: pry
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - ">="
46
60
  - !ruby/object:Gem::Version
47
61
  version: '0'
48
- type: :runtime
62
+ type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
@@ -67,61 +81,61 @@ dependencies:
67
81
  - !ruby/object:Gem::Version
68
82
  version: '13.0'
69
83
  - !ruby/object:Gem::Dependency
70
- name: pry
84
+ name: rspec
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - ">="
87
+ - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '0'
89
+ version: '3.4'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - ">="
94
+ - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '0'
96
+ version: '3.4'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rubocop
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: 0.48.1
103
+ version: '1.27'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: 0.48.1
110
+ version: '1.27'
97
111
  - !ruby/object:Gem::Dependency
98
- name: rspec
112
+ name: rubocop-rake
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - "~>"
115
+ - - ">="
102
116
  - !ruby/object:Gem::Version
103
- version: '3.4'
117
+ version: '0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - "~>"
122
+ - - ">="
109
123
  - !ruby/object:Gem::Version
110
- version: '3.4'
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rubocop-rspec
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '1.8'
131
+ version: '2.10'
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '1.8'
138
+ version: '2.10'
125
139
  description:
126
140
  email:
127
141
  - atipugin@gmail.com
@@ -153,10 +167,20 @@ files:
153
167
  - lib/telegram/bot/types/animation.rb
154
168
  - lib/telegram/bot/types/audio.rb
155
169
  - lib/telegram/bot/types/base.rb
170
+ - lib/telegram/bot/types/bot_command.rb
171
+ - lib/telegram/bot/types/bot_command_scope_all_chat_administrators.rb
172
+ - lib/telegram/bot/types/bot_command_scope_all_group_chats.rb
173
+ - lib/telegram/bot/types/bot_command_scope_all_private_chats.rb
174
+ - lib/telegram/bot/types/bot_command_scope_chat.rb
175
+ - lib/telegram/bot/types/bot_command_scope_chat_administrators.rb
176
+ - lib/telegram/bot/types/bot_command_scope_chat_member.rb
177
+ - lib/telegram/bot/types/bot_command_scope_default.rb
156
178
  - lib/telegram/bot/types/callback_game.rb
157
179
  - lib/telegram/bot/types/callback_query.rb
158
180
  - lib/telegram/bot/types/chat.rb
181
+ - lib/telegram/bot/types/chat_administrator_rights.rb
159
182
  - lib/telegram/bot/types/chat_invite_link.rb
183
+ - lib/telegram/bot/types/chat_join_request.rb
160
184
  - lib/telegram/bot/types/chat_location.rb
161
185
  - lib/telegram/bot/types/chat_member.rb
162
186
  - lib/telegram/bot/types/chat_member_updated.rb
@@ -197,6 +221,7 @@ files:
197
221
  - lib/telegram/bot/types/inline_query_result_video.rb
198
222
  - lib/telegram/bot/types/inline_query_result_voice.rb
199
223
  - lib/telegram/bot/types/input_contact_message_content.rb
224
+ - lib/telegram/bot/types/input_invoice_message_content.rb
200
225
  - lib/telegram/bot/types/input_location_message_content.rb
201
226
  - lib/telegram/bot/types/input_media_animation.rb
202
227
  - lib/telegram/bot/types/input_media_audio.rb
@@ -213,6 +238,9 @@ files:
213
238
  - lib/telegram/bot/types/location.rb
214
239
  - lib/telegram/bot/types/login_url.rb
215
240
  - lib/telegram/bot/types/mask_position.rb
241
+ - lib/telegram/bot/types/menu_button_commands.rb
242
+ - lib/telegram/bot/types/menu_button_default.rb
243
+ - lib/telegram/bot/types/menu_button_web_app.rb
216
244
  - lib/telegram/bot/types/message.rb
217
245
  - lib/telegram/bot/types/message_auto_delete_timer_changed.rb
218
246
  - lib/telegram/bot/types/message_entity.rb
@@ -237,6 +265,7 @@ files:
237
265
  - lib/telegram/bot/types/proximity_alert_triggered.rb
238
266
  - lib/telegram/bot/types/reply_keyboard_markup.rb
239
267
  - lib/telegram/bot/types/reply_keyboard_remove.rb
268
+ - lib/telegram/bot/types/sent_web_app_message.rb
240
269
  - lib/telegram/bot/types/shipping_address.rb
241
270
  - lib/telegram/bot/types/shipping_option.rb
242
271
  - lib/telegram/bot/types/shipping_query.rb
@@ -248,11 +277,14 @@ files:
248
277
  - lib/telegram/bot/types/user_profile_photos.rb
249
278
  - lib/telegram/bot/types/venue.rb
250
279
  - lib/telegram/bot/types/video.rb
280
+ - lib/telegram/bot/types/video_chat_ended.rb
281
+ - lib/telegram/bot/types/video_chat_participants_invited.rb
282
+ - lib/telegram/bot/types/video_chat_scheduled.rb
283
+ - lib/telegram/bot/types/video_chat_started.rb
251
284
  - lib/telegram/bot/types/video_note.rb
252
285
  - lib/telegram/bot/types/voice.rb
253
- - lib/telegram/bot/types/voice_chat_ended.rb
254
- - lib/telegram/bot/types/voice_chat_participants_invited.rb
255
- - lib/telegram/bot/types/voice_chat_started.rb
286
+ - lib/telegram/bot/types/web_app_data.rb
287
+ - lib/telegram/bot/types/web_app_info.rb
256
288
  - lib/telegram/bot/types/webhook_info.rb
257
289
  - lib/telegram/bot/version.rb
258
290
  - telegram-bot-ruby.gemspec
@@ -274,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
306
  - !ruby/object:Gem::Version
275
307
  version: '0'
276
308
  requirements: []
277
- rubygems_version: 3.2.15
309
+ rubygems_version: 3.3.3
278
310
  signing_key:
279
311
  specification_version: 4
280
312
  summary: Ruby wrapper for Telegram's Bot API