kanal-interfaces-telegram 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +25 -18
- data/lib/kanal/interfaces/telegram/telegram_interface.rb +2 -2
- data/lib/kanal/interfaces/telegram/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abdb7f4e0f246130a0e292dfe8c8c848152361d058e433601ae964f8d7f819d1
|
4
|
+
data.tar.gz: e12507cdc515f58778551d48ccdf6d6b8146eaee268aa12a89e440347cd7642e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bb89e6e8c8f076e46aa04230ee922a40dfd8dce8bb6be6ff44e016224803b3d6901ac897a06e67b8a1d8e267c153d294d3c61c738a41faea332a1075e2aef95
|
7
|
+
data.tar.gz: 8f5022c666ab19fd863db659c727de16251fd1dbdebb0f5de2b1d7d73d419e5567acefde0905e8ac84a2598703c9478ed5a0e38aad51df02c86d64ddd4b0a2ba
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,26 +1,36 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
kanal-interfaces-telegram (0.3.
|
5
|
-
telegram-bot-ruby
|
4
|
+
kanal-interfaces-telegram (0.3.2)
|
6
5
|
|
7
6
|
GEM
|
8
7
|
remote: https://rubygems.org/
|
9
8
|
specs:
|
10
9
|
ast (2.4.2)
|
11
|
-
axiom-types (0.1.1)
|
12
|
-
descendants_tracker (~> 0.0.4)
|
13
|
-
ice_nine (~> 0.11.0)
|
14
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
15
10
|
backport (1.2.0)
|
16
11
|
benchmark (0.2.1)
|
17
|
-
|
18
|
-
descendants_tracker (~> 0.0.1)
|
19
|
-
descendants_tracker (0.0.4)
|
20
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
12
|
+
concurrent-ruby (1.2.2)
|
21
13
|
diff-lcs (1.5.0)
|
22
14
|
docile (1.4.0)
|
15
|
+
dry-core (1.0.0)
|
16
|
+
concurrent-ruby (~> 1.0)
|
17
|
+
zeitwerk (~> 2.6)
|
23
18
|
dry-inflector (1.0.0)
|
19
|
+
dry-logic (1.5.0)
|
20
|
+
concurrent-ruby (~> 1.0)
|
21
|
+
dry-core (~> 1.0, < 2)
|
22
|
+
zeitwerk (~> 2.6)
|
23
|
+
dry-struct (1.6.0)
|
24
|
+
dry-core (~> 1.0, < 2)
|
25
|
+
dry-types (>= 1.7, < 2)
|
26
|
+
ice_nine (~> 0.11)
|
27
|
+
zeitwerk (~> 2.6)
|
28
|
+
dry-types (1.7.1)
|
29
|
+
concurrent-ruby (~> 1.0)
|
30
|
+
dry-core (~> 1.0)
|
31
|
+
dry-inflector (~> 1.0)
|
32
|
+
dry-logic (~> 1.4)
|
33
|
+
zeitwerk (~> 2.6)
|
24
34
|
e2mmap (0.1.0)
|
25
35
|
faraday (2.7.4)
|
26
36
|
faraday-net_http (>= 2.0, < 3.1)
|
@@ -101,22 +111,18 @@ GEM
|
|
101
111
|
thor (~> 1.0)
|
102
112
|
tilt (~> 2.0)
|
103
113
|
yard (~> 0.9, >= 0.9.24)
|
104
|
-
telegram-bot-ruby (0.
|
105
|
-
dry-
|
114
|
+
telegram-bot-ruby (1.0.0)
|
115
|
+
dry-struct (~> 1.6)
|
106
116
|
faraday (~> 2.0)
|
107
117
|
faraday-multipart (~> 1.0)
|
108
|
-
|
118
|
+
zeitwerk (~> 2.6)
|
109
119
|
thor (1.2.1)
|
110
|
-
thread_safe (0.3.6)
|
111
120
|
tilt (2.0.11)
|
112
121
|
unicode-display_width (2.4.2)
|
113
|
-
virtus (2.0.0)
|
114
|
-
axiom-types (~> 0.1)
|
115
|
-
coercible (~> 1.0)
|
116
|
-
descendants_tracker (~> 0.0, >= 0.0.3)
|
117
122
|
webrick (1.7.0)
|
118
123
|
yard (0.9.28)
|
119
124
|
webrick (~> 1.7.0)
|
125
|
+
zeitwerk (2.6.7)
|
120
126
|
|
121
127
|
PLATFORMS
|
122
128
|
x86_64-darwin-21
|
@@ -131,6 +137,7 @@ DEPENDENCIES
|
|
131
137
|
ruby-debug-ide
|
132
138
|
simplecov
|
133
139
|
solargraph
|
140
|
+
telegram-bot-ruby (= 1.0.0)
|
134
141
|
yard
|
135
142
|
|
136
143
|
BUNDLED WITH
|
@@ -46,9 +46,9 @@ module Kanal
|
|
46
46
|
input.tg_chat_id = message.chat.id
|
47
47
|
input.tg_username = message.chat.username || message.from.username
|
48
48
|
|
49
|
-
if message.photo.
|
49
|
+
if !message.photo.nil?
|
50
50
|
# Array of images contains thumbnails, we take 3rd element to get the high-res image
|
51
|
-
input.tg_image_link = @link_parser.get_file_link message.photo
|
51
|
+
input.tg_image_link = @link_parser.get_file_link message.photo.last.file_id, @bot, @bot_token
|
52
52
|
end
|
53
53
|
|
54
54
|
if !message.audio.nil?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kanal-interfaces-telegram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- idchlife
|
@@ -9,21 +9,7 @@ autorequire:
|
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2023-03-31 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: telegram-bot-ruby
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
12
|
+
dependencies: []
|
27
13
|
description: Library provides Telegram interface for Kanal. With this you can connect
|
28
14
|
to telegram bot and control it
|
29
15
|
email:
|