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 to the Telegram bot API new version capabilities #4

Open
21 of 35 tasks
yeikel16 opened this issue Aug 10, 2023 · 0 comments
Open
21 of 35 tasks

feat: add to the Telegram bot API new version capabilities #4

yeikel16 opened this issue Aug 10, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@yeikel16
Copy link
Owner

yeikel16 commented Aug 10, 2023

Add new properties to WebApp class:

  • headerColor | String
  • backgroundColor | String
  • isClosingConfirmationEnabled | Boolean
  • BackButton | Class #5
  • HapticFeedback | Class #6
  • version | String
  • platform | String
  • isVersionAtLeast(version) | Function
  • setHeaderColor(color) | Function
  • setBackgroundColor(color) | Function
  • enableClosingConfirmation() | Function
  • disableClosingConfirmation() | Function
  • switchInlineQuery(query[, choose_chat_types]) | Function
  • openLink(url[, options]) | Function
  • openTelegramLink(url) | Function
  • openInvoice(url[, callback]) | Function
  • showPopup(params[, callback]) | Function
  • showAlert(message[, callback]) | Function
  • showConfirm(message[, callback]) | Function
  • showScanQrPopup(params[, callback])
  • closeScanQrPopup() | Function
  • readTextFromClipboard([callback]) | Function

Add new properties to ThemeParams class:

  • secondaryBgColor | String

Add new properties to MainButton class:

  • offClick(callback) | Function

Add new properties to WebAppInitData class:

  • chat | WebAppChat class
  • chatType | String
  • chatInstance | String
  • canSendAfter | Duration

Add new properties to WebAppUser class:

  • isPremium | Boolean

Add new event to WebAppEventType enum:

  • backButtonClicked
  • settingsButtonClicked
  • invoiceClosed
  • popupClosed
  • qrTextReceived
  • clipboardTextReceived
@yeikel16 yeikel16 added enhancement New feature or request help wanted Extra attention is needed labels Aug 10, 2023
@yeikel16 yeikel16 self-assigned this Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant