telegram-bot-ruby 0.10.1 → 0.11.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/lib/telegram/bot/api.rb +1 -1
- data/lib/telegram/bot/types.rb +1 -0
- data/lib/telegram/bot/types/chat.rb +1 -0
- data/lib/telegram/bot/types/chat_member.rb +4 -3
- data/lib/telegram/bot/types/chat_permissions.rb +16 -0
- data/lib/telegram/bot/types/sticker.rb +1 -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: d046ea037180601b34ed180c84dba650f0895146fc2da272ed653f3b99e1f69a
|
4
|
+
data.tar.gz: 90640f6115c64d59d2339276943a8f21a33f28a57a59f5ef47b8483e55d50fc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d3f79d0e0dd88dc7728140c343aee1a4e8dfccff98f42d3f4f6aae10a6850fe01a0901534896b4ad9d42241c90ecf3df7bc3f240b6d5a8550fd5c8c727896fa
|
7
|
+
data.tar.gz: dd1f7711db2e9b434a7ad992bdd3b131d3c06e7b48309714c9ec6819b142916e7e1e06e5edd55b79460be7984a6c7bc0b7158529a863f6f4258808bb6e665be1
|
data/CHANGELOG.md
CHANGED
data/lib/telegram/bot/api.rb
CHANGED
@@ -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,
|
data/lib/telegram/bot/types.rb
CHANGED
@@ -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'
|
@@ -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
|
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.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-
|
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
|