Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LEbnerDeveloper authored Jul 26, 2024
1 parent d1ad1ab commit 121a5d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ The Mini App must be hosted somewhere. Hosting it on a GitHub repository is a qu
2. On the repository: Settings > Pages:
- Source: Deploy from a branch
- Branch: master, / (root), Save
3. Wait a few minutes for the mini to be deployed. It will be available at: `https://{github-username}.github.io/{repository-name}/{location-inside-repository}`. In this case: `https://revenkroz.github.io/telegram-web-app-bot-example/index.html`
3. Wait a few minutes for the mini to be deployed. It will be available at: `https://{github-username}.github.io/{repository-name}/{location-inside-repository}`. In this case: `https://lebnerdeveloper.github.io/telegram-mini-app-bot/index.html`

#### 1. Show the user a button to open a Web App. There are two ways:

1. Show the user a special menu button (near the message input field):
1. Go to [Bot Father](https://t.me/BotFather)
2. Select your bot
3. `Bot Settings``Menu Button``Specify..`/`Edit menu button URL`
4. Send a URL to your Web App (in this case, `https://revenkroz.github.io/telegram-web-app-bot-example/index.html`)
4. Send a URL to your Web App (in this case, `https://lebnerdeveloper.github.io/telegram-mini-app-bot/index.html`

2. The second way is to send a button with the data that contains field `web_app` with a URL to a Web App:
```json
{
"text": "Test web_app",
"web_app": {
"url": "https://revenkroz.github.io/telegram-web-app-bot-example/index.html"
"url": "https://lebnerdeveloper.github.io/telegram-mini-app-bot/index.html"
}
}
```
Expand Down

0 comments on commit 121a5d3

Please sign in to comment.