rubydium 0.4.0 → 0.4.1

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: 2c972a49ad1f25abc06d3586d93fc19d28c3121fd9ffed6a1edfceb6f27950a9
4
- data.tar.gz: 12abd46194c6ec338e0632714cf5b415c3c7cf0cba47233b4821a10561881ab0
3
+ metadata.gz: b9550a176613e73a419e3b8844028e6c01b1e32440025a387a058e8032ee5ee4
4
+ data.tar.gz: 963c0a9d0bd7095b7ebe36ebdecb8114c3886ff2a3a2fd8abe1be8894287113b
5
5
  SHA512:
6
- metadata.gz: f63106b16dc179ab4629dbf7803ee48728ec0c27fe1a0643233a30e2ed5865996b31d46dd7a0def84f7d9c165edfb419da182e3d52ce314eb3577a11193dea5b
7
- data.tar.gz: d090fb221f7ddd893e28c029203ad75f4044b5c0b9c2461e47936d458a7f8d76a32e594687d22707e2688025e3fb6b8f54dc5860efa8b053f4e378b7745f7d4c
6
+ metadata.gz: 4c91cf1a165ac133b27d5e8a73d04e8cef603f13eb3322876fbae006257fd795054c385fd874c001f520c117291c2255964246a12a4c27b71db3604d66bf6be7
7
+ data.tar.gz: 74ea953f0de92b66f7346d865d3879c34145ed5f6183f095f2d3b30d97ae658f2130389c2e45277a4abebfa848d7d117ef1b327801bf474537bc686f83918240
data/lib/rubydium/bot.rb CHANGED
@@ -47,7 +47,7 @@ module Rubydium
47
47
  @target = @replies_to&.from
48
48
  @text = @msg.text.to_s
49
49
  @message_id = @msg.message_id
50
- @command = get_command(@msg.text)
50
+ @command = get_command(@msg.text || @msg.caption)
51
51
  @text_without_command = @text.gsub(@command.to_s, "").gsub(/@#{config.bot_username}\b/,
52
52
  "").strip
53
53
  @text_without_bot_mentions = @text.gsub(/@#{config.bot_username}\b/, "")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubydium
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
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.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bulgakke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-05 00:00:00.000000000 Z
11
+ date: 2023-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: telegram-bot-ruby