telegram-bot-ruby 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/telegram/bot/client.rb +8 -5
- data/lib/telegram/bot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c02d79f81e719a452e46887b09cc54167d72d80f
|
4
|
+
data.tar.gz: 2e3a73423f4b29b58a73cf07b5a41018ac5926ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f840ced90b930aa481ba7331faffd19e9010cf1b0ac18094e0d176e64407676dc24c59fcbedda6b3a0100ecfe457e6952094c8df1d60bf31643ef58420d39ffd
|
7
|
+
data.tar.gz: 303781ef46d1ec9778036a8f61b86b30234f190104344fd2de92e8a41a25be18f20230de0364f59f03a010cc17045325a8d4ef5340832a5c258b296aab230d02
|
data/CHANGELOG.md
CHANGED
data/lib/telegram/bot/client.rb
CHANGED
@@ -48,11 +48,14 @@ module Telegram
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def extract_message(update)
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
51
|
+
types = %w(inline_query
|
52
|
+
chosen_inline_result
|
53
|
+
callback_query
|
54
|
+
edited_message
|
55
|
+
message
|
56
|
+
channel_post
|
57
|
+
edited_channel_post)
|
58
|
+
types.inject(nil) { |acc, elem| acc || update.send(elem) }
|
56
59
|
end
|
57
60
|
|
58
61
|
def log_incoming_message(message)
|
data/lib/telegram/bot/version.rb
CHANGED
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.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tipugin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
227
|
version: '0'
|
228
228
|
requirements: []
|
229
229
|
rubyforge_project:
|
230
|
-
rubygems_version: 2.5.
|
230
|
+
rubygems_version: 2.5.2
|
231
231
|
signing_key:
|
232
232
|
specification_version: 4
|
233
233
|
summary: Ruby wrapper for Telegram's Bot API
|