grammerb 1.3.0-x64-mingw-ucrt → 1.5.2-x64-mingw-ucrt

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: c828ef95ce5c136d128be2f8ec4d99bb3cca25819d90ca1172bbe0fb8fa02388
4
- data.tar.gz: 3a336bff8b72203f7b3c13ab512379f8800d35b8c7f566bde0c5427204ccfb6e
3
+ metadata.gz: 5250e23fc19f094ab6e76908f5251fca7bb0c8bf1c6bd2726a0c7047bad7075e
4
+ data.tar.gz: 0a075483a210b9f1856670ee0035d2182588268dcd74a94ae24e680793df94bb
5
5
  SHA512:
6
- metadata.gz: 5868b2dc4c91a73f13027f6dbfbee2c4ee1a17bf44070cc688e9a26f233b3d6620e1cee4275a0656725a7b69e9aeff5cdb4b5b9d1b7f563c2e658ebc386dea1e
7
- data.tar.gz: 81e9d8e58a0aaf74771259c6c56c4f6c63e01314ed40f5160b8250c397fe9ca49e6b6ce4d5708358c867e4487215a0eb7461ee5a384f74c047ad6e3db8bb5e04
6
+ metadata.gz: e702e48864197e3a0a96bab2581165c3c55d7299c21c25467af331c8e43d9b12ff9b5484a676523d06e9e58110e8c3f1fcedf374ffb6a3347f0551bcebf78130
7
+ data.tar.gz: a4055e31b66e4db7e0428c2bcf1e103a52287ac907ca017906d5b77555a3670ae539e09ba8cac5c926344494ad57db4032c82cc9d6a284b6a465d5f103b926f5
Binary file
Binary file
Binary file
@@ -520,8 +520,8 @@ module Grammerb
520
520
  safe_native { @native.answer_callback_query(query_id, text, alert, cache_time) }
521
521
  end
522
522
 
523
- def answer_inline_query(query_id, results, cache_time: nil, is_personal: false, next_offset: nil)
524
- safe_native { @native.answer_inline_query(query_id, Array(results), cache_time, is_personal, next_offset) }
523
+ def answer_inline_query(query_id, results, cache_time: nil, is_personal: false, next_offset: nil, gallery: false)
524
+ safe_native { @native.answer_inline_query(query_id, Array(results), cache_time, is_personal, next_offset, gallery) }
525
525
  end
526
526
 
527
527
  # --- Payments ---
@@ -175,8 +175,8 @@ module Grammerb
175
175
  @sender_id = raw[:sender_id]
176
176
  end
177
177
 
178
- def answer(results, cache_time: nil, is_personal: false, next_offset: nil)
179
- @client&.answer_inline_query(query_id, results, cache_time: cache_time, is_personal: is_personal, next_offset: next_offset)
178
+ def answer(results, cache_time: nil, is_personal: false, next_offset: nil, gallery: false)
179
+ @client&.answer_inline_query(query_id, results, cache_time: cache_time, is_personal: is_personal, next_offset: next_offset, gallery: gallery)
180
180
  end
181
181
  end
182
182
 
@@ -1,4 +1,4 @@
1
1
  # lib/grammerb/version.rb
2
2
  module Grammerb
3
- VERSION = "1.3.0"
3
+ VERSION = "1.5.2"
4
4
  end
@@ -22,8 +22,8 @@ module Grammerb
22
22
  def sign_out: () -> void
23
23
 
24
24
  # --- Messages ---
25
- def send_message: (peer chat, String text, ?reply_to: Integer?, ?parse_mode: String?, ?silent: bool, ?link_preview: bool, ?schedule: Time?, ?comment_to: Integer?, ?send_as: peer?, ?buttons: button_rows?, ?reply_markup: reply_markup?) -> Types::Message
26
- def edit_message: (peer chat, Integer message_id, String text, ?parse_mode: String?, ?link_preview: bool, ?buttons: button_rows?, ?reply_markup: reply_markup?) -> self
25
+ def send_message: (peer chat, String text, ?reply_to: Integer?, ?parse_mode: String?, ?silent: bool, ?link_preview: bool, ?schedule: Time?, ?comment_to: Integer?, ?send_as: peer?, ?reply_markup: reply_markup?) -> Types::Message
26
+ def edit_message: (peer chat, Integer message_id, String text, ?parse_mode: String?, ?link_preview: bool, ?reply_markup: reply_markup?) -> self
27
27
  def delete_messages: (peer chat, *Integer message_ids, ?revoke: bool) -> void
28
28
  def forward_messages: (peer from_chat, Array[Integer] message_ids, peer to_chat, ?silent: bool, ?schedule: Time?, ?drop_author: bool, ?noforwards: bool) -> Array[Types::Message?]
29
29
  def get_messages: (peer chat, ?limit: Integer, ?offset_id: Integer?, ?offset_date: (Time | Integer)?) -> Array[Types::Message]
@@ -87,12 +87,12 @@ module Grammerb
87
87
  def force_reply: (peer chat, String text, ?parse_mode: String?) -> Types::Message
88
88
 
89
89
  # --- Files ---
90
- def send_file: (peer chat, String path, ?caption: String?, ?parse_mode: String?, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?buttons: button_rows?, ?reply_markup: reply_markup?) -> Types::Message
91
- def send_photo: (peer chat, String path, ?caption: String?, ?parse_mode: String?, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?buttons: button_rows?, ?reply_markup: reply_markup?) -> Types::Message
92
- def send_audio: (peer chat, String path, ?caption: String?, ?parse_mode: String?, ?duration: Integer, ?title: String?, ?performer: String?, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?buttons: button_rows?, ?reply_markup: reply_markup?) -> Types::Message
93
- def send_video: (peer chat, String path, ?caption: String?, ?parse_mode: String?, ?duration: Integer, ?width: Integer, ?height: Integer, ?supports_streaming: bool, ?round_message: bool, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?buttons: button_rows?, ?reply_markup: reply_markup?) -> Types::Message
94
- def send_voice: (peer chat, String path, ?caption: String?, ?parse_mode: String?, ?duration: Integer, ?waveform: String?, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?buttons: button_rows?, ?reply_markup: reply_markup?) -> Types::Message
95
- def send_album: (peer chat, *(String | Hash[Symbol, String]) media_items, ?reply_to: Integer?, ?silent: bool, ?buttons: button_rows?, ?reply_markup: reply_markup?) -> Array[Types::Message?]
90
+ def send_file: (peer chat, String path, ?caption: String?, ?parse_mode: String?, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?reply_markup: reply_markup?) -> Types::Message
91
+ def send_photo: (peer chat, String path, ?caption: String?, ?parse_mode: String?, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?reply_markup: reply_markup?) -> Types::Message
92
+ def send_audio: (peer chat, String path, ?caption: String?, ?parse_mode: String?, ?duration: Integer, ?title: String?, ?performer: String?, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?reply_markup: reply_markup?) -> Types::Message
93
+ def send_video: (peer chat, String path, ?caption: String?, ?parse_mode: String?, ?duration: Integer, ?width: Integer, ?height: Integer, ?supports_streaming: bool, ?round_message: bool, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?reply_markup: reply_markup?) -> Types::Message
94
+ def send_voice: (peer chat, String path, ?caption: String?, ?parse_mode: String?, ?duration: Integer, ?waveform: String?, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?reply_markup: reply_markup?) -> Types::Message
95
+ def send_album: (peer chat, *(String | Hash[Symbol, String]) media_items, ?reply_to: Integer?, ?silent: bool, ?reply_markup: reply_markup?) -> Array[Types::Message?]
96
96
  def send_location: (peer chat, Float lat, Float long, ?accuracy_radius: Integer?, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?reply_markup: reply_markup?) -> Types::Message
97
97
  def send_venue: (peer chat, Float lat, Float long, title: String, address: String, ?provider: String, ?venue_id: String, ?venue_type: String, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?reply_markup: reply_markup?) -> Types::Message
98
98
  def send_contact: (peer chat, phone_number: String, first_name: String, ?last_name: String, ?vcard: String, ?reply_to: Integer?, ?silent: bool, ?schedule: Time?, ?reply_markup: reply_markup?) -> Types::Message
@@ -104,7 +104,7 @@ module Grammerb
104
104
  # --- Bots ---
105
105
  def inline_query: (peer bot, String query, ?limit: Integer) -> Array[Types::InlineResult]
106
106
  def answer_callback_query: (Integer query_id, ?text: String?, ?alert: bool, ?cache_time: Integer?) -> void
107
- def answer_inline_query: (Integer query_id, Array[Hash[Symbol, untyped]] results, ?cache_time: Integer?, ?is_personal: bool, ?next_offset: String?) -> void
107
+ def answer_inline_query: (Integer query_id, Array[Hash[Symbol, untyped]] results, ?cache_time: Integer?, ?is_personal: bool, ?next_offset: String?, ?gallery: bool) -> void
108
108
 
109
109
  # --- Payments ---
110
110
  def send_invoice: (peer chat, title: String, description: String, payload: String, ?currency: String, amount: Integer, ?photo_url: String?) -> Types::Message?
@@ -119,7 +119,7 @@ module Grammerb
119
119
  def save_session: () -> void
120
120
 
121
121
  # --- Events ---
122
- def on: (Class event_class, ?pattern: (Regexp | String)?, ?chats: (Array[peer] | peer)?) { (Events::Event) -> void } -> Events::Handler
122
+ def on: [T < Events::Event] (singleton(T) event_class, ?pattern: (Regexp | String)?, ?chats: (Array[peer] | peer)?) { (T) -> void } -> Events::Handler
123
123
  def off: (Events::Handler handler) -> void
124
124
  def run: () -> void
125
125
  def stop: () -> void
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grammerb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.5.2
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Developer