telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

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

Open pooriadarvishi opened this issue 10 months ago • 0 comments

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.

pooriadarvishi avatar Nov 30 '24 14:11 pooriadarvishi