telegram-bot-ruby 0.5.3 → 0.6.0.1
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/.travis.yml +0 -1
- data/CHANGELOG.md +4 -0
- data/lib/telegram/bot/api.rb +1 -0
- data/lib/telegram/bot/types.rb +5 -0
- data/lib/telegram/bot/types/animation.rb +13 -0
- data/lib/telegram/bot/types/callback_game.rb +8 -0
- data/lib/telegram/bot/types/callback_query.rb +2 -0
- data/lib/telegram/bot/types/chat.rb +1 -0
- data/lib/telegram/bot/types/game.rb +14 -0
- data/lib/telegram/bot/types/game_high_score.rb +11 -0
- data/lib/telegram/bot/types/inline_keyboard_button.rb +2 -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_voice.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_game.rb +12 -0
- data/lib/telegram/bot/types/inline_query_result_voice.rb +1 -0
- data/lib/telegram/bot/types/message.rb +1 -0
- data/lib/telegram/bot/version.rb +1 -1
- data/telegram-bot-ruby.gemspec +1 -1
- metadata +11 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 668a55980427b870e1b3d632d7b1a97dad6f3943
|
4
|
+
data.tar.gz: a71056d94620753d77fba50f6944a7c3d090d5a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 361cb8a4145448625cb3b4b6aaeba1aa108d41e79710e48972c14bc640ec92ea9ca4cd66b5c1672c467a4f316acd4bb187ce07f82ff8d74de150f5318259a61f
|
7
|
+
data.tar.gz: bba7d2ba16b9c29c4d3364e3a6d474de9ea25a7b20e2ae8807ed1ff4eeffab356ee9c10ffdb5c8a48ad57607773f1018848cdce53f3ea70ccc6c3ba66ae3c3e7
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/telegram/bot/api.rb
CHANGED
@@ -8,6 +8,7 @@ module Telegram
|
|
8
8
|
kickChatMember unbanChatMember answerCallbackQuery editMessageText
|
9
9
|
editMessageCaption editMessageReplyMarkup answerInlineQuery getChat
|
10
10
|
leaveChat getChatAdministrators getChatMember getChatMembersCount
|
11
|
+
sendGame setGameScore getGameHighScores getWebhookInfo
|
11
12
|
).freeze
|
12
13
|
REPLY_MARKUP_TYPES = [
|
13
14
|
Telegram::Bot::Types::ReplyKeyboardMarkup,
|
data/lib/telegram/bot/types.rb
CHANGED
@@ -11,6 +11,10 @@ require 'telegram/bot/types/location'
|
|
11
11
|
require 'telegram/bot/types/chat'
|
12
12
|
require 'telegram/bot/types/message_entity'
|
13
13
|
require 'telegram/bot/types/venue'
|
14
|
+
require 'telegram/bot/types/animation'
|
15
|
+
require 'telegram/bot/types/game'
|
16
|
+
require 'telegram/bot/types/callback_game'
|
17
|
+
require 'telegram/bot/types/game_high_score'
|
14
18
|
require 'telegram/bot/types/message'
|
15
19
|
require 'telegram/bot/types/input_message_content'
|
16
20
|
require 'telegram/bot/types/input_contact_message_content'
|
@@ -31,6 +35,7 @@ require 'telegram/bot/types/inline_query_result_cached_sticker'
|
|
31
35
|
require 'telegram/bot/types/inline_query_result_cached_video'
|
32
36
|
require 'telegram/bot/types/inline_query_result_cached_voice'
|
33
37
|
require 'telegram/bot/types/inline_query_result_contact'
|
38
|
+
require 'telegram/bot/types/inline_query_result_game'
|
34
39
|
require 'telegram/bot/types/inline_query_result_document'
|
35
40
|
require 'telegram/bot/types/inline_query_result_gif'
|
36
41
|
require 'telegram/bot/types/inline_query_result_location'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Telegram
|
2
|
+
module Bot
|
3
|
+
module Types
|
4
|
+
class Game < Base
|
5
|
+
attribute :title, String
|
6
|
+
attribute :description, String
|
7
|
+
attribute :photo, Array[PhotoSize]
|
8
|
+
attribute :text, String
|
9
|
+
attribute :text_entities, Array[MessageEntity]
|
10
|
+
attribute :animation, Animation
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Telegram
|
2
|
+
module Bot
|
3
|
+
module Types
|
4
|
+
class InlineQueryResultGame < Base
|
5
|
+
attribute :type, String, default: 'game'
|
6
|
+
attribute :id, String
|
7
|
+
attribute :game_short_name, String
|
8
|
+
attribute :reply_markup, InlineKeyboardMarkup
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -6,6 +6,7 @@ module Telegram
|
|
6
6
|
attribute :id, String
|
7
7
|
attribute :voice_url, String
|
8
8
|
attribute :title, String
|
9
|
+
attribute :caption, String
|
9
10
|
attribute :voice_duration, Integer
|
10
11
|
attribute :reply_markup, InlineKeyboardMarkup
|
11
12
|
attribute :input_message_content, InputMessageContent
|
data/lib/telegram/bot/version.rb
CHANGED
data/telegram-bot-ruby.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.9'
|
24
24
|
spec.add_development_dependency 'rake', '~> 10.0'
|
25
25
|
spec.add_development_dependency 'pry'
|
26
|
-
spec.add_development_dependency 'rubocop'
|
26
|
+
spec.add_development_dependency 'rubocop', '~> 0.42.0'
|
27
27
|
spec.add_development_dependency 'rspec', '~> 3.4'
|
28
28
|
spec.add_development_dependency 'rubocop-rspec', '~> 1.4'
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telegram-bot-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tipugin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 0.42.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 0.42.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,8 +152,10 @@ files:
|
|
152
152
|
- lib/telegram/bot/exceptions/response_error.rb
|
153
153
|
- lib/telegram/bot/null_logger.rb
|
154
154
|
- lib/telegram/bot/types.rb
|
155
|
+
- lib/telegram/bot/types/animation.rb
|
155
156
|
- lib/telegram/bot/types/audio.rb
|
156
157
|
- lib/telegram/bot/types/base.rb
|
158
|
+
- lib/telegram/bot/types/callback_game.rb
|
157
159
|
- lib/telegram/bot/types/callback_query.rb
|
158
160
|
- lib/telegram/bot/types/chat.rb
|
159
161
|
- lib/telegram/bot/types/chosen_inline_result.rb
|
@@ -161,6 +163,8 @@ files:
|
|
161
163
|
- lib/telegram/bot/types/document.rb
|
162
164
|
- lib/telegram/bot/types/file.rb
|
163
165
|
- lib/telegram/bot/types/force_reply.rb
|
166
|
+
- lib/telegram/bot/types/game.rb
|
167
|
+
- lib/telegram/bot/types/game_high_score.rb
|
164
168
|
- lib/telegram/bot/types/inline_keyboard_button.rb
|
165
169
|
- lib/telegram/bot/types/inline_keyboard_markup.rb
|
166
170
|
- lib/telegram/bot/types/inline_query.rb
|
@@ -176,6 +180,7 @@ files:
|
|
176
180
|
- lib/telegram/bot/types/inline_query_result_cached_voice.rb
|
177
181
|
- lib/telegram/bot/types/inline_query_result_contact.rb
|
178
182
|
- lib/telegram/bot/types/inline_query_result_document.rb
|
183
|
+
- lib/telegram/bot/types/inline_query_result_game.rb
|
179
184
|
- lib/telegram/bot/types/inline_query_result_gif.rb
|
180
185
|
- lib/telegram/bot/types/inline_query_result_location.rb
|
181
186
|
- lib/telegram/bot/types/inline_query_result_mpeg4_gif.rb
|