telegramAPI 1.0.7 → 1.0.8
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 +1 -1
- 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: 315b79da88eff7a39d09bc3efef121430db328c1
|
4
|
+
data.tar.gz: 928efa6a8623ab9f85f0853e7ec63d1b63738c70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34ff22e8934364ae7e50ed1e76a8730d4e34bdb36f4d1189acc83af4fc77048d76d40fa857811ab53b466eedb61bd7f2def264341b1e8a544c5ea44512af882d
|
7
|
+
data.tar.gz: bc85a71233e74f0aec8695f9e3f5d80ee8115fcdcdc514e38d5f139e42008be8ebc677e3ccb434fb81d9098882580c15f5c276103d72240f15bf65d8b8f50a72
|
data/README.md
CHANGED
data/lib/telegramAPI.rb
CHANGED
@@ -4,7 +4,7 @@ require 'net/http'
|
|
4
4
|
require 'net/https'
|
5
5
|
require 'uri'
|
6
6
|
require 'rest_client'
|
7
|
-
|
7
|
+
require_relative './telegramObjects'
|
8
8
|
|
9
9
|
# This library provides an easy way to access to the Telegram Bot API
|
10
10
|
# Author:: Benedetto Nespoli
|
@@ -24,7 +24,7 @@ class TelegramAPI
|
|
24
24
|
def parse_hash hash
|
25
25
|
ret = {}
|
26
26
|
hash.each do |h|
|
27
|
-
ret[h[0]]=URI::encode(h[1])
|
27
|
+
ret[h[0]]=URI::encode(h[1].to_s)
|
28
28
|
end
|
29
29
|
return ret
|
30
30
|
end
|