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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 751792d39688d9d392978b98478b1b5c765bc67ec8bad10d7e94102abf3c1c4b
4
- data.tar.gz: 5047aa5738592ae076c73916d2292fc0ddaa76f01d4f2a00d9a0c98ba1bff543
3
+ metadata.gz: ff4330f4093442f82cfae26bfecfb8a740f64f2c5b6b40c21506c04372f60f8c
4
+ data.tar.gz: 7aec5d2067a6b6476c5fa7c123c282ba4dd57c4b491189bcd1287c4946d3c188
5
5
  SHA512:
6
- metadata.gz: 39f033c125684f68e6ddbfc00fc055ccc38c5bc776f280c0fb98e286cb7b067bfa69386984e388600345dd1c6e8a4470d890eb6a00444d963c8f724b67ed69de
7
- data.tar.gz: e729edac77f62854622ea4eff1c6ceeb244ee95afcce3ede8d440a94d864e77cbad4b59fff2cb202b4fd83692939a3535b53aa7f07ae9892f2a920b623168dc0
6
+ metadata.gz: 24ab6cb2d05c0886409c64f6c0cbe34f7d0a4633c0b5433d980a3cbd5702f3bee90b135ef8653cd0c453eb9beae347c69294d286a9107f90a2df85eb573ad01f
7
+ data.tar.gz: 3982421d44ac9b3a9588b1c752f701c95cca1f986dce9d6a03b64a6225790ab415c713b92e6ff88fe285ed227b6bc5fb271b332b749c7a8083298a4daa269fa8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.4.0
4
+
5
+ ### Added
6
+
7
+ - [Bot API 8.3](https://core.telegram.org/bots/api-changelog#february-12-2025) [#323](https://github.com/atipugin/telegram-bot-ruby/pull/323)
8
+
3
9
  ## 2.3.0
4
10
 
5
11
  ### Added
@@ -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
@@ -7,6 +7,7 @@ module Telegram
7
7
  # rubocop:disable Naming/ConstantName
8
8
  TransactionPartner = (
9
9
  TransactionPartnerUser |
10
+ TransactionPartnerChat |
10
11
  TransactionPartnerAffiliateProgram |
11
12
  TransactionPartnerFragment |
12
13
  TransactionPartnerTelegramAds |
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Telegram
4
4
  module Bot
5
- VERSION = '2.3.0'
5
+ VERSION = '2.4.0'
6
6
  end
7
7
  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: 2.3.0
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 00:00:00.000000000 Z
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