telegram-bot-ruby 0.8.2 → 0.8.3

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: 802491c677ae1e2a83a5b63a4bae63d575d6a035
4
- data.tar.gz: 1a90c7021d2fe0db8509250ea4e211022316775a
3
+ metadata.gz: c6f6cfeeb86c2fef83ec55beb9de0d3f72729e42
4
+ data.tar.gz: 6be069ef2d2df8ff9ca36248d26353311c5a29c3
5
5
  SHA512:
6
- metadata.gz: 6be308d1dcda39f51981f885292d66a7f3cbf953620c932f490f42c014baa6aea476a00a202fe8fa9ca91a45ccb7afa79961f1615a092a00d02cb08aba2c4e8c
7
- data.tar.gz: 981fa178e77adc253ee3c5dbe0cadc430f5413dd563aa2c49e4e5ed50567840785edc6c7aa3577c9b44d4849e55279cd2cdc6f5947d5c2ba43a9acf7108262ed
6
+ metadata.gz: b51532587af460e2fbe1a04b4014b6583ebcb6841e7abe457ecd1e575550681ddaa8ad0d221ee852c9bed62b5064641ac7e2a78906285ab01daaf38e083fa769
7
+ data.tar.gz: fa0df882d0c9c61726d8eccfb6cda2b746f7634ab50ec451ce34aeaf86ced773149c9bb69d91c3e3b8e73d421589d673edbfd0bb135fae21732f95e959e937ba
data/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.3
4
+
5
+ - Implement [Bot API 3.2](https://core.telegram.org/bots/api#july-21-2017) (thx [@ivanovaleksey][])
6
+
3
7
  ## 0.8.2
4
8
 
5
- - Implement [Bot API 3.1](https://core.telegram.org/bots/api#june-30-2017) (thx [@ivanovaleksey](https://github.com/ivanovaleksey))
9
+ - Implement [Bot API 3.1](https://core.telegram.org/bots/api#june-30-2017) (thx [@ivanovaleksey][])
6
10
 
7
11
  ## 0.8.1
8
12
 
@@ -10,7 +14,7 @@
10
14
 
11
15
  ## 0.8.0
12
16
 
13
- - Implement [Bot API 3.0](https://core.telegram.org/bots/api#may-18-2017) (thx [@ivanovaleksey](https://github.com/ivanovaleksey))
17
+ - Implement [Bot API 3.0](https://core.telegram.org/bots/api#may-18-2017) (thx [@ivanovaleksey][])
14
18
 
15
19
  ## 0.7.2
16
20
 
@@ -22,7 +26,7 @@
22
26
 
23
27
  ## 0.7.0
24
28
 
25
- - Implement [Bot API 2.3](https://core.telegram.org/bots/api-changelog#november-21-2016) (thx [@ivanovaleksey](https://github.com/ivanovaleksey))
29
+ - Implement [Bot API 2.3](https://core.telegram.org/bots/api-changelog#november-21-2016) (thx [@ivanovaleksey][])
26
30
 
27
31
  ## 0.6.0
28
32
 
@@ -44,3 +48,5 @@
44
48
  ## 0.4.2
45
49
 
46
50
  - Let `Client#logger` be overwritten later (use `attr_accessor` instead of `attr_reader`)
51
+
52
+ [@ivanovaleksey]: https://github.com/ivanovaleksey
@@ -3,14 +3,16 @@ module Telegram
3
3
  class Api
4
4
  ENDPOINTS = %w(
5
5
  getUpdates setWebhook deleteWebhook getWebhookInfo getMe sendMessage
6
- forwardMessage sendPhoto sendAudio sendDocument sendSticker sendVideo
7
- sendVoice sendVideoNote sendLocation sendVenue sendContact
8
- sendChatAction getUserProfilePhotos getFile kickChatMember
9
- unbanChatMember restrictChatMember promoteChatMember leaveChat getChat
6
+ forwardMessage sendPhoto sendAudio sendDocument sendVideo sendVoice
7
+ sendVideoNote sendLocation sendVenue sendContact sendChatAction
8
+ getUserProfilePhotos getFile kickChatMember unbanChatMember
9
+ restrictChatMember promoteChatMember leaveChat getChat
10
10
  getChatAdministrators exportChatInviteLink setChatPhoto deleteChatPhoto
11
11
  setChatTitle setChatDescription pinChatMessage unpinChatMessage
12
12
  getChatMembersCount getChatMember answerCallbackQuery editMessageText
13
13
  editMessageCaption editMessageReplyMarkup deleteMessage
14
+ sendSticker getStickerSet uploadStickerFile createNewStickerSet
15
+ addStickerToSet setStickerPositionInSet deleteStickerFromSet
14
16
  answerInlineQuery sendInvoice answerShippingQuery answerPreCheckoutQuery
15
17
  sendGame setGameScore getGameHighScores
16
18
  ).freeze
@@ -3,7 +3,9 @@ require 'telegram/bot/types/user'
3
3
  require 'telegram/bot/types/audio'
4
4
  require 'telegram/bot/types/photo_size'
5
5
  require 'telegram/bot/types/document'
6
+ require 'telegram/bot/types/mask_position'
6
7
  require 'telegram/bot/types/sticker'
8
+ require 'telegram/bot/types/sticker_set'
7
9
  require 'telegram/bot/types/video'
8
10
  require 'telegram/bot/types/voice'
9
11
  require 'telegram/bot/types/video_note'
@@ -0,0 +1,12 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class MaskPosition < Base
5
+ attribute :point, String
6
+ attribute :x_shift, Float
7
+ attribute :y_shift, Float
8
+ attribute :zoom, Float
9
+ end
10
+ end
11
+ end
12
+ end
@@ -7,6 +7,8 @@ module Telegram
7
7
  attribute :height, Integer
8
8
  attribute :thumb, PhotoSize
9
9
  attribute :emoji, String
10
+ attribute :set_name, String
11
+ attribute :mask_position, MaskPosition
10
12
  attribute :file_size, Integer
11
13
  end
12
14
  end
@@ -0,0 +1,12 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class StickerSet < Base
5
+ attribute :name, String
6
+ attribute :title, String
7
+ attribute :contains_masks, Boolean
8
+ attribute :stickers, Array[Sticker]
9
+ end
10
+ end
11
+ end
12
+ end
@@ -1,5 +1,5 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.8.2'.freeze
3
+ VERSION = '0.8.3'.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.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tipugin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-18 00:00:00.000000000 Z
11
+ date: 2017-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -199,6 +199,7 @@ files:
199
199
  - lib/telegram/bot/types/keyboard_button.rb
200
200
  - lib/telegram/bot/types/labeled_price.rb
201
201
  - lib/telegram/bot/types/location.rb
202
+ - lib/telegram/bot/types/mask_position.rb
202
203
  - lib/telegram/bot/types/message.rb
203
204
  - lib/telegram/bot/types/message_entity.rb
204
205
  - lib/telegram/bot/types/order_info.rb
@@ -210,6 +211,7 @@ files:
210
211
  - lib/telegram/bot/types/shipping_option.rb
211
212
  - lib/telegram/bot/types/shipping_query.rb
212
213
  - lib/telegram/bot/types/sticker.rb
214
+ - lib/telegram/bot/types/sticker_set.rb
213
215
  - lib/telegram/bot/types/successful_payment.rb
214
216
  - lib/telegram/bot/types/update.rb
215
217
  - lib/telegram/bot/types/user.rb