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

Open
InsanusMokrassar opened this issue Jun 4, 2023 · 0 comments
Open

Add some extension to modify keyboards #761

InsanusMokrassar opened this issue Jun 4, 2023 · 0 comments

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
    }
}
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

No branches or pull requests

1 participant