telegram-bot-ruby 0.10.1 → 0.11.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
  SHA256:
3
- metadata.gz: a87221e415aba44c089fa62eb3d564c3c8bbe8f316e54e3d43d588a63acaff7b
4
- data.tar.gz: 9684c05063fd9df14820b6b6e38e9de8301588c693ada65cfba718a5a9265f63
3
+ metadata.gz: d046ea037180601b34ed180c84dba650f0895146fc2da272ed653f3b99e1f69a
4
+ data.tar.gz: 90640f6115c64d59d2339276943a8f21a33f28a57a59f5ef47b8483e55d50fc4
5
5
  SHA512:
6
- metadata.gz: e352351f200f9b5d868132ba54d82ceb2842ead6383f2bd65a16ce42a895d6b80347273638f812b90842a88f053d93e727af9bed29162fbd3d76798520309694
7
- data.tar.gz: 659407229bbcfd9e9d30ce5dc202597e6571271883ea0bc83ca7d755092762825e25942d325618f8bcffe75935c703ea2ab5c2a494ec6c1df954508a84197644
6
+ metadata.gz: 9d3f79d0e0dd88dc7728140c343aee1a4e8dfccff98f42d3f4f6aae10a6850fe01a0901534896b4ad9d42241c90ecf3df7bc3f240b6d5a8550fd5c8c727896fa
7
+ data.tar.gz: dd1f7711db2e9b434a7ad992bdd3b131d3c06e7b48309714c9ec6819b142916e7e1e06e5edd55b79460be7984a6c7bc0b7158529a863f6f4258808bb6e665be1
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.0
4
+
5
+ - Implement [Bot API 4.4](https://core.telegram.org/bots/api#july-29-2019)
6
+
3
7
  ## 0.10.1
4
8
 
5
9
  - Fix issue #202 with `Poll` messages and logging
@@ -17,7 +17,7 @@ module Telegram
17
17
  setStickerPositionInSet deleteStickerFromSet answerInlineQuery
18
18
  sendInvoice answerShippingQuery answerPreCheckoutQuery
19
19
  sendGame setGameScore getGameHighScores setPassportDataErrors
20
- editMessageMedia sendAnimation sendPoll stopPoll
20
+ editMessageMedia sendAnimation sendPoll stopPoll setChatPermissions
21
21
  ).freeze
22
22
  REPLY_MARKUP_TYPES = [
23
23
  Telegram::Bot::Types::ReplyKeyboardMarkup,
@@ -13,6 +13,7 @@ require 'telegram/bot/types/video_note'
13
13
  require 'telegram/bot/types/contact'
14
14
  require 'telegram/bot/types/location'
15
15
  require 'telegram/bot/types/chat_photo'
16
+ require 'telegram/bot/types/chat_permissions'
16
17
  require 'telegram/bot/types/chat'
17
18
  require 'telegram/bot/types/message_entity'
18
19
  require 'telegram/bot/types/venue'
@@ -16,6 +16,7 @@ module Telegram
16
16
  attribute :description, String
17
17
  attribute :invite_link, String
18
18
  attribute :pinned_message, 'Telegram::Bot::Types::Message'
19
+ attribute :permissions, ChatPermissions
19
20
  end
20
21
  end
21
22
  end
@@ -6,17 +6,18 @@ module Telegram
6
6
  attribute :status, String
7
7
  attribute :until_date, Integer
8
8
  attribute :can_be_edited, Boolean
9
- attribute :can_change_info, Boolean
10
9
  attribute :can_post_messages, Boolean
11
10
  attribute :can_edit_messages, Boolean
12
11
  attribute :can_delete_messages, Boolean
13
- attribute :can_invite_users, Boolean
14
12
  attribute :can_restrict_members, Boolean
15
- attribute :can_pin_messages, Boolean
16
13
  attribute :can_promote_members, Boolean
14
+ attribute :can_change_info, Boolean
15
+ attribute :can_invite_users, Boolean
16
+ attribute :can_pin_messages, Boolean
17
17
  attribute :is_member, Boolean
18
18
  attribute :can_send_messages, Boolean
19
19
  attribute :can_send_media_messages, Boolean
20
+ attribute :can_send_polls, Boolean
20
21
  attribute :can_send_other_messages, Boolean
21
22
  attribute :can_add_web_page_previews, Boolean
22
23
  end
@@ -0,0 +1,16 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class ChatPermissions < Base
5
+ attribute :can_send_messages, Boolean
6
+ attribute :can_send_media_messages, Boolean
7
+ attribute :can_send_polls, Boolean
8
+ attribute :can_send_other_messages, Boolean
9
+ attribute :can_add_web_page_previews, Boolean
10
+ attribute :can_change_info, Boolean
11
+ attribute :can_invite_users, Boolean
12
+ attribute :can_pin_messages, Boolean
13
+ end
14
+ end
15
+ end
16
+ end
@@ -5,6 +5,7 @@ module Telegram
5
5
  attribute :file_id, String
6
6
  attribute :width, Integer
7
7
  attribute :height, Integer
8
+ attribute :is_animated, Boolean
8
9
  attribute :thumb, PhotoSize
9
10
  attribute :emoji, String
10
11
  attribute :set_name, String
@@ -4,6 +4,7 @@ module Telegram
4
4
  class StickerSet < Base
5
5
  attribute :name, String
6
6
  attribute :title, String
7
+ attribute :is_animated, Boolean
7
8
  attribute :contains_masks, Boolean
8
9
  attribute :stickers, Array[Sticker]
9
10
  end
@@ -1,5 +1,5 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.10.1'.freeze
3
+ VERSION = '0.11.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.10.1
4
+ version: 0.11.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: 2019-06-03 00:00:00.000000000 Z
11
+ date: 2019-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -158,6 +158,7 @@ files:
158
158
  - lib/telegram/bot/types/callback_query.rb
159
159
  - lib/telegram/bot/types/chat.rb
160
160
  - lib/telegram/bot/types/chat_member.rb
161
+ - lib/telegram/bot/types/chat_permissions.rb
161
162
  - lib/telegram/bot/types/chat_photo.rb
162
163
  - lib/telegram/bot/types/chosen_inline_result.rb
163
164
  - lib/telegram/bot/types/compactable.rb