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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2099dcf092fbe8f08c3d7238fce49192a5b473ee0cf9d3768fddc2831cfc444
4
- data.tar.gz: 01f5d546c65176738d3e4b06ea526e906a63bfd78db53f774eb24a0e085a9afd
3
+ metadata.gz: abdb7f4e0f246130a0e292dfe8c8c848152361d058e433601ae964f8d7f819d1
4
+ data.tar.gz: e12507cdc515f58778551d48ccdf6d6b8146eaee268aa12a89e440347cd7642e
5
5
  SHA512:
6
- metadata.gz: 27db3b2693ac6ce49f93c85d82cf0c52f2dc8943c4b366952fb7c53a70c7d6643aca915120b1168fce7edee95b6418ad07d08461e340c59a8a1878a92250b152
7
- data.tar.gz: 4b9691fa2117d2fc0b68ab2e45517ece35d9db66662270a843c0c9d6765d8b916beaad0408260ebf817048b9cb796d35dff3e6e527971f375126b82149b24d49
6
+ metadata.gz: 9bb89e6e8c8f076e46aa04230ee922a40dfd8dce8bb6be6ff44e016224803b3d6901ac897a06e67b8a1d8e267c153d294d3c61c738a41faea332a1075e2aef95
7
+ data.tar.gz: 8f5022c666ab19fd863db659c727de16251fd1dbdebb0f5de2b1d7d73d419e5567acefde0905e8ac84a2598703c9478ed5a0e38aad51df02c86d64ddd4b0a2ba
data/Gemfile CHANGED
@@ -11,6 +11,8 @@ gem "rspec", "~> 3.0"
11
11
 
12
12
  gem "kanal", "0.4.3"
13
13
 
14
+ gem "telegram-bot-ruby", "1.0.0"
15
+
14
16
  group :development do
15
17
  gem "rubocop", "~> 1.21"
16
18
  gem "ruby-debug-ide"
data/Gemfile.lock CHANGED
@@ -1,26 +1,36 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kanal-interfaces-telegram (0.3.1)
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
- coercible (1.0.0)
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.23.0)
105
- dry-inflector
114
+ telegram-bot-ruby (1.0.0)
115
+ dry-struct (~> 1.6)
106
116
  faraday (~> 2.0)
107
117
  faraday-multipart (~> 1.0)
108
- virtus (~> 2.0)
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.count > 0
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[2].file_id, @bot, @bot_token
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?
@@ -3,7 +3,7 @@
3
3
  module Kanal
4
4
  module Interfaces
5
5
  module Telegram
6
- VERSION = "0.3.1"
6
+ VERSION = "0.3.2"
7
7
  end
8
8
  end
9
9
  end
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.1
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: