telegram-bot-ruby 0.6.0.2 → 0.7.0
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 +4 -0
- data/README.md +2 -2
- data/lib/telegram/bot/api.rb +1 -1
- data/lib/telegram/bot/types.rb +1 -1
- data/lib/telegram/bot/types/message.rb +1 -0
- data/lib/telegram/bot/types/{reply_keyboard_hide.rb → reply_keyboard_remove.rb} +2 -2
- data/lib/telegram/bot/types/update.rb +2 -0
- data/lib/telegram/bot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f5e768b4d861cf0dc9f407d3466b23c1d25730d
|
4
|
+
data.tar.gz: 9f0d4f4543cc5b78aa5dd93d01df4b0abec357ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1a47e1ca1720f7697a5b170e0c17d758b133a321bf46e684ae65a38e33cdbfdc274251937e2ecff55a12c6a392b27e9eda93743cd0062eac7873eb113305909
|
7
|
+
data.tar.gz: 73c74431e421e6b0b26c2edebec77e499d332fc7d0f017cbb7423c31a1a8d5c49eb8c527ab7a39e0b8949b009ca4781fb2d5decda9d0a5853838673384c79770
|
data/CHANGELOG.md
CHANGED
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#
|
74
|
-
kb = Telegram::Bot::Types::
|
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
|
data/lib/telegram/bot/api.rb
CHANGED
@@ -12,7 +12,7 @@ module Telegram
|
|
12
12
|
).freeze
|
13
13
|
REPLY_MARKUP_TYPES = [
|
14
14
|
Telegram::Bot::Types::ReplyKeyboardMarkup,
|
15
|
-
Telegram::Bot::Types::
|
15
|
+
Telegram::Bot::Types::ReplyKeyboardRemove,
|
16
16
|
Telegram::Bot::Types::ForceReply,
|
17
17
|
Telegram::Bot::Types::InlineKeyboardMarkup
|
18
18
|
].freeze
|
data/lib/telegram/bot/types.rb
CHANGED
@@ -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/
|
52
|
+
require 'telegram/bot/types/reply_keyboard_remove'
|
53
53
|
require 'telegram/bot/types/force_reply'
|
54
54
|
require 'telegram/bot/types/file'
|
@@ -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
|
data/lib/telegram/bot/version.rb
CHANGED
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.
|
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-
|
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
|