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

Add some extension to modify keyboards #761

Closed
InsanusMokrassar opened this issue Jun 4, 2023 · 0 comments · Fixed by #921
Closed

Add some extension to modify keyboards #761

InsanusMokrassar opened this issue Jun 4, 2023 · 0 comments · Fixed by #921

Comments

@InsanusMokrassar
Copy link
Owner

In case we have some keyboard like InlineKeyboardMarkup or ReplyKeyboardMarkup it would be useful to have some extension to modify them like:

val keyboard: InlineKeyboardMarkup = ...;

keyboard.modified {
    remove(0) // removing of zero line
    replace(0) {
        // standard row workflow
    } // replacing of zero line by a new one
    add { // duplicate of row extension
        // standard row workflow
    }
    modifyRow {
        // standard row workflow with exists row
    }
    row {
        // standard row workflow
    }
}
InsanusMokrassar added a commit that referenced this issue Nov 11, 2024
@InsanusMokrassar InsanusMokrassar linked a pull request Nov 11, 2024 that will close this issue
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 a pull request may close this issue.

1 participant