telegram-bot-ruby 1.0.0.pre → 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6149f85b75abd46b546aac32fbe88da43e4a414bcaabb6ea05d213681d136460
4
- data.tar.gz: 88ae56d90f1e50883034d5433d3636f2feddc2ec31826466de31e23d61e2edfa
3
+ metadata.gz: 2d6220dcbd9e12cc3ab22702dfbff66853f8cdc83fcf78ed59d63f2740051c29
4
+ data.tar.gz: 1b50037b1b26470cdbbc7624d484ac38403f23eccfc7586788232a391ac0c6bf
5
5
  SHA512:
6
- metadata.gz: c44671c55c2dcc30b15aef63d02351775a69ae2e73ed738e74ea97c469217b17f4e0581e5300dc4280b1dda36ce1ed4d2191ee9d824491935aaa09f1e1fcefbf
7
- data.tar.gz: e7c37c40f7f2dc9d86618a18b8e17e91a75f03632c60a8e075b78ce890d7c093501f3a4366b583b9cd3b85715bd06468cedc1472f5a153565ca132e5c97fe8d1
6
+ metadata.gz: 8fc94125380ac64cd590da0ff841db37e7aaa4ee06d14bceb7a6a2d5a46e1747633479af81adeddfabd5a3006c79d5be331936417fda2aabb20a76de5d4fe211
7
+ data.tar.gz: a4c09c3f00dae5d38f612f78fb70a24c6f2d6443be25da47b9fd45661dc3b9d2c5185e5f73c9aa5a7b71c6c74b57677ca53e9182d42b0396d372d4837a6af0f9
data/Rakefile CHANGED
@@ -54,7 +54,7 @@ task :dump_type_attributes do
54
54
 
55
55
  # Write everything to fixture file
56
56
  File.write(
57
- File.expand_path('spec/fixtures/type_attributes.yml', __dir__),
57
+ File.expand_path('spec/support/type_attributes.yml', __dir__),
58
58
  result.to_yaml
59
59
  )
60
60
  end
@@ -26,7 +26,9 @@ module Telegram
26
26
  approveChatJoinRequest declineChatJoinRequest banChatSenderChat
27
27
  unbanChatSenderChat answerWebAppQuery setChatMenuButton
28
28
  getChatMenuButton setMyDefaultAdministratorRights
29
- getMyDefaultAdministratorRights createInvoiceLink
29
+ getMyDefaultAdministratorRights createInvoiceLink editGeneralForumTopic
30
+ closeGeneralForumTopic reopenGeneralForumTopic hideGeneralForumTopic
31
+ unhideGeneralForumTopic
30
32
  ].freeze
31
33
 
32
34
  attr_reader :token, :url, :environment
@@ -25,6 +25,8 @@ module Telegram
25
25
  attribute? :permissions, ChatPermissions
26
26
  attribute? :slow_mode_delay, Types::Integer
27
27
  attribute? :message_auto_delete_time, Types::Integer
28
+ attribute? :has_aggressive_anti_spam_enabled, Types::Bool
29
+ attribute? :has_hidden_members, Types::Bool
28
30
  attribute? :has_protected_content, Types::Bool
29
31
  attribute? :sticker_set_name, Types::String
30
32
  attribute? :can_set_sticker_set, Types::Bool
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telegram
4
+ module Bot
5
+ module Types
6
+ class ForumTopicEdited < Base
7
+ attribute? :name, Types::String
8
+ attribute? :icon_custom_emoji_id, Types::String
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telegram
4
+ module Bot
5
+ module Types
6
+ class GeneralForumTopicHidden < Base
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telegram
4
+ module Bot
5
+ module Types
6
+ class GeneralForumTopicUnhidden < Base
7
+ end
8
+ end
9
+ end
10
+ end
@@ -13,6 +13,7 @@ module Telegram
13
13
  attribute? :width, Types::Integer
14
14
  attribute? :height, Types::Integer
15
15
  attribute? :duration, Types::Integer
16
+ attribute? :has_spoiler, Types::Bool
16
17
  end
17
18
  end
18
19
  end
@@ -9,6 +9,7 @@ module Telegram
9
9
  attribute? :caption, Types::String
10
10
  attribute? :parse_mode, Types::String
11
11
  attribute? :caption_entities, Types::Array.of(MessageEntity)
12
+ attribute? :has_spoiler, Types::Bool
12
13
  end
13
14
  end
14
15
  end
@@ -14,6 +14,7 @@ module Telegram
14
14
  attribute? :height, Types::Integer
15
15
  attribute? :duration, Types::Integer
16
16
  attribute? :supports_streaming, Types::Bool
17
+ attribute? :has_spoiler, Types::Bool
17
18
  end
18
19
  end
19
20
  end
@@ -36,6 +36,7 @@ module Telegram
36
36
  attribute? :voice, Voice
37
37
  attribute? :caption, Types::String
38
38
  attribute? :caption_entities, Types::Array.of(MessageEntity)
39
+ attribute? :has_media_spoiler, Types::Bool
39
40
  attribute? :contact, Contact
40
41
  attribute? :dice, Dice
41
42
  attribute? :game, Game
@@ -57,11 +58,15 @@ module Telegram
57
58
  attribute? :invoice, Invoice
58
59
  attribute? :successful_payment, SuccessfulPayment
59
60
  attribute? :connected_website, Types::String
61
+ attribute? :write_access_allowed, WriteAccessAllowed
60
62
  attribute? :passport_data, PassportData
61
63
  attribute? :proximity_alert_triggered, ProximityAlertTriggered
62
64
  attribute? :forum_topic_created, ForumTopicCreated
65
+ attribute? :forum_topic_edited, ForumTopicEdited
63
66
  attribute? :forum_topic_closed, ForumTopicClosed
64
67
  attribute? :forum_topic_reopened, ForumTopicReopened
68
+ attribute? :general_forum_topic_hidden, GeneralForumTopicHidden
69
+ attribute? :general_forum_topic_unhidden, GeneralForumTopicUnhidden
65
70
  attribute? :video_chat_scheduled, VideoChatScheduled
66
71
  attribute? :video_chat_started, VideoChatStarted
67
72
  attribute? :video_chat_ended, VideoChatEnded
@@ -5,6 +5,7 @@ module Telegram
5
5
  module Types
6
6
  class ReplyKeyboardMarkup < Base
7
7
  attribute :keyboard, Types::Array.of(Types::Array.of(KeyboardButton))
8
+ attribute? :is_persistent, Types::Bool.default(false)
8
9
  attribute? :resize_keyboard, Types::Bool.default(false)
9
10
  attribute? :one_time_keyboard, Types::Bool.default(false)
10
11
  attribute? :input_field_placeholder, Types::String
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telegram
4
+ module Bot
5
+ module Types
6
+ class WriteAccessAllowed < Base
7
+ end
8
+ end
9
+ end
10
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Telegram
4
4
  module Bot
5
- VERSION = '1.0.0.pre'
5
+ VERSION = '1.0.0.rc1'
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: 1.0.0.pre
4
+ version: 1.0.0.rc1
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-12-02 00:00:00.000000000 Z
11
+ date: 2023-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct
@@ -246,9 +246,12 @@ files:
246
246
  - lib/telegram/bot/types/forum_topic.rb
247
247
  - lib/telegram/bot/types/forum_topic_closed.rb
248
248
  - lib/telegram/bot/types/forum_topic_created.rb
249
+ - lib/telegram/bot/types/forum_topic_edited.rb
249
250
  - lib/telegram/bot/types/forum_topic_reopened.rb
250
251
  - lib/telegram/bot/types/game.rb
251
252
  - lib/telegram/bot/types/game_high_score.rb
253
+ - lib/telegram/bot/types/general_forum_topic_hidden.rb
254
+ - lib/telegram/bot/types/general_forum_topic_unhidden.rb
252
255
  - lib/telegram/bot/types/inline_keyboard_button.rb
253
256
  - lib/telegram/bot/types/inline_keyboard_markup.rb
254
257
  - lib/telegram/bot/types/inline_query.rb
@@ -338,6 +341,7 @@ files:
338
341
  - lib/telegram/bot/types/web_app_data.rb
339
342
  - lib/telegram/bot/types/web_app_info.rb
340
343
  - lib/telegram/bot/types/webhook_info.rb
344
+ - lib/telegram/bot/types/write_access_allowed.rb
341
345
  - lib/telegram/bot/version.rb
342
346
  - telegram-bot-ruby.gemspec
343
347
  homepage: https://github.com/atipugin/telegram-bot
@@ -359,7 +363,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
359
363
  - !ruby/object:Gem::Version
360
364
  version: 1.3.1
361
365
  requirements: []
362
- rubygems_version: 3.3.7
366
+ rubygems_version: 3.4.1
363
367
  signing_key:
364
368
  specification_version: 4
365
369
  summary: Ruby wrapper for Telegram's Bot API