telegram-bot-ruby 2.2.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: c61ae37c189075bf4c60779805815a0eab30f6e06869338741657599a390641c
4
- data.tar.gz: ebd700271cbc71e7a1e609936e5e6b01bd37eb6190b90266fe9490be77b62138
3
+ metadata.gz: ff4330f4093442f82cfae26bfecfb8a740f64f2c5b6b40c21506c04372f60f8c
4
+ data.tar.gz: 7aec5d2067a6b6476c5fa7c123c282ba4dd57c4b491189bcd1287c4946d3c188
5
5
  SHA512:
6
- metadata.gz: 1bc5e6853d97f71863ce7f9010f7a6ee948c37adcaa2f0eeb100f1915d73736c4631c1f6c2d36ec189378f10a6a09186bd4b535dc37b267d8d6f324efbbd8d26
7
- data.tar.gz: 9e196f0e2709bd705324777f1bd47e0301b407be3a0567ac23f181225d9d1b6e038e787cff2fbac4e5a408446efcd38856d45990d955f76b32d50ff1a606d90f
6
+ metadata.gz: 24ab6cb2d05c0886409c64f6c0cbe34f7d0a4633c0b5433d980a3cbd5702f3bee90b135ef8653cd0c453eb9beae347c69294d286a9107f90a2df85eb573ad01f
7
+ data.tar.gz: 3982421d44ac9b3a9588b1c752f701c95cca1f986dce9d6a03b64a6225790ab415c713b92e6ff88fe285ed227b6bc5fb271b332b749c7a8083298a4daa269fa8
data/CHANGELOG.md CHANGED
@@ -1,22 +1,34 @@
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
+
9
+ ## 2.3.0
10
+
11
+ ### Added
12
+
13
+ - [Bot API 8.2](https://core.telegram.org/bots/api#january-1-2025) [#322](https://github.com/atipugin/telegram-bot-ruby/pull/322)
14
+
3
15
  ## 2.2.0
4
16
 
5
17
  ### Added
6
18
 
7
- - [Bot API 8.1](https://core.telegram.org/bots/api-changelog#october-31-2024) [#319](https://github.com/atipugin/telegram-bot-ruby/pull/319)
19
+ - [Bot API 8.1](https://core.telegram.org/bots/api-changelog#december-4-2024) [#319](https://github.com/atipugin/telegram-bot-ruby/pull/319)
8
20
 
9
21
  ## 2.1.0
10
22
 
11
23
  ### Added
12
24
 
13
- - [Bot API 8.0](https://core.telegram.org/bots/api#november-17-2024) (thx [@seorgiy](https://github.com/seorgiy))
25
+ - [Bot API 8.0](https://core.telegram.org/bots/api-changelog#november-17-2024) (thx [@seorgiy](https://github.com/seorgiy))
14
26
 
15
27
  ## 2.0.0
16
28
 
17
29
  ### Added
18
30
 
19
- - [Bot API 7.0](https://core.telegram.org/bots/api#december-29-2023)
31
+ - [Bot API 7.0](https://core.telegram.org/bots/api-changelog#december-29-2023)
20
32
 
21
33
  ### Changed
22
34
 
@@ -26,8 +38,8 @@
26
38
 
27
39
  - Replace [virtus](https://github.com/solnic/virtus) with [dry-struct](https://github.com/dry-rb/dry-struct)
28
40
  - Use [zeitwerk](https://github.com/fxn/zeitwerk) for code loading
29
- - Implement [Bot API 6.4](https://core.telegram.org/bots/api#december-30-2022)
30
- - Implement [Bot API 6.5](https://core.telegram.org/bots/api#february-3-2023)
41
+ - Implement [Bot API 6.4](https://core.telegram.org/bots/api-changelog#december-30-2022)
42
+ - Implement [Bot API 6.5](https://core.telegram.org/bots/api-changelog#february-3-2023)
31
43
 
32
44
  ## 0.23.0
33
45
 
@@ -38,8 +50,8 @@
38
50
 
39
51
  ## 0.21.0
40
52
 
41
- - Implement [Bot API 6.1](https://core.telegram.org/bots/api#june-20-2022)
42
- - Implement [Bot API 6.2](https://core.telegram.org/bots/api#august-12-2022)
53
+ - Implement [Bot API 6.1](https://core.telegram.org/bots/api-changelog#june-20-2022)
54
+ - Implement [Bot API 6.2](https://core.telegram.org/bots/api-changelog#august-12-2022)
43
55
 
44
56
  ## 0.20.0
45
57
 
@@ -70,11 +82,11 @@
70
82
 
71
83
  ## 0.15.0
72
84
 
73
- - Implement [Bot API 5.1](https://core.telegram.org/bots/api#march-9-2021)
85
+ - Implement [Bot API 5.1](https://core.telegram.org/bots/api-changelog#march-9-2021)
74
86
 
75
87
  ## 0.14.0
76
88
 
77
- - Implement [Bot API 5.0](https://core.telegram.org/bots/api#november-4-2020)
89
+ - Implement [Bot API 5.0](https://core.telegram.org/bots/api-changelog#november-4-2020)
78
90
 
79
91
  ## 0.13.0
80
92
 
@@ -88,7 +100,7 @@
88
100
 
89
101
  ## 0.11.0
90
102
 
91
- - Implement [Bot API 4.4](https://core.telegram.org/bots/api#july-29-2019)
103
+ - Implement [Bot API 4.4](https://core.telegram.org/bots/api-changelog#july-29-2019)
92
104
 
93
105
  ## 0.10.1
94
106
 
@@ -96,7 +108,7 @@
96
108
 
97
109
  ## 0.10.0
98
110
 
99
- - Implement [Bot API 4.3](https://core.telegram.org/bots/api#may-31-2019)
111
+ - Implement [Bot API 4.3](https://core.telegram.org/bots/api-changelog#may-31-2019)
100
112
 
101
113
  ## 0.9.1
102
114
 
@@ -115,23 +127,23 @@
115
127
 
116
128
  ## 0.8.6
117
129
 
118
- - Implement [Bot API 3.5](https://core.telegram.org/bots/api#november-17-2017)
130
+ - Implement [Bot API 3.5](https://core.telegram.org/bots/api-changelog#november-17-2017)
119
131
 
120
132
  ## 0.8.5
121
133
 
122
- - Implement [Bot API 3.4](https://core.telegram.org/bots/api#october-11-2017) (thx [@ivanovaleksey][])
134
+ - Implement [Bot API 3.4](https://core.telegram.org/bots/api-changelog#october-11-2017) (thx [@ivanovaleksey][])
123
135
 
124
136
  ## 0.8.4
125
137
 
126
- - Implement [Bot API 3.3](https://core.telegram.org/bots/api#august-23-2017) (thx [@ivanovaleksey][])
138
+ - Implement [Bot API 3.3](https://core.telegram.org/bots/api-changelog#august-23-2017) (thx [@ivanovaleksey][])
127
139
 
128
140
  ## 0.8.3
129
141
 
130
- - Implement [Bot API 3.2](https://core.telegram.org/bots/api#july-21-2017) (thx [@ivanovaleksey][])
142
+ - Implement [Bot API 3.2](https://core.telegram.org/bots/api-changelog#july-21-2017) (thx [@ivanovaleksey][])
131
143
 
132
144
  ## 0.8.2
133
145
 
134
- - Implement [Bot API 3.1](https://core.telegram.org/bots/api#june-30-2017) (thx [@ivanovaleksey][])
146
+ - Implement [Bot API 3.1](https://core.telegram.org/bots/api-changelog#june-30-2017) (thx [@ivanovaleksey][])
135
147
 
136
148
  ## 0.8.1
137
149
 
@@ -139,7 +151,7 @@
139
151
 
140
152
  ## 0.8.0
141
153
 
142
- - Implement [Bot API 3.0](https://core.telegram.org/bots/api#may-18-2017) (thx [@ivanovaleksey][])
154
+ - Implement [Bot API 3.0](https://core.telegram.org/bots/api-changelog#may-18-2017) (thx [@ivanovaleksey][])
143
155
 
144
156
  ## 0.7.2
145
157
 
@@ -117,7 +117,11 @@ module Telegram
117
117
  'sendGift' => Types::Bool,
118
118
  'savePreparedInlineMessage' => Types::PreparedInlineMessage,
119
119
  'editUserStarSubscription' => Types::Bool,
120
- 'setUserEmojiStatus' => Types::Bool
120
+ 'setUserEmojiStatus' => Types::Bool,
121
+ 'verifyUser' => Types::Bool,
122
+ 'verifyChat' => Types::Bool,
123
+ 'removeUserVerification' => Types::Bool,
124
+ 'removeChatVerification' => Types::Bool
121
125
  }.freeze
122
126
  end
123
127
  end
@@ -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,7 @@ module Telegram
7
7
  attribute :id, Types::String
8
8
  attribute :sticker, Sticker
9
9
  attribute :star_count, Types::Integer
10
+ attribute? :upgrade_star_count, Types::Integer
10
11
  attribute? :total_count, Types::Integer
11
12
  attribute? :remaining_count, Types::Integer
12
13
  end
@@ -10,7 +10,6 @@ module Telegram
10
10
  attribute :input_message_content, InputMessageContent
11
11
  attribute? :reply_markup, InlineKeyboardMarkup
12
12
  attribute? :url, Types::String
13
- attribute? :hide_url, Types::Bool
14
13
  attribute? :description, Types::String
15
14
  attribute? :thumbnail_url, Types::String
16
15
  attribute? :thumbnail_width, 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.2.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.2.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: 2024-12-05 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