Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Avoid unnecessary casting of reply_markup in editMessageText#299

Merged
reo7sp merged 1 commit intoreo7sp:masterreo7sp/tgbot-cpp:masterfrom
paulusel:masterpaulusel/tgbot-cpp:masterCopy head branch name to clipboard
Mar 26, 2024
Merged

Avoid unnecessary casting of reply_markup in editMessageText#299
reo7sp merged 1 commit intoreo7sp:masterreo7sp/tgbot-cpp:masterfrom
paulusel:masterpaulusel/tgbot-cpp:masterCopy head branch name to clipboard

Conversation

@paulusel
Copy link
Contributor

These change should have been part of #298 PR. I didn't know there was separate method to parse InlineKeyboardMarkup. Upon closer look I noticed editMessageText was calling a generic method which does casting to determine exact keyboard type and then in turn calls another method for parsing the determined type.

Now that we are using inline keyboard specifically, all that is unnecessary. So this one line change bypasses that and its more appropriate.

Sorry for submitting incomplete PR. This should be complete now.

@reo7sp
Copy link
Owner

reo7sp commented Mar 26, 2024

Thanks👍

@reo7sp reo7sp merged commit 0910c16 into reo7sp:master Mar 26, 2024
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.