xasin-telegram 0.1.1.dev → 0.1.2.dev
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xasin/telegram.rb +2 -2
- data/lib/xasin/telegram/MQTT_Adapter.rb +4 -1
- 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: fe8e24b94d5c11648a6b986c5c54f32851774019
|
4
|
+
data.tar.gz: 93a23b6c042aa90fdfa0c0db6cda284c6381630f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51568135c241d13a44e9ab1520322774f67e6b7ac7085f959a50efc2cc7fbb8ff77d1d6a5ba5c5f9b49eece675799fc2c590e712ccfb9262e9846a240838b925
|
7
|
+
data.tar.gz: 0f7c5b06f43cc7524034a24f000e2bd2b44bb8aebb58275d83d2c4bf57401be63f03ac62c3cf4d209b20e9878e5ee6bd86a61c5b01a1d32d0e0863caf17b4cd0
|
data/lib/xasin/telegram.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
|
2
|
-
require_relative "
|
3
|
-
require_relative "
|
2
|
+
require_relative "telegram/HTTPCore.rb"
|
3
|
+
require_relative "telegram/SingleUser.rb"
|
@@ -1,4 +1,5 @@
|
|
1
1
|
|
2
|
+
require_relative 'HTTPCore.rb'
|
2
3
|
require 'mqtt/sub_handler'
|
3
4
|
|
4
5
|
module Xasin
|
@@ -20,7 +21,9 @@ module Telegram
|
|
20
21
|
# Hash {username => ChatID}
|
21
22
|
@usernameList = Hash.new();
|
22
23
|
# Hash {ChatID => {GroupID => MessageID}}
|
23
|
-
@groupIDList = Hash.new
|
24
|
+
@groupIDList = Hash.new do |hash, key|
|
25
|
+
hash[key] = Hash.new;
|
26
|
+
end
|
24
27
|
|
25
28
|
setup_mqtt();
|
26
29
|
end
|