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

Validate data received via the Web App #305

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Readme
  • Loading branch information
Valov committed Mar 3, 2024
commit 1ff816e2ca1090dd511345d10ae54ab62ee5ea27
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -265,9 +265,9 @@ Telegram::Bot.configure do |config|
end
```

## Validating data received via the Mini App
## Validating data received via the Web App

To validate data received via the Mini App, you can use the `Telegram::Bot::WebApp` class.
To validate data received via the Web App, you can use the `Telegram::Bot::WebApp` class.
This class has a method `#verify_data_init` receive string with telegram data init that returns `Telegram::Bot::Types::WebAppUser` if the data is valid and `false` if it is not.

```ruby