Skip to content

Commit

Permalink
Add chat_type and chat_instance fields to WebAppInitData (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisDmitry authored Jun 19, 2024
1 parent 252dd78 commit 2856c9d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,17 @@ export declare namespace TelegramWebApps {
* Apps launched via the attachment menu.
*/
readonly chat?: WebAppChat
/**
* Type of the chat from which the Mini App was opened. Can be either “sender” for a
* private chat with the user opening the link, “private”, “group”, “supergroup”, or
* “channel”. Returned only for Mini Apps launched from direct links.
*/
readonly chat_type?: 'sender' | 'private' | 'group' | 'supergroup' | 'channel'
/**
* Global identifier, uniquely corresponding to the chat from which the Mini App was
* opened. Returned only for Mini Apps launched from a direct link.
*/
readonly chat_instance?: string
/**
* The value of the *startattach* parameter, passed via link. Only returned for Web
* Apps when launched from the attachment menu via link.
Expand Down

0 comments on commit 2856c9d

Please sign in to comment.