telegram-bot 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/telegram/bot/updates_controller.rb +3 -1
- data/lib/telegram/bot/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: be687b63c630f76cc65ca33e41da8314503ca12f
|
|
4
|
+
data.tar.gz: 97a72626bb37dbdd7c60a733391e80d234980280
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47dc2b51b69704ac5ab9f9638ea0419c714597387f2dece46409c6d57e35dd0ff12df09f2c5c72a76ffb23c7a30e251406b0f41d83d9a0c545599174c41b1e19
|
|
7
|
+
data.tar.gz: e6c1fbd85e95a560c28175129329bd3565aa0957df803cbe2efbafabdd70fcd381c4f20ce23c9eadf988620d841d8bae23991bbb93f0d89edc593f0f895ee20c
|
data/CHANGELOG.md
CHANGED
|
@@ -50,7 +50,7 @@ module Telegram
|
|
|
50
50
|
# ControllerClass.new(bot, from: telegram_user, chat: telegram_chat).
|
|
51
51
|
# process(:help, *args)
|
|
52
52
|
#
|
|
53
|
-
class UpdatesController < AbstractController::Base
|
|
53
|
+
class UpdatesController < AbstractController::Base # rubocop:disable ClassLength
|
|
54
54
|
abstract!
|
|
55
55
|
|
|
56
56
|
require 'telegram/bot/updates_controller/session'
|
|
@@ -183,11 +183,13 @@ module Telegram
|
|
|
183
183
|
cmd &&= self.class.action_for_command(cmd)
|
|
184
184
|
[true, cmd, args] if cmd
|
|
185
185
|
end
|
|
186
|
+
alias_method :action_for_channel_post, :action_for_message
|
|
186
187
|
|
|
187
188
|
# It doesn't extract commands from edited messages. Just process
|
|
188
189
|
# them as usual ones.
|
|
189
190
|
def action_for_edited_message
|
|
190
191
|
end
|
|
192
|
+
alias_method :action_for_edited_channel_post, :action_for_edited_message
|
|
191
193
|
|
|
192
194
|
def action_for_inline_query
|
|
193
195
|
[false, payload_type, [payload['query'], payload['offset']]]
|
data/lib/telegram/bot/version.rb
CHANGED