Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editMessageReplyMarkup not working with reply_markup (InlineKeyboardMarkup) #9

Closed
dtaytson opened this issue Apr 21, 2019 · 1 comment
Closed

Comments

@dtaytson
Copy link

@dtaytson dtaytson commented Apr 21, 2019

I tryed to run this code with editMessageReplyMarkup and failed with "Unsupported value type for form field"

`## Not run:

Initialize bot

bot <- Bot(token = "TOKEN")
chat_id <- "CHAT_ID"
message_id <- "MESSAGE ID"

Create Inline Keyboard

text <- "Could you type their phone number, please?"
IKM <- InlineKeyboardMarkup(
inline_keyboard = list(
list(InlineKeyboardButton(1),
InlineKeyboardButton(2),
InlineKeyboardButton(3)),
list(InlineKeyboardButton(4),
InlineKeyboardButton(5),
InlineKeyboardButton(6)),
list(InlineKeyboardButton(7),
InlineKeyboardButton(8),
InlineKeyboardButton(9)),
list(InlineKeyboardButton("*"),
InlineKeyboardButton(0),
InlineKeyboardButton("#"))
)
)

Send Inline Keyboard

bot$editMessageReplyMarkup(chat_id,
                           message_id, reply_markup = IKM)

End(Not run)`

Error in curl::handle_setform(handle, .list = req$fields) :
Unsupported value type for form field 'reply_markup'.
Calls: ... -> -> request_perform ->
Execution halted

ebeneditos added a commit that referenced this issue Apr 21, 2019
@ebeneditos
Copy link
Owner

@ebeneditos ebeneditos commented Apr 21, 2019

There was a little bug. I reviewed the code and it only affects to editMessageReplyMarkup.
It is fixed since version 2.3.1.

Thanks for the report!

@ebeneditos ebeneditos closed this Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.