kanal-interfaces-telegram 0.3.1 → 0.3.3
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 +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c80f33424c5dc1ebffe6209227d5e6226f7a85f60139b17ebb99327168918d9
|
4
|
+
data.tar.gz: d847be1d03f79b704d7dfc2defc59af8d78f4d02c886fec9e706cd8cf2b061e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ac1cbf74631b3093bf628cbd675cf84967649f42c04892814c1c618c8e54aa82178b4cf25fe45c3c5a5a72d0f358b306070a7b8955b0f90bbadd4ae97cd5360
|
7
|
+
data.tar.gz: 81cf157a22b37f8ef42489aa000a01a3204eedb53389a32dbd2e9b08a2a5129fc28ac3a9192bc1d3ab146d957289fc166a4b88a1c1f8058dde6b8b0e69e43802
|
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.3)
|
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,29 +1,15 @@
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- idchlife
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03
|
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'
|
11
|
+
date: 2023-04-03 00:00:00.000000000 Z
|
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:
|