telegram-bot-api
telegram-bot-api copied to clipboard
feat: Add CopyText button to InlineKeyboardButton for text copy functionality
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
CopyTextfield toInlineKeyboardButton. - Created a new function
NewInlineKeyboardButtonCopyTextto 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.