telegram-bot-ruby 0.20.0 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/telegram/bot/api.rb +1 -1
- data/lib/telegram/bot/types/chat.rb +3 -1
- data/lib/telegram/bot/types/message_entity.rb +1 -0
- data/lib/telegram/bot/types/sticker.rb +3 -0
- data/lib/telegram/bot/types/sticker_set.rb +1 -0
- data/lib/telegram/bot/types/user.rb +2 -0
- data/lib/telegram/bot/types.rb +1 -1
- data/lib/telegram/bot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfb8f0ed318a78b59914b9b7a327e56d8b013e09d1610f3996b8175e5081a757
|
4
|
+
data.tar.gz: c0de4d9c1517be81dd6d5f6c6b066b20966b071739018285d4b57a7669ea0775
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47807a0830d8d9b0fe2911ef74f412c7c5b5a001ecd8ccd0702b2913f0256f773cf79e36c2f701c3cd1471162e8d28824dff0ce7a53bef5c33227e95964bb249
|
7
|
+
data.tar.gz: 93ea12e21f9a8157d4424ef87f52da5175bffd0e0c148742400115b864781554e93829fc82f5780007ed16a8768cb09fd9b32ce441a610e097660be110f3b2fd
|
data/CHANGELOG.md
CHANGED
data/lib/telegram/bot/api.rb
CHANGED
@@ -26,7 +26,7 @@ module Telegram
|
|
26
26
|
approveChatJoinRequest declineChatJoinRequest banChatSenderChat
|
27
27
|
unbanChatSenderChat answerWebAppQuery setChatMenuButton
|
28
28
|
getChatMenuButton setMyDefaultAdministratorRights
|
29
|
-
getMyDefaultAdministratorRights
|
29
|
+
getMyDefaultAdministratorRights createInvoiceLink
|
30
30
|
].freeze
|
31
31
|
|
32
32
|
attr_reader :token, :url
|
@@ -17,6 +17,9 @@ module Telegram
|
|
17
17
|
attribute :photo, ChatPhoto
|
18
18
|
attribute :bio, String
|
19
19
|
attribute :has_private_forwards, Boolean
|
20
|
+
attribute :has_restricted_voice_and_video_messages, Boolean
|
21
|
+
attribute :join_to_send_messages, Boolean
|
22
|
+
attribute :join_by_request, Boolean
|
20
23
|
attribute :description, String
|
21
24
|
attribute :invite_link, String
|
22
25
|
attribute :pinned_message, 'Telegram::Bot::Types::Message'
|
@@ -26,7 +29,6 @@ module Telegram
|
|
26
29
|
attribute :has_protected_content, Boolean
|
27
30
|
attribute :sticker_set_name, String
|
28
31
|
attribute :can_set_sticker_set, Boolean
|
29
|
-
attribute :all_members_are_administrators, Boolean
|
30
32
|
attribute :linked_chat_id, Integer
|
31
33
|
attribute :location, ChatLocation
|
32
34
|
end
|
@@ -6,6 +6,7 @@ module Telegram
|
|
6
6
|
class Sticker < Base
|
7
7
|
attribute :file_id, String
|
8
8
|
attribute :file_unique_id, String
|
9
|
+
attribute :type, String
|
9
10
|
attribute :width, Integer
|
10
11
|
attribute :height, Integer
|
11
12
|
attribute :is_animated, Boolean
|
@@ -13,7 +14,9 @@ module Telegram
|
|
13
14
|
attribute :thumb, PhotoSize
|
14
15
|
attribute :emoji, String
|
15
16
|
attribute :set_name, String
|
17
|
+
attribute :premium_animation, File
|
16
18
|
attribute :mask_position, MaskPosition
|
19
|
+
attribute :custom_emoji_id, String
|
17
20
|
attribute :file_size, Integer
|
18
21
|
end
|
19
22
|
end
|
@@ -10,6 +10,8 @@ module Telegram
|
|
10
10
|
attribute :last_name, String
|
11
11
|
attribute :username, String
|
12
12
|
attribute :language_code, String
|
13
|
+
attribute :is_premium, Boolean
|
14
|
+
attribute :added_to_attachment_menu, Boolean
|
13
15
|
attribute :can_join_groups, Boolean
|
14
16
|
attribute :can_read_all_group_messages, Boolean
|
15
17
|
attribute :supports_inline_queries, Boolean
|
data/lib/telegram/bot/types.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require 'telegram/bot/types/compactable'
|
4
4
|
require 'telegram/bot/types/pattern_matching'
|
5
5
|
require 'telegram/bot/types/base'
|
6
|
+
require 'telegram/bot/types/file'
|
6
7
|
require 'telegram/bot/types/user'
|
7
8
|
require 'telegram/bot/types/photo_size'
|
8
9
|
require 'telegram/bot/types/audio'
|
@@ -95,7 +96,6 @@ require 'telegram/bot/types/keyboard_button'
|
|
95
96
|
require 'telegram/bot/types/reply_keyboard_markup'
|
96
97
|
require 'telegram/bot/types/reply_keyboard_remove'
|
97
98
|
require 'telegram/bot/types/force_reply'
|
98
|
-
require 'telegram/bot/types/file'
|
99
99
|
require 'telegram/bot/types/shipping_option'
|
100
100
|
require 'telegram/bot/types/chat_invite_link'
|
101
101
|
require 'telegram/bot/types/chat_member'
|
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.21.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tipugin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-inflector
|