You can use this application as a template for creating a bot in which, upon any user action (in this application the user must click on the “Play” button), the bot opens a website directly in the telegram.
-
In the variable
textForButton
you must enter a link to your website on the Internet (the site must be hosted). -
In the variable
linkToWebSite
you must enter what will be displayed in the button. By pressing this button you will be able to perform a certain action (see in the code).
In the variable pathToFolder
you must indicate the path to the file in which your index.html
file is located.