Skip to content

Jsonify hash value#330

Open
Set27 wants to merge 1 commit intoatipugin:masterfrom
Set27:fix-jsonify-hash-value
Open

Jsonify hash value#330
Set27 wants to merge 1 commit intoatipugin:masterfrom
Set27:fix-jsonify-hash-value

Conversation

@Set27
Copy link

@Set27 Set27 commented Feb 28, 2026

While starting to work with the library, I spot that using reply_parameters with message_id does not work.

The example below will always send just text message, without reply

 bot.api.send_message(chat_id: message.chat.id, text: "#{message.from.id}", reply_parameters: { message_id: message.message_id })

I can't be 100% sure, but if I understand it correctly:
Try to pass Hash into reply_parameters
Hash is not an Array or respond to to_compact_hash since Message type does not implement this method

And Faraday flatten it to something like reply_parameters[message_id]=51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant