telegram-bot-ruby 1.0.0.pre → 1.0.0.rc1
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/Rakefile +1 -1
- data/lib/telegram/bot/api.rb +3 -1
- data/lib/telegram/bot/types/chat.rb +2 -0
- data/lib/telegram/bot/types/forum_topic_edited.rb +12 -0
- data/lib/telegram/bot/types/general_forum_topic_hidden.rb +10 -0
- data/lib/telegram/bot/types/general_forum_topic_unhidden.rb +10 -0
- data/lib/telegram/bot/types/input_media_animation.rb +1 -0
- data/lib/telegram/bot/types/input_media_photo.rb +1 -0
- data/lib/telegram/bot/types/input_media_video.rb +1 -0
- data/lib/telegram/bot/types/message.rb +5 -0
- data/lib/telegram/bot/types/reply_keyboard_markup.rb +1 -0
- data/lib/telegram/bot/types/write_access_allowed.rb +10 -0
- data/lib/telegram/bot/version.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d6220dcbd9e12cc3ab22702dfbff66853f8cdc83fcf78ed59d63f2740051c29
|
4
|
+
data.tar.gz: 1b50037b1b26470cdbbc7624d484ac38403f23eccfc7586788232a391ac0c6bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fc94125380ac64cd590da0ff841db37e7aaa4ee06d14bceb7a6a2d5a46e1747633479af81adeddfabd5a3006c79d5be331936417fda2aabb20a76de5d4fe211
|
7
|
+
data.tar.gz: a4c09c3f00dae5d38f612f78fb70a24c6f2d6443be25da47b9fd45661dc3b9d2c5185e5f73c9aa5a7b71c6c74b57677ca53e9182d42b0396d372d4837a6af0f9
|
data/Rakefile
CHANGED
data/lib/telegram/bot/api.rb
CHANGED
@@ -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
|
@@ -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
|
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: 1.0.0.
|
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:
|
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.
|
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
|