rubydium 0.3.6 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubydium/mixins/message_sending.rb +6 -5
- data/lib/rubydium/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d4702884e4978975d1cb43d55b5d4dd71f575a25424747d98921bb49d8ec126
|
4
|
+
data.tar.gz: c4ac1f41fa0e9355b079d362aec2551da5149f5d681205f15d187546217343f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b833da95c7c478177ab7d5155ef08624e6392bb8163b1b0ed0acda7ce57f96e46708af29b72bc80b0501553d6b6033d29bcad039e57b431e835d665062927334
|
7
|
+
data.tar.gz: dcbbbe31bd4f6174cb3395836eda880efb381e0bc5312865e35b0cf8cc064b178336577b3a23c2dff997b296506c108c49c2c8923aae46c7492e873e07d2d47c
|
@@ -10,7 +10,7 @@ module Rubydium
|
|
10
10
|
(string.length / size.to_f).ceil.times.map { |i| string[i * size, size] }
|
11
11
|
end
|
12
12
|
|
13
|
-
def send_message(text, split: false **kwargs)
|
13
|
+
def send_message(text, split: false, **kwargs)
|
14
14
|
return send_many_messages(text, **kwargs) if split
|
15
15
|
|
16
16
|
@api.send_message(
|
@@ -87,11 +87,11 @@ module Rubydium
|
|
87
87
|
)
|
88
88
|
end
|
89
89
|
|
90
|
-
def reply(text, **
|
90
|
+
def reply(text, **kwargs)
|
91
91
|
send_message(
|
92
92
|
text,
|
93
93
|
reply_to_message_id: @message_id,
|
94
|
-
**
|
94
|
+
**kwargs
|
95
95
|
)
|
96
96
|
end
|
97
97
|
|
@@ -99,10 +99,11 @@ module Rubydium
|
|
99
99
|
reply("```\n#{text}```", parse_mode: "Markdown")
|
100
100
|
end
|
101
101
|
|
102
|
-
def reply_to_target(text)
|
102
|
+
def reply_to_target(text, **kwargs)
|
103
103
|
send_message(
|
104
|
+
text,
|
104
105
|
reply_to_message_id: @replies_to.message_id,
|
105
|
-
|
106
|
+
**kwargs
|
106
107
|
)
|
107
108
|
end
|
108
109
|
end
|
data/lib/rubydium/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubydium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bulgakke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: telegram-bot-ruby
|