telegram-bot-ruby 0.12.0 → 0.13.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b317a72c70d47e641cfa44e30533dc58ee35d18981188ea2b356ea1e90fb28d5
4
- data.tar.gz: ea5b139c49a72f05cbea49846ddbba946441c21cc691298d25683a2da256730e
3
+ metadata.gz: 2649b3b518f533f21f76f5b9002859193931492b3828cbbcd483001cecc80917
4
+ data.tar.gz: c8266c61deba86552d0bd93062cf6a04bb0e7e4a505d6e6a076de7ec8433cf2f
5
5
  SHA512:
6
- metadata.gz: d1e78d1c39c2171e3fa039f3cedf3c9d0a3b28fde13f8d4d07e927c8c2ca17251bacd3c7ede5009e016399ef45ebbdadc8fa70476756a75955eab76c151168e8
7
- data.tar.gz: 55fed893d8410399b38457bf07ee942dddd41a6d322e2c5bd643c9b001a5297060886b401b138bcc0b4d0e121fdc2492077f322ff5e8c083a5c62eca4254cbba
6
+ metadata.gz: 9810e2b705be56be45b1ab731a544f7a242b446ec335429b358b48de4c8d552df7dfe508f62b8d7fe3c3ae7a8a9f2bf8e16bc87c9f2ea4ecdbe36e7c9b167921
7
+ data.tar.gz: 887d8c8a64ccb52b079ba6ece9f6f060616d45fc4793b4c114310556a201c50e77ecb3ba5c3ee55dcf9635d21630b7e5819b70927ab9fd371ddf3d0a85fbed48
@@ -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)
@@ -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,
@@ -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'
@@ -0,0 +1,10 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class Dice < Base
5
+ attribute :emoji, String
6
+ attribute :value, Integer
7
+ end
8
+ end
9
+ end
10
+ end
@@ -9,6 +9,7 @@ module Telegram
9
9
  attribute :gif_height, Integer
10
10
  attribute :gif_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
@@ -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
@@ -7,6 +7,7 @@ module Telegram
7
7
  attribute :is_animated, Boolean
8
8
  attribute :contains_masks, Boolean
9
9
  attribute :stickers, Array[Sticker]
10
+ attribute :thumb, PhotoSize
10
11
  end
11
12
  end
12
13
  end
@@ -1,5 +1,5 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.12.0'.freeze
3
+ VERSION = '0.13.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.12.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-26 00:00:00.000000000 Z
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