boppers 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gems.locked +1 -1
- data/lib/boppers/notifier/telegram.rb +2 -2
- data/lib/boppers/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b1c29cc1acc244f2de34249d79c2750558eee94
|
4
|
+
data.tar.gz: 2a090b9c2ff1e33bc10f87efb2784051455710d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b183e0cc4b2096977869d3039be89ddd319c02e248153ac2e10dcd0947d0314a8ebf99886b500df747be32b3b3e800088694793dc8df8f789bf363b89177741
|
7
|
+
data.tar.gz: 3b77cd4321f576482d50b6d48a5ba9d30071888371b4573427489e1747a1c6d269dd2d8621e896b5e605fb27c4852ab95a2744a7045c8e2845379b064201f3a7
|
data/gems.locked
CHANGED
@@ -13,12 +13,12 @@ module Boppers
|
|
13
13
|
@subscribe = subscribe
|
14
14
|
end
|
15
15
|
|
16
|
-
def call(
|
16
|
+
def call(title, message, _options)
|
17
17
|
bot = TelegramBot.new(token: api_token)
|
18
18
|
|
19
19
|
notification = TelegramBot::OutMessage.new
|
20
20
|
notification.chat = TelegramBot::Channel.new(id: channel_id)
|
21
|
-
notification.text = message
|
21
|
+
notification.text = "#{title}\n\n#{message}"
|
22
22
|
notification.send_with(bot)
|
23
23
|
end
|
24
24
|
end
|
data/lib/boppers/version.rb
CHANGED