telegram-bot-ruby 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/telegram/bot/api.rb +2 -1
- data/lib/telegram/bot/types.rb +1 -0
- data/lib/telegram/bot/types/dice.rb +10 -0
- data/lib/telegram/bot/types/inline_query_result_gif.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_mpeg4_gif.rb +1 -0
- data/lib/telegram/bot/types/message.rb +2 -0
- data/lib/telegram/bot/types/poll.rb +4 -0
- data/lib/telegram/bot/types/sticker_set.rb +1 -0
- data/lib/telegram/bot/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2649b3b518f533f21f76f5b9002859193931492b3828cbbcd483001cecc80917
|
4
|
+
data.tar.gz: c8266c61deba86552d0bd93062cf6a04bb0e7e4a505d6e6a076de7ec8433cf2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9810e2b705be56be45b1ab731a544f7a242b446ec335429b358b48de4c8d552df7dfe508f62b8d7fe3c3ae7a8a9f2bf8e16bc87c9f2ea4ecdbe36e7c9b167921
|
7
|
+
data.tar.gz: 887d8c8a64ccb52b079ba6ece9f6f060616d45fc4793b4c114310556a201c50e77ecb3ba5c3ee55dcf9635d21630b7e5819b70927ab9fd371ddf3d0a85fbed48
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.13.0
|
4
|
+
|
5
|
+
- Implement [Bot API 4.9](https://core.telegram.org/bots/api-changelog#june-4-2020)
|
6
|
+
- Implement [Bot API 4.8](https://core.telegram.org/bots/api-changelog#april-24-2020)
|
7
|
+
- Implement [Bot API 4.7](https://core.telegram.org/bots/api-changelog#march-30-2020)
|
8
|
+
|
3
9
|
## 0.12.0
|
4
10
|
|
5
11
|
- Implement [Bot API 4.5](https://core.telegram.org/bots/api-changelog#december-31-2019) and [Bot API 4.6](https://core.telegram.org/bots/api-changelog#january-23-2020)
|
data/lib/telegram/bot/api.rb
CHANGED
@@ -18,7 +18,8 @@ module Telegram
|
|
18
18
|
sendInvoice answerShippingQuery answerPreCheckoutQuery
|
19
19
|
sendGame setGameScore getGameHighScores setPassportDataErrors
|
20
20
|
editMessageMedia sendAnimation sendPoll stopPoll setChatPermissions
|
21
|
-
setChatAdministratorCustomTitle
|
21
|
+
setChatAdministratorCustomTitle sendDice getMyCommands setMyCommands
|
22
|
+
setStickerSetThumb
|
22
23
|
).freeze
|
23
24
|
REPLY_MARKUP_TYPES = [
|
24
25
|
Telegram::Bot::Types::ReplyKeyboardMarkup,
|
data/lib/telegram/bot/types.rb
CHANGED
@@ -11,6 +11,7 @@ require 'telegram/bot/types/video'
|
|
11
11
|
require 'telegram/bot/types/voice'
|
12
12
|
require 'telegram/bot/types/video_note'
|
13
13
|
require 'telegram/bot/types/contact'
|
14
|
+
require 'telegram/bot/types/dice'
|
14
15
|
require 'telegram/bot/types/location'
|
15
16
|
require 'telegram/bot/types/chat_photo'
|
16
17
|
require 'telegram/bot/types/chat_permissions'
|
@@ -9,6 +9,7 @@ module Telegram
|
|
9
9
|
attribute :mpeg4_height, Integer
|
10
10
|
attribute :mpeg4_duration, Integer
|
11
11
|
attribute :thumb_url, String
|
12
|
+
attribute :thumb_mime_type, String
|
12
13
|
attribute :title, String
|
13
14
|
attribute :caption, String
|
14
15
|
attribute :reply_markup, InlineKeyboardMarkup
|
@@ -13,6 +13,7 @@ module Telegram
|
|
13
13
|
attribute :forward_sender_name, String
|
14
14
|
attribute :forward_date, Integer
|
15
15
|
attribute :reply_to_message, Message
|
16
|
+
attribute :via_bot, User
|
16
17
|
attribute :edit_date, Integer
|
17
18
|
attribute :media_group_id, String
|
18
19
|
attribute :author_signature, String
|
@@ -30,6 +31,7 @@ module Telegram
|
|
30
31
|
attribute :video_note, VideoNote
|
31
32
|
attribute :caption, String
|
32
33
|
attribute :contact, Contact
|
34
|
+
attribute :dice, Dice
|
33
35
|
attribute :location, Location
|
34
36
|
attribute :venue, Venue
|
35
37
|
attribute :poll, Poll
|
@@ -11,6 +11,10 @@ module Telegram
|
|
11
11
|
attribute :type, String
|
12
12
|
attribute :allows_multiple_answers, Boolean
|
13
13
|
attribute :correct_option_id, Integer
|
14
|
+
attribute :explanation, String
|
15
|
+
attribute :explanation_entities, Array[MessageEntity]
|
16
|
+
attribute :open_period, Integer
|
17
|
+
attribute :close_date, Integer
|
14
18
|
end
|
15
19
|
end
|
16
20
|
end
|
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.13.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: 2020-01
|
11
|
+
date: 2020-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -163,6 +163,7 @@ files:
|
|
163
163
|
- lib/telegram/bot/types/chosen_inline_result.rb
|
164
164
|
- lib/telegram/bot/types/compactable.rb
|
165
165
|
- lib/telegram/bot/types/contact.rb
|
166
|
+
- lib/telegram/bot/types/dice.rb
|
166
167
|
- lib/telegram/bot/types/document.rb
|
167
168
|
- lib/telegram/bot/types/encrypted_credentials.rb
|
168
169
|
- lib/telegram/bot/types/encrypted_passport_element.rb
|