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

Avoid unnecessary casting of reply_markup in editMessageText #299

Merged
merged 1 commit into from
Mar 26, 2024

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
1 check passed
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