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

feat:‌ Add CopyText button to InlineKeyboardButton for text copy functionality #758

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pooriadarvishi
Copy link

Description:

This PR introduces a new feature to the InlineKeyboardButton by adding a CopyText button. This button allows the user to copy a verification code or any specified text to the clipboard when clicked. This can be particularly useful for verification processes or other use cases where copying text quickly is required.

Changes:

  • Added CopyText field to InlineKeyboardButton.
  • Created a new function NewInlineKeyboardButtonCopyText to simplify the creation of this button with custom text and copy functionality.

Why:

This feature enhances the user experience by providing a quick way to copy verification codes or other important text without the need to manually select it. It's useful for chatbots or systems that require frequent use of copied data.

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.

1 participant