Skip to content

Commit 982989e

Browse files
674aaee5d006cb993a3e2a5c2768c1d345877a19
1 parent e658d4d commit 982989e

56 files changed

Lines changed: 412 additions & 54 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

esm/3_types.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export * from "./types/0_mask_position.js";
4444
export * from "./types/0_message_entity.js";
4545
export * from "./types/0_message_reference.js";
4646
export * from "./types/0_message_search_filter.js";
47-
export * from "./types/0_mini_app_info.js";
47+
export * from "./types/0_mini_app_button_info.js";
48+
export * from "./types/0_mini_app_mode.js";
4849
export * from "./types/0_network_statistics_entry.js";
4950
export * from "./types/0_opening_hours.js";
5051
export * from "./types/0_parse_mode.js";
@@ -73,6 +74,7 @@ export * from "./types/1_input_media.js";
7374
export * from "./types/1_input_story_content.js";
7475
export * from "./types/1_keyboard_button.js";
7576
export * from "./types/1_message_reaction.js";
77+
export * from "./types/1_mini_app_info.js";
7678
export * from "./types/1_network_statistics.js";
7779
export * from "./types/1_order_info.js";
7880
export * from "./types/1_photo.js";

esm/3_types.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

esm/3_types.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export * from "./types/0_mask_position.js";
4444
export * from "./types/0_message_entity.js";
4545
export * from "./types/0_message_reference.js";
4646
export * from "./types/0_message_search_filter.js";
47-
export * from "./types/0_mini_app_info.js";
47+
export * from "./types/0_mini_app_button_info.js";
48+
export * from "./types/0_mini_app_mode.js";
4849
export * from "./types/0_network_statistics_entry.js";
4950
export * from "./types/0_opening_hours.js";
5051
export * from "./types/0_parse_mode.js";
@@ -73,6 +74,7 @@ export * from "./types/1_input_media.js";
7374
export * from "./types/1_input_story_content.js";
7475
export * from "./types/1_keyboard_button.js";
7576
export * from "./types/1_message_reaction.js";
77+
export * from "./types/1_mini_app_info.js";
7678
export * from "./types/1_network_statistics.js";
7779
export * from "./types/1_order_info.js";
7880
export * from "./types/1_photo.js";

esm/client/0_params.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import { MaybePromise } from "../1_utilities.js";
2121
import { DC } from "../3_transport.js";
2222
import { Birthday, BotCommandScope, ChatListItem, ChatMemberRights, FileSource, ID, InlineQueryResultButton, InputLinkPreview, LinkPreview, MessageEntity, MessageSearchFilter, ParseMode, ReplyMarkup, SelfDestructOption, StoryInteractiveArea, StoryPrivacy } from "../3_types.js";
23+
import { MiniAppMode } from "../types/0_mini_app_mode.js";
2324
import { ReplyTo } from "../types/2_reply_to.js";
2425
export interface InvokeParams {
2526
dc?: DC;
@@ -603,4 +604,22 @@ export interface GetJoinRequestsParams {
603604
/** The maximum number of results to return. Must be in the range of 1-100. Defaults to 100. */
604605
limit?: number;
605606
}
607+
export interface OpenMiniAppParams {
608+
/** The mode to open the mini app in. Defaults to the default mode. */
609+
mode?: MiniAppMode;
610+
/** The URL of the mini app to open. */
611+
url?: string;
612+
/** The start parameter to pass to the mini app. */
613+
startParameter?: string;
614+
/** Theme parameters encoded in JSON. */
615+
themeParameters?: string;
616+
/** Whether messages relevant to the mini app session should be sent silently. */
617+
disableNotification?: boolean;
618+
/** The identifier of a chat to send relevant messages on behalf of. */
619+
sendAs?: ID;
620+
/** Whether the mini app is being opened from the menu. */
621+
fromMenu?: boolean;
622+
/** Information on a message to which relevant messages should be replied to. */
623+
replyTo?: ReplyTo;
624+
}
606625
//# sourceMappingURL=0_params.d.ts.map

0 commit comments

Comments
 (0)