rubydium 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubydium/mixins/other_actions.rb +2 -0
- data/lib/rubydium/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71aa370cbe3fa625308d85852bf156ff4bb3c1d263b9e965dd8ae381c6f97b40
|
4
|
+
data.tar.gz: 3d9fec8f5e34b8fb9074a596167e6aa3306ecd4ba908b23d7898fdd25277fe45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afcaf39f388f5f94b5f79c8ed0f1daba65f011a260156c7455f6200989049102dec3331a23eccf8e01dd28576ebb57f3cc11708ebd699025d749ce9c3a6b2188
|
7
|
+
data.tar.gz: 2155285580e0f8f8752f56cdb6fa133f434f54bf06f5717897378897fba98c4ff0555e6be31c673832a72d99f4765639857724480cbc094ac6d0d8cec01b561e
|
@@ -12,6 +12,8 @@ module Rubydium
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def definitely_message(maybe_message)
|
15
|
+
return maybe_message if maybe_message.is_a? Telegram::Bot::Types::Message
|
16
|
+
|
15
17
|
if maybe_message["message_id"]
|
16
18
|
Telegram::Bot::Types::Message.new(maybe_message)
|
17
19
|
elsif maybe_message["result"]["message_id"]
|
data/lib/rubydium/version.rb
CHANGED