telegruby 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/telegruby.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44f995031a33c95db82a73f7eed0e38834dec207
|
4
|
+
data.tar.gz: 5021c57cc3cab607f7181718022b8ba333aa4352
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcae41eddd5610e4b023e4ed2ab07d01655b0980e400e1d179ee78d8d19c28dfc466063316c78433430976874e86982524b007becbb6c2621e508a10a4d64110
|
7
|
+
data.tar.gz: fafce74a1c95c367bc2c22a2e64181cf265ce7797a345bb00356503317e5c7ef5c4239ff4f0644c467a406ce816fa0883cff0d621eb55037f8807fe30d88cf80
|
data/lib/telegruby.rb
CHANGED
@@ -82,7 +82,7 @@ module Telegruby
|
|
82
82
|
f.binmode
|
83
83
|
f.write(str)
|
84
84
|
|
85
|
-
self.send_photo(id, f.path, reply)
|
85
|
+
self.send_photo(id, filename: f.path, reply: reply)
|
86
86
|
}
|
87
87
|
end
|
88
88
|
|
@@ -167,6 +167,7 @@ module Telegruby
|
|
167
167
|
|
168
168
|
self.post_request("sendLocation", options)
|
169
169
|
end
|
170
|
+
|
170
171
|
def send_action(id, action)
|
171
172
|
options = {
|
172
173
|
:chat_id => id,
|
@@ -194,6 +195,7 @@ module Telegruby
|
|
194
195
|
|
195
196
|
return self.post_request("sendDocument", options)
|
196
197
|
end
|
198
|
+
|
197
199
|
def get_userphoto(id, offset: nil, limit: nil)
|
198
200
|
options = {
|
199
201
|
:user_id => id,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telegruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- '"Lain"'
|
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
38
38
|
version: '0'
|
39
39
|
requirements: []
|
40
40
|
rubyforge_project:
|
41
|
-
rubygems_version: 2.4.
|
41
|
+
rubygems_version: 2.4.8
|
42
42
|
signing_key:
|
43
43
|
specification_version: 4
|
44
44
|
summary: Basic Telegram Bot API library.
|