Skip to content

Instantly share code, notes, and snippets.

@fgcoelho
Last active April 7, 2025 18:29
Show Gist options
  • Select an option

  • Save fgcoelho/2bcffa40526943c026e072a363b95e85 to your computer and use it in GitHub Desktop.

Select an option

Save fgcoelho/2bcffa40526943c026e072a363b95e85 to your computer and use it in GitHub Desktop.
Telegram Miniapp first access by user webhook payload
const json = {
"update_id": 0000000000,
"message": {
"message_id": 00,
"from": {
"id": 0000000000,
"is_bot": false,
"first_name": "john",
"last_name": "doe",
"language_code": "en-us"
},
"chat": {
"id": 0000000000,
"first_name": "john",
"last_name": "doe",
"type": "private"
},
"date": 0000000000,
"write_access_allowed": { "web_app_name": "app_name" }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment