rubydium 0.3.5 → 0.3.7

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: ee189034adf5cc71d909a3a592aab9f1066f994ee3914f8d8d5c6e80e1a5faf3
4
- data.tar.gz: 381ab88806a8557bb10defb367befd058648f002570dfa044c5f7a16d94f7808
3
+ metadata.gz: b4a39256284aa19750a1171ca95cc4d7973fc853a776f4bcc649fab7bde4d22c
4
+ data.tar.gz: fa38698c36816a8b1015c303c1c37d08b7d40b0a304df78840007aeae8505ffa
5
5
  SHA512:
6
- metadata.gz: c3554cfb402b4f5c3e053795dcb7b8b5938217991a5ef4b842f77634593bd13f68c08be3b4bd7e382e90cd90456e159c0ac8d672c304ddfb0d3525ef40ba5148
7
- data.tar.gz: 0c17430324d459d43758ab29b894422e1dca8bf3a7d619c320d47529a266fbf5a5cfa87527814c5a44a30758b46a8320c0294c22278eddb61dc7b9842596948e
6
+ metadata.gz: 3ff895ae15e3e9d05f1fda6609cd319ea8527f1928dd1fbd8b43615fb446ce9c812686bd9747a205ab7431a2f120d384bff89085d6b918fd27ee444e9fcbf4e4
7
+ data.tar.gz: cf7484996d2ae6c167750b70d40585085ddb97ba2c163e8dc619d4c5fcbeaa007ed15803b0c8d94143b5e31b4d84a0e58cf8b2f4c6431eb59092be1443ca69da
@@ -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(
@@ -5,7 +5,7 @@ module Rubydium
5
5
  message = definitely_message(maybe_message)
6
6
  return false unless message&.from&.id == config.bot_id # also returns if it's nil
7
7
 
8
- safe_delete_by_id(message.id)
8
+ safe_delete_by_id(message.message_id)
9
9
  end
10
10
 
11
11
  def safe_delete_by_id(id)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubydium
4
- VERSION = "0.3.5"
4
+ VERSION = "0.3.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubydium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bulgakke