telegram-bot-ruby 0.9.1 → 0.10.0

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: b2cb7116b2990f0bccbc7fadb1e34106a1e2ffe5fe319f79ee7907f01f4ee918
4
- data.tar.gz: 46965b28805fecefee9b2f8beaa8b8d5bca6f539ef3bdd390e5bd5d31b146ced
3
+ metadata.gz: 10b08d6e4ab8db2fcd52c26a0bc871a6b6556c66a679975b0cb0c2aff2ec3ec0
4
+ data.tar.gz: 71a79a882580cafbfbfff67a1452056d7c408bf1f8c0b63c10e3059699bd2757
5
5
  SHA512:
6
- metadata.gz: e73e3e3690a75a9de50e87af8effa1fd53a95b281f325fa230bd09d9e4f8ac9129aa9811064573469fdc6e15de1000f0b3554af8af8d0f1ab4a17d94edb45e6c
7
- data.tar.gz: 79699f7dbda65732c6b940a54e6d39d0ea880481a7614e3d786f50902cab9ef67955a094420db9f300237972ed752166be6b0dd4c2d5c6683dd4c2c297e7b502
6
+ metadata.gz: 7e8254cb8c082dc59d841245f96de36bc970b28576a484f30382b3098852429442b766c952732485f81cf8f5418d6a3297b2264a7cbafba79712b3d56932df87
7
+ data.tar.gz: db7a9f37980757f080a944265ea14f25ec38cbb062df350aad4698ee173893ce95a493bbcd2e74db391f3f08a6b013393b85b2e9f6e46247785ec110df2f5308
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.0
4
+
5
+ - Implement [Bot API 4.3](https://core.telegram.org/bots/api#may-31-2019)
6
+
3
7
  ## 0.9.1
4
8
 
5
9
  - Allow to configure API URL (thx [@markfrst][])
@@ -26,12 +26,25 @@ require 'telegram/bot/types/order_info'
26
26
  require 'telegram/bot/types/successful_payment'
27
27
  require 'telegram/bot/types/poll_option'
28
28
  require 'telegram/bot/types/poll'
29
- require 'telegram/bot/types/message'
29
+ require 'telegram/bot/types/passport_file'
30
+ require 'telegram/bot/types/encrypted_passport_element'
31
+ require 'telegram/bot/types/encrypted_credentials'
32
+ require 'telegram/bot/types/passport_data'
33
+ require 'telegram/bot/types/passport_element_error_data_field'
34
+ require 'telegram/bot/types/passport_element_error_front_side'
35
+ require 'telegram/bot/types/passport_element_error_reverse_side'
36
+ require 'telegram/bot/types/passport_element_error_selfie'
37
+ require 'telegram/bot/types/passport_element_error_file'
38
+ require 'telegram/bot/types/passport_element_error_files'
39
+ require 'telegram/bot/types/passport_element_error_translation_file'
40
+ require 'telegram/bot/types/passport_element_error_translation_files'
41
+ require 'telegram/bot/types/passport_element_error_unspecified'
30
42
  require 'telegram/bot/types/input_message_content'
31
43
  require 'telegram/bot/types/input_contact_message_content'
32
44
  require 'telegram/bot/types/input_location_message_content'
33
45
  require 'telegram/bot/types/input_text_message_content'
34
46
  require 'telegram/bot/types/input_venue_message_content'
47
+ require 'telegram/bot/types/login_url'
35
48
  require 'telegram/bot/types/inline_keyboard_button'
36
49
  require 'telegram/bot/types/inline_keyboard_markup'
37
50
  require 'telegram/bot/types/inline_query'
@@ -56,6 +69,7 @@ require 'telegram/bot/types/inline_query_result_venue'
56
69
  require 'telegram/bot/types/inline_query_result_video'
57
70
  require 'telegram/bot/types/inline_query_result_voice'
58
71
  require 'telegram/bot/types/chosen_inline_result'
72
+ require 'telegram/bot/types/message'
59
73
  require 'telegram/bot/types/callback_query'
60
74
  require 'telegram/bot/types/shipping_query'
61
75
  require 'telegram/bot/types/pre_checkout_query'
@@ -71,19 +85,6 @@ require 'telegram/bot/types/chat_member'
71
85
  require 'telegram/bot/types/user_profile_photos'
72
86
  require 'telegram/bot/types/input_media_photo'
73
87
  require 'telegram/bot/types/input_media_video'
74
- require 'telegram/bot/types/passport_file'
75
- require 'telegram/bot/types/encrypted_passport_element'
76
- require 'telegram/bot/types/encrypted_credentials'
77
- require 'telegram/bot/types/passport_data'
78
- require 'telegram/bot/types/passport_element_error_data_field'
79
- require 'telegram/bot/types/passport_element_error_front_side'
80
- require 'telegram/bot/types/passport_element_error_reverse_side'
81
- require 'telegram/bot/types/passport_element_error_selfie'
82
- require 'telegram/bot/types/passport_element_error_file'
83
- require 'telegram/bot/types/passport_element_error_files'
84
- require 'telegram/bot/types/passport_element_error_translation_file'
85
- require 'telegram/bot/types/passport_element_error_translation_files'
86
- require 'telegram/bot/types/passport_element_error_unspecified'
87
88
  require 'telegram/bot/types/input_media_animation'
88
89
  require 'telegram/bot/types/input_media_audio'
89
90
  require 'telegram/bot/types/input_media_document'
@@ -4,6 +4,7 @@ module Telegram
4
4
  class InlineKeyboardButton < Base
5
5
  attribute :text, String
6
6
  attribute :url, String
7
+ attribute :login_url, LoginUrl
7
8
  attribute :callback_data, String
8
9
  attribute :switch_inline_query, String
9
10
  attribute :switch_inline_query_current_chat, String
@@ -0,0 +1,12 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class LoginUrl < Base
5
+ attribute :url, String
6
+ attribute :forward_text, String
7
+ attribute :bot_username, String
8
+ attribute :request_write_access, Boolean
9
+ end
10
+ end
11
+ end
12
+ end
@@ -47,6 +47,8 @@ module Telegram
47
47
  attribute :invoice, Invoice
48
48
  attribute :successful_payment, SuccessfulPayment
49
49
  attribute :connected_website, String
50
+ attribute :passport_data, PassportData
51
+ attribute :reply_markup, InlineKeyboardMarkup
50
52
 
51
53
  alias to_s text
52
54
  end
@@ -1,5 +1,5 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.9.1'.freeze
3
+ VERSION = '0.10.0'.freeze
4
4
  end
5
5
  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: 0.9.1
4
+ version: 0.10.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: 2019-05-23 00:00:00.000000000 Z
11
+ date: 2019-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -206,6 +206,7 @@ files:
206
206
  - lib/telegram/bot/types/keyboard_button.rb
207
207
  - lib/telegram/bot/types/labeled_price.rb
208
208
  - lib/telegram/bot/types/location.rb
209
+ - lib/telegram/bot/types/login_url.rb
209
210
  - lib/telegram/bot/types/mask_position.rb
210
211
  - lib/telegram/bot/types/message.rb
211
212
  - lib/telegram/bot/types/message_entity.rb