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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88e165797e0f92ef0f7e41461e82f8a0cb98d6ca
4
- data.tar.gz: f6fc59a4da9fb8f3d8d7415318a0ce62c68a677b
3
+ metadata.gz: be687b63c630f76cc65ca33e41da8314503ca12f
4
+ data.tar.gz: 97a72626bb37dbdd7c60a733391e80d234980280
5
5
  SHA512:
6
- metadata.gz: 66cddb0e63f11fa39870821bcf1b1c67c5e7904462a01e1409d3ed60f6f98152f024dd7fa6c5f5b816c8ceead7f33d264438c6242a5ffaae87d1c8815d70dd15
7
- data.tar.gz: fa43ea5cdd2b436453848de61ebd3b8df80b0774ffedba10ff4bc327bffef89b1cafa79ae8a4ec675033fcac06250b90d2133055f81d54de7e45b5a085965b18
6
+ metadata.gz: 47dc2b51b69704ac5ab9f9638ea0419c714597387f2dece46409c6d57e35dd0ff12df09f2c5c72a76ffb23c7a30e251406b0f41d83d9a0c545599174c41b1e19
7
+ data.tar.gz: e6c1fbd85e95a560c28175129329bd3565aa0957df803cbe2efbafabdd70fcd381c4f20ce23c9eadf988620d841d8bae23991bbb93f0d89edc593f0f895ee20c
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- # 0.10.1
1
+ # 0.10.2
2
2
 
3
3
  - Support `(edited_)channel_post` updates.
4
4
  - New methods from 2.3, 2.3.1 API updates.
@@ -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']]]
@@ -1,6 +1,6 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.10.1'.freeze
3
+ VERSION = '0.10.2'.freeze
4
4
 
5
5
  def self.gem_version
6
6
  Gem::Version.new VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telegram-bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Melentiev