Skip to content

Commit

Permalink
Update init-data.md
Browse files Browse the repository at this point in the history
  • Loading branch information
heyqbnk authored Dec 12, 2024
1 parent e441c94 commit 297a682
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ To parse the value as init data, use the `parseInitData` function.
```ts
import { parseInitData } from '@telegram-apps/sdk';

const initData = parseInitData();
const initData = parseInitData('auth_date=123&query_id=anQQ231vs&...');
// {
// user: {
// id: 99281932,
Expand Down

0 comments on commit 297a682

Please sign in to comment.