rubydium 0.3.4 → 0.3.6

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: ac65f322ea7e39ffe45816fa3c6bca190d5b54cf9b9df4a924812cb75149cbef
4
- data.tar.gz: 67adfbef15a582969df215dd3d1dce9ff3d64f72eccc6a1047451dcbb343b9a5
3
+ metadata.gz: 25b7c60f1b5de37d7df492f2bafc20f1cba006a98884345c5d961b45282d6333
4
+ data.tar.gz: dddc9b3caa3211391748b4847490f6ab9540b35f710151bd5cbddd92e9ed7bfa
5
5
  SHA512:
6
- metadata.gz: 07fb47c76b5ea68fb15c0941bc9258dca98b97ec93efc672b42ccbb00f1a776de79c91255c4f44fa23e7b4a68b2632409b4f4c3c9e72d9f6474b48297677323d
7
- data.tar.gz: 1e58b30bd79d21a8ce3c3dce06d3c40a57e1cb43f08f61ea17e321d3b8cbbb5b61f3f7701b045991a51e439061e01f4b6bb32ad61c644b53505306f66b539963
6
+ metadata.gz: 4490a2d8a9392814f15295efb7def77de860f3e1b96a42b181c4682aeea93fbde061bd82067ce1de570ee24ff574b4d8fb4b9622aea9d7fd2c22c95789b1ee17
7
+ data.tar.gz: 1b9f21ec1aff8ec3e751c92573417fb050c242718ae907699dc1c7f57461c98c0758bb918bccadbb84a73abf080d83ade11e2dccb02f687326165e2b902e3fa5
@@ -16,7 +16,7 @@ module Rubydium
16
16
  @api.send_message(
17
17
  chat_id: @chat.id,
18
18
  message_thread_id: @topic_id,
19
- text: chunk,
19
+ text: text,
20
20
  **kwargs
21
21
  )
22
22
  rescue Telegram::Bot::Exceptions::ResponseError => e
@@ -89,8 +89,8 @@ module Rubydium
89
89
 
90
90
  def reply(text, **args)
91
91
  send_message(
92
+ text,
92
93
  reply_to_message_id: @message_id,
93
- text: text,
94
94
  **args
95
95
  )
96
96
  end
@@ -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.4"
4
+ VERSION = "0.3.6"
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.4
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - bulgakke