telegramAPI 1.0.3 → 1.0.4
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/README.md +2 -0
- data/lib/telegramAPI.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e5b45e79fac3640829e4e55c3c71b13333cb7814
|
|
4
|
+
data.tar.gz: 8a4e116bf7bf10b3c5806f29d8781b5dedbe4b39
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d1396e0e088d2ceb852621671fddfcf0dd6caef584b600b896543e37c33f91c7fb963772db7f4702e1073d4ca6fb96318f8f0f839bd17ab594dda5c97795cd3
|
|
7
|
+
data.tar.gz: 3c2eacb52a7afbfffc85bacf306595aa62f2c94db4cc8bd182e69981709e2e452b5efb247f477fe11e73266bdd9dae2f57be3a18b2f928b7ed00210b31f13555
|
data/README.md
CHANGED
data/lib/telegramAPI.rb
CHANGED
|
@@ -21,7 +21,6 @@ class TelegramAPI
|
|
|
21
21
|
@last_update = 0
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
private
|
|
25
24
|
def query api, params={}
|
|
26
25
|
p=[]
|
|
27
26
|
params_s=""
|
|
@@ -31,7 +30,6 @@ class TelegramAPI
|
|
|
31
30
|
|
|
32
31
|
JSON.parse(open(@@core+@token+"/"+api+params_s).read)
|
|
33
32
|
end
|
|
34
|
-
public
|
|
35
33
|
|
|
36
34
|
# Provide information about the bot itself
|
|
37
35
|
# @return [User] Information about the bot
|
|
@@ -141,4 +139,6 @@ class TelegramAPI
|
|
|
141
139
|
def getUserProfilePhotos id, options={}
|
|
142
140
|
UserProfilePhotos.new self.query("getUserProfilePhotos", {"user_id"=>id}.merge(options))["result"]
|
|
143
141
|
end
|
|
142
|
+
|
|
143
|
+
protected :query
|
|
144
144
|
end
|