telegram-bot-ruby 2.3.0 → 2.4.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 +6 -0
- data/lib/telegram/bot/types/chat_full_info.rb +1 -0
- data/lib/telegram/bot/types/input_media_video.rb +2 -0
- data/lib/telegram/bot/types/input_paid_media_video.rb +2 -0
- data/lib/telegram/bot/types/transaction_partner.rb +1 -0
- data/lib/telegram/bot/types/transaction_partner_chat.rb +13 -0
- data/lib/telegram/bot/types/video.rb +2 -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: ff4330f4093442f82cfae26bfecfb8a740f64f2c5b6b40c21506c04372f60f8c
|
4
|
+
data.tar.gz: 7aec5d2067a6b6476c5fa7c123c282ba4dd57c4b491189bcd1287c4946d3c188
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24ab6cb2d05c0886409c64f6c0cbe34f7d0a4633c0b5433d980a3cbd5702f3bee90b135ef8653cd0c453eb9beae347c69294d286a9107f90a2df85eb573ad01f
|
7
|
+
data.tar.gz: 3982421d44ac9b3a9588b1c752f701c95cca1f986dce9d6a03b64a6225790ab415c713b92e6ff88fe285ed227b6bc5fb271b332b749c7a8083298a4daa269fa8
|
data/CHANGELOG.md
CHANGED
@@ -35,6 +35,7 @@ module Telegram
|
|
35
35
|
attribute? :invite_link, Types::String
|
36
36
|
attribute? :pinned_message, Message
|
37
37
|
attribute? :permissions, ChatPermissions
|
38
|
+
attribute? :can_send_gift, Types::True
|
38
39
|
attribute? :can_send_paid_media, Types::True
|
39
40
|
attribute? :slow_mode_delay, Types::Integer
|
40
41
|
attribute? :unrestrict_boost_count, Types::Integer
|
@@ -7,6 +7,8 @@ module Telegram
|
|
7
7
|
attribute :type, Types::String.constrained(eql: 'video').default('video')
|
8
8
|
attribute :media, Types::String
|
9
9
|
attribute? :thumbnail, Types::String
|
10
|
+
attribute? :cover, Types::String
|
11
|
+
attribute? :start_timestamp, Types::Integer
|
10
12
|
attribute? :caption, Types::String
|
11
13
|
attribute? :parse_mode, Types::String
|
12
14
|
attribute? :caption_entities, Types::Array.of(MessageEntity)
|
@@ -7,6 +7,8 @@ module Telegram
|
|
7
7
|
attribute :type, Types::String.constrained(eql: 'video').default('video')
|
8
8
|
attribute :media, Types::String
|
9
9
|
attribute? :thumbnail, Types::String
|
10
|
+
attribute? :cover, Types::String
|
11
|
+
attribute? :start_timestamp, Types::Integer
|
10
12
|
attribute? :width, Types::Integer
|
11
13
|
attribute? :height, Types::Integer
|
12
14
|
attribute? :duration, Types::Integer
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Telegram
|
4
|
+
module Bot
|
5
|
+
module Types
|
6
|
+
class TransactionPartnerChat < Base
|
7
|
+
attribute :type, Types::String.constrained(eql: 'chat').default('chat')
|
8
|
+
attribute :chat, Chat
|
9
|
+
attribute? :gift, Gift
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -10,6 +10,8 @@ module Telegram
|
|
10
10
|
attribute :height, Types::Integer
|
11
11
|
attribute :duration, Types::Integer
|
12
12
|
attribute? :thumbnail, PhotoSize
|
13
|
+
attribute? :cover, Types::Array.of(PhotoSize)
|
14
|
+
attribute? :start_timestamp, Types::Integer
|
13
15
|
attribute? :file_name, Types::String
|
14
16
|
attribute? :mime_type, Types::String
|
15
17
|
attribute? :file_size, Types::Integer
|
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: 2.
|
4
|
+
version: 2.4.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: 2025-02-
|
11
|
+
date: 2025-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
@@ -309,6 +309,7 @@ files:
|
|
309
309
|
- lib/telegram/bot/types/text_quote.rb
|
310
310
|
- lib/telegram/bot/types/transaction_partner.rb
|
311
311
|
- lib/telegram/bot/types/transaction_partner_affiliate_program.rb
|
312
|
+
- lib/telegram/bot/types/transaction_partner_chat.rb
|
312
313
|
- lib/telegram/bot/types/transaction_partner_fragment.rb
|
313
314
|
- lib/telegram/bot/types/transaction_partner_other.rb
|
314
315
|
- lib/telegram/bot/types/transaction_partner_telegram_ads.rb
|