telegram-bot-ruby 0.6.0.2 → 0.7.0

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
  SHA1:
3
- metadata.gz: f04805a0664476ea31b02a96a169fada0ff5795f
4
- data.tar.gz: 597bd97b56d979379f94b49013e5f1fbe6c37ed4
3
+ metadata.gz: 3f5e768b4d861cf0dc9f407d3466b23c1d25730d
4
+ data.tar.gz: 9f0d4f4543cc5b78aa5dd93d01df4b0abec357ae
5
5
  SHA512:
6
- metadata.gz: 4863b98d40ca806fc20a6c78e888efaa34c2dfa5355330c2c7dd60206e05e38437516df1be212c1304f57646423e6e81d788bd1e636059cd63b43733fc110d6a
7
- data.tar.gz: 3d8341e3cd6bcdd5fe0baccf77f3bdecdf4d1fa15c19d346686fe822c8c4d94c53866764f6c2f41d184c53e9445f5dd8144a07253ba7906cc0767270e285fd7b
6
+ metadata.gz: d1a47e1ca1720f7697a5b170e0c17d758b133a321bf46e684ae65a38e33cdbfdc274251937e2ecff55a12c6a392b27e9eda93743cd0062eac7873eb113305909
7
+ data.tar.gz: 73c74431e421e6b0b26c2edebec77e499d332fc7d0f017cbb7423c31a1a8d5c49eb8c527ab7a39e0b8949b009ca4781fb2d5decda9d0a5853838673384c79770
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0
4
+
5
+ - Implement [Bot API 2.3](https://core.telegram.org/bots/api-changelog#november-21-2016) (thx [@ivanovaleksey](https://github.com/ivanovaleksey))
6
+
3
7
  ## 0.6.0
4
8
 
5
9
  - Implement Bot API changes (October 3, 2016 API update)
data/README.md CHANGED
@@ -70,8 +70,8 @@ bot.listen do |message|
70
70
  .new(keyboard: [%w(A B), %w(C D)], one_time_keyboard: true)
71
71
  bot.api.send_message(chat_id: message.chat.id, text: question, reply_markup: answers)
72
72
  when '/stop'
73
- # See more: https://core.telegram.org/bots/api#replykeyboardhide
74
- kb = Telegram::Bot::Types::ReplyKeyboardHide.new(hide_keyboard: true)
73
+ # See more: https://core.telegram.org/bots/api#replykeyboardremove
74
+ kb = Telegram::Bot::Types::ReplyKeyboardRemove.new(remove_keyboard: true)
75
75
  bot.api.send_message(chat_id: message.chat.id, text: 'Sorry to see you go :(', reply_markup: kb)
76
76
  end
77
77
  end
@@ -12,7 +12,7 @@ module Telegram
12
12
  ).freeze
13
13
  REPLY_MARKUP_TYPES = [
14
14
  Telegram::Bot::Types::ReplyKeyboardMarkup,
15
- Telegram::Bot::Types::ReplyKeyboardHide,
15
+ Telegram::Bot::Types::ReplyKeyboardRemove,
16
16
  Telegram::Bot::Types::ForceReply,
17
17
  Telegram::Bot::Types::InlineKeyboardMarkup
18
18
  ].freeze
@@ -49,6 +49,6 @@ require 'telegram/bot/types/callback_query'
49
49
  require 'telegram/bot/types/update'
50
50
  require 'telegram/bot/types/keyboard_button'
51
51
  require 'telegram/bot/types/reply_keyboard_markup'
52
- require 'telegram/bot/types/reply_keyboard_hide'
52
+ require 'telegram/bot/types/reply_keyboard_remove'
53
53
  require 'telegram/bot/types/force_reply'
54
54
  require 'telegram/bot/types/file'
@@ -8,6 +8,7 @@ module Telegram
8
8
  attribute :chat, Chat
9
9
  attribute :forward_from, User
10
10
  attribute :forward_from_chat, Chat
11
+ attribute :forward_from_message_id, Integer
11
12
  attribute :forward_date, Integer
12
13
  attribute :reply_to_message, Message
13
14
  attribute :edit_date, Integer
@@ -1,8 +1,8 @@
1
1
  module Telegram
2
2
  module Bot
3
3
  module Types
4
- class ReplyKeyboardHide < Base
5
- attribute :hide_keyboard, Boolean
4
+ class ReplyKeyboardRemove < Base
5
+ attribute :remove_keyboard, Boolean
6
6
  attribute :selective, Boolean, default: false
7
7
  end
8
8
  end
@@ -5,6 +5,8 @@ module Telegram
5
5
  attribute :update_id, Integer
6
6
  attribute :message, Message
7
7
  attribute :edited_message, Message
8
+ attribute :channel_post, Message
9
+ attribute :edited_channel_post, Message
8
10
  attribute :inline_query, InlineQuery
9
11
  attribute :chosen_inline_result, ChosenInlineResult
10
12
  attribute :callback_query, CallbackQuery
@@ -1,5 +1,5 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.6.0.2'.freeze
3
+ VERSION = '0.7.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telegram-bot-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tipugin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-11 00:00:00.000000000 Z
11
+ date: 2016-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -198,8 +198,8 @@ files:
198
198
  - lib/telegram/bot/types/message.rb
199
199
  - lib/telegram/bot/types/message_entity.rb
200
200
  - lib/telegram/bot/types/photo_size.rb
201
- - lib/telegram/bot/types/reply_keyboard_hide.rb
202
201
  - lib/telegram/bot/types/reply_keyboard_markup.rb
202
+ - lib/telegram/bot/types/reply_keyboard_remove.rb
203
203
  - lib/telegram/bot/types/sticker.rb
204
204
  - lib/telegram/bot/types/update.rb
205
205
  - lib/telegram/bot/types/user.rb