protoncr / tourmaline

Simple Telegram bot library for Crystal
https://tourmaline.dev
MIT License
158 stars 38 forks source link

Broken examples #81

Open rubiojr opened 5 months ago

rubiojr commented 5 months ago

Trying to run the example in the readme results in a broken build:

Resolving dependencies
Fetching https://github.com/protoncr/tourmaline.git
Fetching https://github.com/crystal-lang/crystal-db.git
Fetching https://github.com/mamantoha/http_proxy.git
Using db (0.11.0)
Using http_proxy (0.10.3 at ea17189)
Installing tourmaline (0.29.0 at 08717e7)
Writing shard.lock
Building: bot
Error target bot failed to compile:
Showing last frame. Use --error-trace for full trace.

In lib/tourmaline/src/tourmaline/context.cr:69:17

 69 | @client.send_message(**kwargs, chat_id: message.chat.id, text: text)
              ^-----------
Error: no parameter named 'reply_to_message_id'

Overloads are:
 - Tourmaline::Client::Api#send_message(chat_id : Int32 | Int64 | String, text : String, message_thread_id : Int32 | Int64 | ::Nil = nil, parse_mode : ParseMode = default_parse_mode, entities : Array(Tourmaline::MessageEntity) | ::Nil = nil, link_preview_options : Tourmaline::LinkPreviewOptions | ::Nil = nil, disable_notification : Bool | ::Nil = nil, protect_content : Bool | ::Nil = nil, reply_parameters : Tourmaline::ReplyParameters | ::Nil = nil, reply_markup : Tourmaline::InlineKeyboardMarkup | Tourmaline::ReplyKeyboardMarkup | Tourmaline::ReplyKeyboardRemove | Tourmaline::ForceReply | ::Nil = nil)

Seems to be related to https://github.com/protoncr/tourmaline/pull/68, 577209110ad2f149060ff098f5ef5f0e0561b49d seems to be working fine.

rubiojr commented 5 months ago

https://core.telegram.org/bots/api-changelog#december-29-2023