/**
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
* Copyright (C) 2023-2026 Roj
*
* This file is part of MTKruto.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*/
import type { Schema } from "./0_types.js";
declare const R: unique symbol;
export type Function = {
[R]?: unknown;
};
export type ReturnType = T extends Function ? NonNullable : never;
/** https://core.telegram.org/constructor/true */
export interface true_ {
_: "true";
}
/** https://core.telegram.org/constructor/error */
export interface error {
_: "error";
code: number;
text: string;
}
/** https://core.telegram.org/constructor/ipPort */
export interface ipPort {
_: "ipPort";
ipv4: number;
port: number;
}
/** https://core.telegram.org/constructor/ipPortSecret */
export interface ipPortSecret {
_: "ipPortSecret";
ipv4: number;
port: number;
secret: Uint8Array;
}
/** https://core.telegram.org/constructor/accessPointRule */
export interface accessPointRule {
_: "accessPointRule";
phone_prefix_rules: string;
dc_id: number;
ips: Array;
}
/** https://core.telegram.org/constructor/help.configSimple */
export interface help_configSimple {
_: "help.configSimple";
date: number;
expires: number;
rules: Array;
}
/** https://core.telegram.org/constructor/inputPeerPhotoFileLocationLegacy */
export interface inputPeerPhotoFileLocationLegacy {
_: "inputPeerPhotoFileLocationLegacy";
big?: true;
peer: InputPeer;
volume_id: bigint;
local_id: number;
}
/** https://core.telegram.org/constructor/inputStickerSetThumbLegacy */
export interface inputStickerSetThumbLegacy {
_: "inputStickerSetThumbLegacy";
stickerset: InputStickerSet;
volume_id: bigint;
local_id: number;
}
/** https://core.telegram.org/constructor/inputPeerEmpty */
export interface inputPeerEmpty {
_: "inputPeerEmpty";
}
/** https://core.telegram.org/constructor/inputPeerSelf */
export interface inputPeerSelf {
_: "inputPeerSelf";
}
/** https://core.telegram.org/constructor/inputPeerChat */
export interface inputPeerChat {
_: "inputPeerChat";
chat_id: bigint;
}
/** https://core.telegram.org/constructor/inputPeerUser */
export interface inputPeerUser {
_: "inputPeerUser";
user_id: bigint;
access_hash: bigint;
}
/** https://core.telegram.org/constructor/inputPeerChannel */
export interface inputPeerChannel {
_: "inputPeerChannel";
channel_id: bigint;
access_hash: bigint;
}
/** https://core.telegram.org/constructor/inputPeerUserFromMessage */
export interface inputPeerUserFromMessage {
_: "inputPeerUserFromMessage";
peer: InputPeer;
msg_id: number;
user_id: bigint;
}
/** https://core.telegram.org/constructor/inputPeerChannelFromMessage */
export interface inputPeerChannelFromMessage {
_: "inputPeerChannelFromMessage";
peer: InputPeer;
msg_id: number;
channel_id: bigint;
}
/** https://core.telegram.org/constructor/inputUserEmpty */
export interface inputUserEmpty {
_: "inputUserEmpty";
}
/** https://core.telegram.org/constructor/inputUserSelf */
export interface inputUserSelf {
_: "inputUserSelf";
}
/** https://core.telegram.org/constructor/inputUser */
export interface inputUser {
_: "inputUser";
user_id: bigint;
access_hash: bigint;
}
/** https://core.telegram.org/constructor/inputUserFromMessage */
export interface inputUserFromMessage {
_: "inputUserFromMessage";
peer: InputPeer;
msg_id: number;
user_id: bigint;
}
/** https://core.telegram.org/constructor/inputPhoneContact */
export interface inputPhoneContact {
_: "inputPhoneContact";
client_id: bigint;
phone: string;
first_name: string;
last_name: string;
note?: TextWithEntities;
}
/** https://core.telegram.org/constructor/inputFile */
export interface inputFile {
_: "inputFile";
id: bigint;
parts: number;
name: string;
md5_checksum: string;
}
/** https://core.telegram.org/constructor/inputFileBig */
export interface inputFileBig {
_: "inputFileBig";
id: bigint;
parts: number;
name: string;
}
/** https://core.telegram.org/constructor/inputFileStoryDocument */
export interface inputFileStoryDocument {
_: "inputFileStoryDocument";
id: InputDocument;
}
/** https://core.telegram.org/constructor/inputMediaEmpty */
export interface inputMediaEmpty {
_: "inputMediaEmpty";
}
/** https://core.telegram.org/constructor/inputMediaUploadedPhoto */
export interface inputMediaUploadedPhoto {
_: "inputMediaUploadedPhoto";
spoiler?: true;
live_photo?: true;
file: InputFile;
stickers?: Array;
ttl_seconds?: number;
video?: InputDocument;
}
/** https://core.telegram.org/constructor/inputMediaPhoto */
export interface inputMediaPhoto {
_: "inputMediaPhoto";
spoiler?: true;
live_photo?: true;
id: InputPhoto;
ttl_seconds?: number;
video?: InputDocument;
}
/** https://core.telegram.org/constructor/inputMediaGeoPoint */
export interface inputMediaGeoPoint {
_: "inputMediaGeoPoint";
geo_point: InputGeoPoint;
}
/** https://core.telegram.org/constructor/inputMediaContact */
export interface inputMediaContact {
_: "inputMediaContact";
phone_number: string;
first_name: string;
last_name: string;
vcard: string;
}
/** https://core.telegram.org/constructor/inputMediaUploadedDocument */
export interface inputMediaUploadedDocument {
_: "inputMediaUploadedDocument";
nosound_video?: true;
force_file?: true;
spoiler?: true;
file: InputFile;
thumb?: InputFile;
mime_type: string;
attributes: Array;
stickers?: Array;
video_cover?: InputPhoto;
video_timestamp?: number;
ttl_seconds?: number;
}
/** https://core.telegram.org/constructor/inputMediaDocument */
export interface inputMediaDocument {
_: "inputMediaDocument";
spoiler?: true;
id: InputDocument;
video_cover?: InputPhoto;
video_timestamp?: number;
ttl_seconds?: number;
query?: string;
}
/** https://core.telegram.org/constructor/inputMediaVenue */
export interface inputMediaVenue {
_: "inputMediaVenue";
geo_point: InputGeoPoint;
title: string;
address: string;
provider: string;
venue_id: string;
venue_type: string;
}
/** https://core.telegram.org/constructor/inputMediaPhotoExternal */
export interface inputMediaPhotoExternal {
_: "inputMediaPhotoExternal";
spoiler?: true;
url: string;
ttl_seconds?: number;
}
/** https://core.telegram.org/constructor/inputMediaDocumentExternal */
export interface inputMediaDocumentExternal {
_: "inputMediaDocumentExternal";
spoiler?: true;
url: string;
ttl_seconds?: number;
video_cover?: InputPhoto;
video_timestamp?: number;
}
/** https://core.telegram.org/constructor/inputMediaGame */
export interface inputMediaGame {
_: "inputMediaGame";
id: InputGame;
}
/** https://core.telegram.org/constructor/inputMediaInvoice */
export interface inputMediaInvoice {
_: "inputMediaInvoice";
title: string;
description: string;
photo?: InputWebDocument;
invoice: Invoice;
payload: Uint8Array;
provider?: string;
provider_data: DataJSON;
start_param?: string;
extended_media?: InputMedia;
}
/** https://core.telegram.org/constructor/inputMediaGeoLive */
export interface inputMediaGeoLive {
_: "inputMediaGeoLive";
stopped?: true;
geo_point: InputGeoPoint;
heading?: number;
period?: number;
proximity_notification_radius?: number;
}
/** https://core.telegram.org/constructor/inputMediaPoll */
export interface inputMediaPoll {
_: "inputMediaPoll";
poll: Poll;
correct_answers?: Array;
attached_media?: InputMedia;
solution?: string;
solution_entities?: Array;
solution_media?: InputMedia;
}
/** https://core.telegram.org/constructor/inputMediaDice */
export interface inputMediaDice {
_: "inputMediaDice";
emoticon: string;
}
/** https://core.telegram.org/constructor/inputMediaStory */
export interface inputMediaStory {
_: "inputMediaStory";
peer: InputPeer;
id: number;
}
/** https://core.telegram.org/constructor/inputMediaWebPage */
export interface inputMediaWebPage {
_: "inputMediaWebPage";
force_large_media?: true;
force_small_media?: true;
optional?: true;
url: string;
}
/** https://core.telegram.org/constructor/inputMediaPaidMedia */
export interface inputMediaPaidMedia {
_: "inputMediaPaidMedia";
stars_amount: bigint;
extended_media: Array;
payload?: string;
}
/** https://core.telegram.org/constructor/inputMediaTodo */
export interface inputMediaTodo {
_: "inputMediaTodo";
todo: TodoList;
}
/** https://core.telegram.org/constructor/inputMediaStakeDice */
export interface inputMediaStakeDice {
_: "inputMediaStakeDice";
game_hash: string;
ton_amount: bigint;
client_seed: Uint8Array;
}
/** https://core.telegram.org/constructor/inputChatPhotoEmpty */
export interface inputChatPhotoEmpty {
_: "inputChatPhotoEmpty";
}
/** https://core.telegram.org/constructor/inputChatUploadedPhoto */
export interface inputChatUploadedPhoto {
_: "inputChatUploadedPhoto";
file?: InputFile;
video?: InputFile;
video_start_ts?: number;
video_emoji_markup?: VideoSize;
}
/** https://core.telegram.org/constructor/inputChatPhoto */
export interface inputChatPhoto {
_: "inputChatPhoto";
id: InputPhoto;
}
/** https://core.telegram.org/constructor/inputGeoPointEmpty */
export interface inputGeoPointEmpty {
_: "inputGeoPointEmpty";
}
/** https://core.telegram.org/constructor/inputGeoPoint */
export interface inputGeoPoint {
_: "inputGeoPoint";
lat: number;
long: number;
accuracy_radius?: number;
}
/** https://core.telegram.org/constructor/inputPhotoEmpty */
export interface inputPhotoEmpty {
_: "inputPhotoEmpty";
}
/** https://core.telegram.org/constructor/inputPhoto */
export interface inputPhoto {
_: "inputPhoto";
id: bigint;
access_hash: bigint;
file_reference: Uint8Array;
}
/** https://core.telegram.org/constructor/inputFileLocation */
export interface inputFileLocation {
_: "inputFileLocation";
volume_id: bigint;
local_id: number;
secret: bigint;
file_reference: Uint8Array;
}
/** https://core.telegram.org/constructor/inputEncryptedFileLocation */
export interface inputEncryptedFileLocation {
_: "inputEncryptedFileLocation";
id: bigint;
access_hash: bigint;
}
/** https://core.telegram.org/constructor/inputDocumentFileLocation */
export interface inputDocumentFileLocation {
_: "inputDocumentFileLocation";
id: bigint;
access_hash: bigint;
file_reference: Uint8Array;
thumb_size: string;
}
/** https://core.telegram.org/constructor/inputSecureFileLocation */
export interface inputSecureFileLocation {
_: "inputSecureFileLocation";
id: bigint;
access_hash: bigint;
}
/** https://core.telegram.org/constructor/inputTakeoutFileLocation */
export interface inputTakeoutFileLocation {
_: "inputTakeoutFileLocation";
}
/** https://core.telegram.org/constructor/inputPhotoFileLocation */
export interface inputPhotoFileLocation {
_: "inputPhotoFileLocation";
id: bigint;
access_hash: bigint;
file_reference: Uint8Array;
thumb_size: string;
}
/** https://core.telegram.org/constructor/inputPhotoLegacyFileLocation */
export interface inputPhotoLegacyFileLocation {
_: "inputPhotoLegacyFileLocation";
id: bigint;
access_hash: bigint;
file_reference: Uint8Array;
volume_id: bigint;
local_id: number;
secret: bigint;
}
/** https://core.telegram.org/constructor/inputPeerPhotoFileLocation */
export interface inputPeerPhotoFileLocation {
_: "inputPeerPhotoFileLocation";
big?: true;
peer: InputPeer;
photo_id: bigint;
}
/** https://core.telegram.org/constructor/inputStickerSetThumb */
export interface inputStickerSetThumb {
_: "inputStickerSetThumb";
stickerset: InputStickerSet;
thumb_version: number;
}
/** https://core.telegram.org/constructor/inputGroupCallStream */
export interface inputGroupCallStream {
_: "inputGroupCallStream";
call: InputGroupCall;
time_ms: bigint;
scale: number;
video_channel?: number;
video_quality?: number;
}
/** https://core.telegram.org/constructor/peerUser */
export interface peerUser {
_: "peerUser";
user_id: bigint;
}
/** https://core.telegram.org/constructor/peerChat */
export interface peerChat {
_: "peerChat";
chat_id: bigint;
}
/** https://core.telegram.org/constructor/peerChannel */
export interface peerChannel {
_: "peerChannel";
channel_id: bigint;
}
/** https://core.telegram.org/constructor/storage.fileUnknown */
export interface storage_fileUnknown {
_: "storage.fileUnknown";
}
/** https://core.telegram.org/constructor/storage.filePartial */
export interface storage_filePartial {
_: "storage.filePartial";
}
/** https://core.telegram.org/constructor/storage.fileJpeg */
export interface storage_fileJpeg {
_: "storage.fileJpeg";
}
/** https://core.telegram.org/constructor/storage.fileGif */
export interface storage_fileGif {
_: "storage.fileGif";
}
/** https://core.telegram.org/constructor/storage.filePng */
export interface storage_filePng {
_: "storage.filePng";
}
/** https://core.telegram.org/constructor/storage.filePdf */
export interface storage_filePdf {
_: "storage.filePdf";
}
/** https://core.telegram.org/constructor/storage.fileMp3 */
export interface storage_fileMp3 {
_: "storage.fileMp3";
}
/** https://core.telegram.org/constructor/storage.fileMov */
export interface storage_fileMov {
_: "storage.fileMov";
}
/** https://core.telegram.org/constructor/storage.fileMp4 */
export interface storage_fileMp4 {
_: "storage.fileMp4";
}
/** https://core.telegram.org/constructor/storage.fileWebp */
export interface storage_fileWebp {
_: "storage.fileWebp";
}
/** https://core.telegram.org/constructor/userEmpty */
export interface userEmpty {
_: "userEmpty";
id: bigint;
}
/** https://core.telegram.org/constructor/user */
export interface user {
_: "user";
self?: true;
contact?: true;
mutual_contact?: true;
deleted?: true;
bot?: true;
bot_chat_history?: true;
bot_nochats?: true;
verified?: true;
restricted?: true;
min?: true;
bot_inline_geo?: true;
support?: true;
scam?: true;
apply_min_photo?: true;
fake?: true;
bot_attach_menu?: true;
premium?: true;
attach_menu_enabled?: true;
bot_can_edit?: true;
close_friend?: true;
stories_hidden?: true;
stories_unavailable?: true;
contact_require_premium?: true;
bot_business?: true;
bot_has_main_app?: true;
bot_forum_view?: true;
bot_forum_can_manage_topics?: true;
bot_can_manage_bots?: true;
bot_guestchat?: true;
id: bigint;
access_hash?: bigint;
first_name?: string;
last_name?: string;
username?: string;
phone?: string;
photo?: UserProfilePhoto;
status?: UserStatus;
bot_info_version?: number;
restriction_reason?: Array;
bot_inline_placeholder?: string;
lang_code?: string;
emoji_status?: EmojiStatus;
usernames?: Array;
stories_max_id?: RecentStory;
color?: PeerColor;
profile_color?: PeerColor;
bot_active_users?: number;
bot_verification_icon?: bigint;
send_paid_messages_stars?: bigint;
}
/** https://core.telegram.org/constructor/userProfilePhotoEmpty */
export interface userProfilePhotoEmpty {
_: "userProfilePhotoEmpty";
}
/** https://core.telegram.org/constructor/userProfilePhoto */
export interface userProfilePhoto {
_: "userProfilePhoto";
has_video?: true;
personal?: true;
photo_id: bigint;
stripped_thumb?: Uint8Array;
dc_id: number;
}
/** https://core.telegram.org/constructor/userStatusEmpty */
export interface userStatusEmpty {
_: "userStatusEmpty";
}
/** https://core.telegram.org/constructor/userStatusOnline */
export interface userStatusOnline {
_: "userStatusOnline";
expires: number;
}
/** https://core.telegram.org/constructor/userStatusOffline */
export interface userStatusOffline {
_: "userStatusOffline";
was_online: number;
}
/** https://core.telegram.org/constructor/userStatusRecently */
export interface userStatusRecently {
_: "userStatusRecently";
by_me?: true;
}
/** https://core.telegram.org/constructor/userStatusLastWeek */
export interface userStatusLastWeek {
_: "userStatusLastWeek";
by_me?: true;
}
/** https://core.telegram.org/constructor/userStatusLastMonth */
export interface userStatusLastMonth {
_: "userStatusLastMonth";
by_me?: true;
}
/** https://core.telegram.org/constructor/chatEmpty */
export interface chatEmpty {
_: "chatEmpty";
id: bigint;
}
/** https://core.telegram.org/constructor/chat */
export interface chat {
_: "chat";
creator?: true;
left?: true;
deactivated?: true;
call_active?: true;
call_not_empty?: true;
noforwards?: true;
id: bigint;
title: string;
photo: ChatPhoto;
participants_count: number;
date: number;
version: number;
migrated_to?: InputChannel;
admin_rights?: ChatAdminRights;
default_banned_rights?: ChatBannedRights;
}
/** https://core.telegram.org/constructor/chatForbidden */
export interface chatForbidden {
_: "chatForbidden";
id: bigint;
title: string;
}
/** https://core.telegram.org/constructor/channel */
export interface channel {
_: "channel";
creator?: true;
left?: true;
broadcast?: true;
verified?: true;
megagroup?: true;
restricted?: true;
signatures?: true;
min?: true;
scam?: true;
has_link?: true;
has_geo?: true;
slowmode_enabled?: true;
call_active?: true;
call_not_empty?: true;
fake?: true;
gigagroup?: true;
noforwards?: true;
join_to_send?: true;
join_request?: true;
forum?: true;
stories_hidden?: true;
stories_hidden_min?: true;
stories_unavailable?: true;
signature_profiles?: true;
autotranslation?: true;
broadcast_messages_allowed?: true;
monoforum?: true;
forum_tabs?: true;
id: bigint;
access_hash?: bigint;
title: string;
username?: string;
photo: ChatPhoto;
date: number;
restriction_reason?: Array;
admin_rights?: ChatAdminRights;
banned_rights?: ChatBannedRights;
default_banned_rights?: ChatBannedRights;
participants_count?: number;
usernames?: Array;
stories_max_id?: RecentStory;
color?: PeerColor;
profile_color?: PeerColor;
emoji_status?: EmojiStatus;
level?: number;
subscription_until_date?: number;
bot_verification_icon?: bigint;
send_paid_messages_stars?: bigint;
linked_monoforum_id?: bigint;
}
/** https://core.telegram.org/constructor/channelForbidden */
export interface channelForbidden {
_: "channelForbidden";
broadcast?: true;
megagroup?: true;
monoforum?: true;
id: bigint;
access_hash: bigint;
title: string;
until_date?: number;
}
/** https://core.telegram.org/constructor/chatFull */
export interface chatFull {
_: "chatFull";
can_set_username?: true;
has_scheduled?: true;
translations_disabled?: true;
id: bigint;
about: string;
participants: ChatParticipants;
chat_photo?: Photo;
notify_settings: PeerNotifySettings;
exported_invite?: ExportedChatInvite;
bot_info?: Array;
pinned_msg_id?: number;
folder_id?: number;
call?: InputGroupCall;
ttl_period?: number;
groupcall_default_join_as?: Peer;
theme_emoticon?: string;
requests_pending?: number;
recent_requesters?: Array;
available_reactions?: ChatReactions;
reactions_limit?: number;
}
/** https://core.telegram.org/constructor/channelFull */
export interface channelFull {
_: "channelFull";
can_view_participants?: true;
can_set_username?: true;
can_set_stickers?: true;
hidden_prehistory?: true;
can_set_location?: true;
has_scheduled?: true;
can_view_stats?: true;
blocked?: true;
can_delete_channel?: true;
antispam?: true;
participants_hidden?: true;
translations_disabled?: true;
stories_pinned_available?: true;
view_forum_as_messages?: true;
restricted_sponsored?: true;
can_view_revenue?: true;
paid_media_allowed?: true;
can_view_stars_revenue?: true;
paid_reactions_available?: true;
stargifts_available?: true;
paid_messages_available?: true;
id: bigint;
about: string;
participants_count?: number;
admins_count?: number;
kicked_count?: number;
banned_count?: number;
online_count?: number;
read_inbox_max_id: number;
read_outbox_max_id: number;
unread_count: number;
chat_photo: Photo;
notify_settings: PeerNotifySettings;
exported_invite?: ExportedChatInvite;
bot_info: Array;
migrated_from_chat_id?: bigint;
migrated_from_max_id?: number;
pinned_msg_id?: number;
stickerset?: StickerSet;
available_min_id?: number;
folder_id?: number;
linked_chat_id?: bigint;
location?: ChannelLocation;
slowmode_seconds?: number;
slowmode_next_send_date?: number;
stats_dc?: number;
pts: number;
call?: InputGroupCall;
ttl_period?: number;
pending_suggestions?: Array;
groupcall_default_join_as?: Peer;
theme_emoticon?: string;
requests_pending?: number;
recent_requesters?: Array;
default_send_as?: Peer;
available_reactions?: ChatReactions;
reactions_limit?: number;
stories?: PeerStories;
wallpaper?: WallPaper;
boosts_applied?: number;
boosts_unrestrict?: number;
emojiset?: StickerSet;
bot_verification?: BotVerification;
stargifts_count?: number;
send_paid_messages_stars?: bigint;
main_tab?: ProfileTab;
}
/** https://core.telegram.org/constructor/chatParticipant */
export interface chatParticipant {
_: "chatParticipant";
user_id: bigint;
inviter_id: bigint;
date: number;
rank?: string;
}
/** https://core.telegram.org/constructor/chatParticipantCreator */
export interface chatParticipantCreator {
_: "chatParticipantCreator";
user_id: bigint;
rank?: string;
}
/** https://core.telegram.org/constructor/chatParticipantAdmin */
export interface chatParticipantAdmin {
_: "chatParticipantAdmin";
user_id: bigint;
inviter_id: bigint;
date: number;
rank?: string;
}
/** https://core.telegram.org/constructor/chatParticipantsForbidden */
export interface chatParticipantsForbidden {
_: "chatParticipantsForbidden";
chat_id: bigint;
self_participant?: ChatParticipant;
}
/** https://core.telegram.org/constructor/chatParticipants */
export interface chatParticipants {
_: "chatParticipants";
chat_id: bigint;
participants: Array;
version: number;
}
/** https://core.telegram.org/constructor/chatPhotoEmpty */
export interface chatPhotoEmpty {
_: "chatPhotoEmpty";
}
/** https://core.telegram.org/constructor/chatPhoto */
export interface chatPhoto {
_: "chatPhoto";
has_video?: true;
photo_id: bigint;
stripped_thumb?: Uint8Array;
dc_id: number;
}
/** https://core.telegram.org/constructor/messageEmpty */
export interface messageEmpty {
_: "messageEmpty";
id: number;
peer_id?: Peer;
}
/** https://core.telegram.org/constructor/message */
export interface message {
_: "message";
out?: true;
mentioned?: true;
media_unread?: true;
silent?: true;
post?: true;
from_scheduled?: true;
legacy?: true;
edit_hide?: true;
pinned?: true;
noforwards?: true;
invert_media?: true;
offline?: true;
video_processing_pending?: true;
paid_suggested_post_stars?: true;
paid_suggested_post_ton?: true;
id: number;
from_id?: Peer;
from_boosts_applied?: number;
from_rank?: string;
peer_id: Peer;
saved_peer_id?: Peer;
fwd_from?: MessageFwdHeader;
via_bot_id?: bigint;
via_business_bot_id?: bigint;
guestchat_via_from?: Peer;
reply_to?: MessageReplyHeader;
date: number;
message: string;
media?: MessageMedia;
reply_markup?: ReplyMarkup;
entities?: Array;
views?: number;
forwards?: number;
replies?: MessageReplies;
edit_date?: number;
post_author?: string;
grouped_id?: bigint;
reactions?: MessageReactions;
restriction_reason?: Array;
ttl_period?: number;
quick_reply_shortcut_id?: number;
effect?: bigint;
factcheck?: FactCheck;
report_delivery_until_date?: number;
paid_message_stars?: bigint;
suggested_post?: SuggestedPost;
schedule_repeat_period?: number;
summary_from_language?: string;
}
/** https://core.telegram.org/constructor/messageService */
export interface messageService {
_: "messageService";
out?: true;
mentioned?: true;
media_unread?: true;
reactions_are_possible?: true;
silent?: true;
post?: true;
legacy?: true;
id: number;
from_id?: Peer;
peer_id: Peer;
saved_peer_id?: Peer;
reply_to?: MessageReplyHeader;
date: number;
action: MessageAction;
reactions?: MessageReactions;
ttl_period?: number;
}
/** https://core.telegram.org/constructor/messageMediaEmpty */
export interface messageMediaEmpty {
_: "messageMediaEmpty";
}
/** https://core.telegram.org/constructor/messageMediaPhoto */
export interface messageMediaPhoto {
_: "messageMediaPhoto";
spoiler?: true;
live_photo?: true;
photo?: Photo;
ttl_seconds?: number;
video?: Document;
}
/** https://core.telegram.org/constructor/messageMediaGeo */
export interface messageMediaGeo {
_: "messageMediaGeo";
geo: GeoPoint;
}
/** https://core.telegram.org/constructor/messageMediaContact */
export interface messageMediaContact {
_: "messageMediaContact";
phone_number: string;
first_name: string;
last_name: string;
vcard: string;
user_id: bigint;
}
/** https://core.telegram.org/constructor/messageMediaUnsupported */
export interface messageMediaUnsupported {
_: "messageMediaUnsupported";
}
/** https://core.telegram.org/constructor/messageMediaDocument */
export interface messageMediaDocument {
_: "messageMediaDocument";
nopremium?: true;
spoiler?: true;
video?: true;
round?: true;
voice?: true;
document?: Document;
alt_documents?: Array;
video_cover?: Photo;
video_timestamp?: number;
ttl_seconds?: number;
}
/** https://core.telegram.org/constructor/messageMediaWebPage */
export interface messageMediaWebPage {
_: "messageMediaWebPage";
force_large_media?: true;
force_small_media?: true;
manual?: true;
safe?: true;
webpage: WebPage;
}
/** https://core.telegram.org/constructor/messageMediaVenue */
export interface messageMediaVenue {
_: "messageMediaVenue";
geo: GeoPoint;
title: string;
address: string;
provider: string;
venue_id: string;
venue_type: string;
}
/** https://core.telegram.org/constructor/messageMediaGame */
export interface messageMediaGame {
_: "messageMediaGame";
game: Game;
}
/** https://core.telegram.org/constructor/messageMediaInvoice */
export interface messageMediaInvoice {
_: "messageMediaInvoice";
shipping_address_requested?: true;
test?: true;
title: string;
description: string;
photo?: WebDocument;
receipt_msg_id?: number;
currency: string;
total_amount: bigint;
start_param: string;
extended_media?: MessageExtendedMedia;
}
/** https://core.telegram.org/constructor/messageMediaGeoLive */
export interface messageMediaGeoLive {
_: "messageMediaGeoLive";
geo: GeoPoint;
heading?: number;
period: number;
proximity_notification_radius?: number;
}
/** https://core.telegram.org/constructor/messageMediaPoll */
export interface messageMediaPoll {
_: "messageMediaPoll";
poll: Poll;
results: PollResults;
attached_media?: MessageMedia;
}
/** https://core.telegram.org/constructor/messageMediaDice */
export interface messageMediaDice {
_: "messageMediaDice";
value: number;
emoticon: string;
game_outcome?: messages_EmojiGameOutcome;
}
/** https://core.telegram.org/constructor/messageMediaStory */
export interface messageMediaStory {
_: "messageMediaStory";
via_mention?: true;
peer: Peer;
id: number;
story?: StoryItem;
}
/** https://core.telegram.org/constructor/messageMediaGiveaway */
export interface messageMediaGiveaway {
_: "messageMediaGiveaway";
only_new_subscribers?: true;
winners_are_visible?: true;
channels: Array;
countries_iso2?: Array;
prize_description?: string;
quantity: number;
months?: number;
stars?: bigint;
until_date: number;
}
/** https://core.telegram.org/constructor/messageMediaGiveawayResults */
export interface messageMediaGiveawayResults {
_: "messageMediaGiveawayResults";
only_new_subscribers?: true;
refunded?: true;
channel_id: bigint;
additional_peers_count?: number;
launch_msg_id: number;
winners_count: number;
unclaimed_count: number;
winners: Array;
months?: number;
stars?: bigint;
prize_description?: string;
until_date: number;
}
/** https://core.telegram.org/constructor/messageMediaPaidMedia */
export interface messageMediaPaidMedia {
_: "messageMediaPaidMedia";
stars_amount: bigint;
extended_media: Array;
}
/** https://core.telegram.org/constructor/messageMediaToDo */
export interface messageMediaToDo {
_: "messageMediaToDo";
todo: TodoList;
completions?: Array;
}
/** https://core.telegram.org/constructor/messageMediaVideoStream */
export interface messageMediaVideoStream {
_: "messageMediaVideoStream";
rtmp_stream?: true;
call: InputGroupCall;
}
/** https://core.telegram.org/constructor/messageActionEmpty */
export interface messageActionEmpty {
_: "messageActionEmpty";
}
/** https://core.telegram.org/constructor/messageActionChatCreate */
export interface messageActionChatCreate {
_: "messageActionChatCreate";
title: string;
users: Array;
}
/** https://core.telegram.org/constructor/messageActionChatEditTitle */
export interface messageActionChatEditTitle {
_: "messageActionChatEditTitle";
title: string;
}
/** https://core.telegram.org/constructor/messageActionChatEditPhoto */
export interface messageActionChatEditPhoto {
_: "messageActionChatEditPhoto";
photo: Photo;
}
/** https://core.telegram.org/constructor/messageActionChatDeletePhoto */
export interface messageActionChatDeletePhoto {
_: "messageActionChatDeletePhoto";
}
/** https://core.telegram.org/constructor/messageActionChatAddUser */
export interface messageActionChatAddUser {
_: "messageActionChatAddUser";
users: Array;
}
/** https://core.telegram.org/constructor/messageActionChatDeleteUser */
export interface messageActionChatDeleteUser {
_: "messageActionChatDeleteUser";
user_id: bigint;
}
/** https://core.telegram.org/constructor/messageActionChatJoinedByLink */
export interface messageActionChatJoinedByLink {
_: "messageActionChatJoinedByLink";
inviter_id: bigint;
}
/** https://core.telegram.org/constructor/messageActionChannelCreate */
export interface messageActionChannelCreate {
_: "messageActionChannelCreate";
title: string;
}
/** https://core.telegram.org/constructor/messageActionChatMigrateTo */
export interface messageActionChatMigrateTo {
_: "messageActionChatMigrateTo";
channel_id: bigint;
}
/** https://core.telegram.org/constructor/messageActionChannelMigrateFrom */
export interface messageActionChannelMigrateFrom {
_: "messageActionChannelMigrateFrom";
title: string;
chat_id: bigint;
}
/** https://core.telegram.org/constructor/messageActionPinMessage */
export interface messageActionPinMessage {
_: "messageActionPinMessage";
}
/** https://core.telegram.org/constructor/messageActionHistoryClear */
export interface messageActionHistoryClear {
_: "messageActionHistoryClear";
}
/** https://core.telegram.org/constructor/messageActionGameScore */
export interface messageActionGameScore {
_: "messageActionGameScore";
game_id: bigint;
score: number;
}
/** https://core.telegram.org/constructor/messageActionPaymentSentMe */
export interface messageActionPaymentSentMe {
_: "messageActionPaymentSentMe";
recurring_init?: true;
recurring_used?: true;
currency: string;
total_amount: bigint;
payload: Uint8Array;
info?: PaymentRequestedInfo;
shipping_option_id?: string;
charge: PaymentCharge;
subscription_until_date?: number;
}
/** https://core.telegram.org/constructor/messageActionPaymentSent */
export interface messageActionPaymentSent {
_: "messageActionPaymentSent";
recurring_init?: true;
recurring_used?: true;
currency: string;
total_amount: bigint;
invoice_slug?: string;
subscription_until_date?: number;
}
/** https://core.telegram.org/constructor/messageActionPhoneCall */
export interface messageActionPhoneCall {
_: "messageActionPhoneCall";
video?: true;
call_id: bigint;
reason?: PhoneCallDiscardReason;
duration?: number;
}
/** https://core.telegram.org/constructor/messageActionScreenshotTaken */
export interface messageActionScreenshotTaken {
_: "messageActionScreenshotTaken";
}
/** https://core.telegram.org/constructor/messageActionCustomAction */
export interface messageActionCustomAction {
_: "messageActionCustomAction";
message: string;
}
/** https://core.telegram.org/constructor/messageActionBotAllowed */
export interface messageActionBotAllowed {
_: "messageActionBotAllowed";
attach_menu?: true;
from_request?: true;
domain?: string;
app?: BotApp;
}
/** https://core.telegram.org/constructor/messageActionSecureValuesSentMe */
export interface messageActionSecureValuesSentMe {
_: "messageActionSecureValuesSentMe";
values: Array;
credentials: SecureCredentialsEncrypted;
}
/** https://core.telegram.org/constructor/messageActionSecureValuesSent */
export interface messageActionSecureValuesSent {
_: "messageActionSecureValuesSent";
types: Array;
}
/** https://core.telegram.org/constructor/messageActionContactSignUp */
export interface messageActionContactSignUp {
_: "messageActionContactSignUp";
}
/** https://core.telegram.org/constructor/messageActionGeoProximityReached */
export interface messageActionGeoProximityReached {
_: "messageActionGeoProximityReached";
from_id: Peer;
to_id: Peer;
distance: number;
}
/** https://core.telegram.org/constructor/messageActionGroupCall */
export interface messageActionGroupCall {
_: "messageActionGroupCall";
call: InputGroupCall;
duration?: number;
}
/** https://core.telegram.org/constructor/messageActionInviteToGroupCall */
export interface messageActionInviteToGroupCall {
_: "messageActionInviteToGroupCall";
call: InputGroupCall;
users: Array;
}
/** https://core.telegram.org/constructor/messageActionSetMessagesTTL */
export interface messageActionSetMessagesTTL {
_: "messageActionSetMessagesTTL";
period: number;
auto_setting_from?: bigint;
}
/** https://core.telegram.org/constructor/messageActionGroupCallScheduled */
export interface messageActionGroupCallScheduled {
_: "messageActionGroupCallScheduled";
call: InputGroupCall;
schedule_date: number;
}
/** https://core.telegram.org/constructor/messageActionSetChatTheme */
export interface messageActionSetChatTheme {
_: "messageActionSetChatTheme";
theme: ChatTheme;
}
/** https://core.telegram.org/constructor/messageActionChatJoinedByRequest */
export interface messageActionChatJoinedByRequest {
_: "messageActionChatJoinedByRequest";
}
/** https://core.telegram.org/constructor/messageActionWebViewDataSentMe */
export interface messageActionWebViewDataSentMe {
_: "messageActionWebViewDataSentMe";
text: string;
data: string;
}
/** https://core.telegram.org/constructor/messageActionWebViewDataSent */
export interface messageActionWebViewDataSent {
_: "messageActionWebViewDataSent";
text: string;
}
/** https://core.telegram.org/constructor/messageActionGiftPremium */
export interface messageActionGiftPremium {
_: "messageActionGiftPremium";
currency: string;
amount: bigint;
days: number;
crypto_currency?: string;
crypto_amount?: bigint;
message?: TextWithEntities;
}
/** https://core.telegram.org/constructor/messageActionTopicCreate */
export interface messageActionTopicCreate {
_: "messageActionTopicCreate";
title_missing?: true;
title: string;
icon_color: number;
icon_emoji_id?: bigint;
}
/** https://core.telegram.org/constructor/messageActionTopicEdit */
export interface messageActionTopicEdit {
_: "messageActionTopicEdit";
title?: string;
icon_emoji_id?: bigint;
closed?: boolean;
hidden?: boolean;
}
/** https://core.telegram.org/constructor/messageActionSuggestProfilePhoto */
export interface messageActionSuggestProfilePhoto {
_: "messageActionSuggestProfilePhoto";
photo: Photo;
}
/** https://core.telegram.org/constructor/messageActionRequestedPeer */
export interface messageActionRequestedPeer {
_: "messageActionRequestedPeer";
button_id: number;
peers: Array;
}
/** https://core.telegram.org/constructor/messageActionSetChatWallPaper */
export interface messageActionSetChatWallPaper {
_: "messageActionSetChatWallPaper";
same?: true;
for_both?: true;
wallpaper: WallPaper;
}
/** https://core.telegram.org/constructor/messageActionGiftCode */
export interface messageActionGiftCode {
_: "messageActionGiftCode";
via_giveaway?: true;
unclaimed?: true;
boost_peer?: Peer;
days: number;
slug: string;
currency?: string;
amount?: bigint;
crypto_currency?: string;
crypto_amount?: bigint;
message?: TextWithEntities;
}
/** https://core.telegram.org/constructor/messageActionGiveawayLaunch */
export interface messageActionGiveawayLaunch {
_: "messageActionGiveawayLaunch";
stars?: bigint;
}
/** https://core.telegram.org/constructor/messageActionGiveawayResults */
export interface messageActionGiveawayResults {
_: "messageActionGiveawayResults";
stars?: true;
winners_count: number;
unclaimed_count: number;
}
/** https://core.telegram.org/constructor/messageActionBoostApply */
export interface messageActionBoostApply {
_: "messageActionBoostApply";
boosts: number;
}
/** https://core.telegram.org/constructor/messageActionRequestedPeerSentMe */
export interface messageActionRequestedPeerSentMe {
_: "messageActionRequestedPeerSentMe";
button_id: number;
peers: Array;
}
/** https://core.telegram.org/constructor/messageActionPaymentRefunded */
export interface messageActionPaymentRefunded {
_: "messageActionPaymentRefunded";
peer: Peer;
currency: string;
total_amount: bigint;
payload?: Uint8Array;
charge: PaymentCharge;
}
/** https://core.telegram.org/constructor/messageActionGiftStars */
export interface messageActionGiftStars {
_: "messageActionGiftStars";
currency: string;
amount: bigint;
stars: bigint;
crypto_currency?: string;
crypto_amount?: bigint;
transaction_id?: string;
}
/** https://core.telegram.org/constructor/messageActionPrizeStars */
export interface messageActionPrizeStars {
_: "messageActionPrizeStars";
unclaimed?: true;
stars: bigint;
transaction_id: string;
boost_peer: Peer;
giveaway_msg_id: number;
}
/** https://core.telegram.org/constructor/messageActionStarGift */
export interface messageActionStarGift {
_: "messageActionStarGift";
name_hidden?: true;
saved?: true;
converted?: true;
upgraded?: true;
refunded?: true;
can_upgrade?: true;
prepaid_upgrade?: true;
upgrade_separate?: true;
auction_acquired?: true;
gift: StarGift;
message?: TextWithEntities;
convert_stars?: bigint;
upgrade_msg_id?: number;
upgrade_stars?: bigint;
from_id?: Peer;
peer?: Peer;
saved_id?: bigint;
prepaid_upgrade_hash?: string;
gift_msg_id?: number;
to_id?: Peer;
gift_num?: number;
}
/** https://core.telegram.org/constructor/messageActionStarGiftUnique */
export interface messageActionStarGiftUnique {
_: "messageActionStarGiftUnique";
upgrade?: true;
transferred?: true;
saved?: true;
refunded?: true;
prepaid_upgrade?: true;
assigned?: true;
from_offer?: true;
craft?: true;
gift: StarGift;
can_export_at?: number;
transfer_stars?: bigint;
from_id?: Peer;
peer?: Peer;
saved_id?: bigint;
resale_amount?: StarsAmount;
can_transfer_at?: number;
can_resell_at?: number;
drop_original_details_stars?: bigint;
can_craft_at?: number;
}
/** https://core.telegram.org/constructor/messageActionPaidMessagesRefunded */
export interface messageActionPaidMessagesRefunded {
_: "messageActionPaidMessagesRefunded";
count: number;
stars: bigint;
}
/** https://core.telegram.org/constructor/messageActionPaidMessagesPrice */
export interface messageActionPaidMessagesPrice {
_: "messageActionPaidMessagesPrice";
broadcast_messages_allowed?: true;
stars: bigint;
}
/** https://core.telegram.org/constructor/messageActionConferenceCall */
export interface messageActionConferenceCall {
_: "messageActionConferenceCall";
missed?: true;
active?: true;
video?: true;
call_id: bigint;
duration?: number;
other_participants?: Array;
}
/** https://core.telegram.org/constructor/messageActionTodoCompletions */
export interface messageActionTodoCompletions {
_: "messageActionTodoCompletions";
completed: Array;
incompleted: Array;
}
/** https://core.telegram.org/constructor/messageActionTodoAppendTasks */
export interface messageActionTodoAppendTasks {
_: "messageActionTodoAppendTasks";
list: Array;
}
/** https://core.telegram.org/constructor/messageActionSuggestedPostApproval */
export interface messageActionSuggestedPostApproval {
_: "messageActionSuggestedPostApproval";
rejected?: true;
balance_too_low?: true;
reject_comment?: string;
schedule_date?: number;
price?: StarsAmount;
}
/** https://core.telegram.org/constructor/messageActionSuggestedPostSuccess */
export interface messageActionSuggestedPostSuccess {
_: "messageActionSuggestedPostSuccess";
price: StarsAmount;
}
/** https://core.telegram.org/constructor/messageActionSuggestedPostRefund */
export interface messageActionSuggestedPostRefund {
_: "messageActionSuggestedPostRefund";
payer_initiated?: true;
}
/** https://core.telegram.org/constructor/messageActionGiftTon */
export interface messageActionGiftTon {
_: "messageActionGiftTon";
currency: string;
amount: bigint;
crypto_currency: string;
crypto_amount: bigint;
transaction_id?: string;
}
/** https://core.telegram.org/constructor/messageActionSuggestBirthday */
export interface messageActionSuggestBirthday {
_: "messageActionSuggestBirthday";
birthday: Birthday;
}
/** https://core.telegram.org/constructor/messageActionStarGiftPurchaseOffer */
export interface messageActionStarGiftPurchaseOffer {
_: "messageActionStarGiftPurchaseOffer";
accepted?: true;
declined?: true;
gift: StarGift;
price: StarsAmount;
expires_at: number;
}
/** https://core.telegram.org/constructor/messageActionStarGiftPurchaseOfferDeclined */
export interface messageActionStarGiftPurchaseOfferDeclined {
_: "messageActionStarGiftPurchaseOfferDeclined";
expired?: true;
gift: StarGift;
price: StarsAmount;
}
/** https://core.telegram.org/constructor/messageActionNewCreatorPending */
export interface messageActionNewCreatorPending {
_: "messageActionNewCreatorPending";
new_creator_id: bigint;
}
/** https://core.telegram.org/constructor/messageActionChangeCreator */
export interface messageActionChangeCreator {
_: "messageActionChangeCreator";
new_creator_id: bigint;
}
/** https://core.telegram.org/constructor/messageActionNoForwardsToggle */
export interface messageActionNoForwardsToggle {
_: "messageActionNoForwardsToggle";
prev_value: boolean;
new_value: boolean;
}
/** https://core.telegram.org/constructor/messageActionNoForwardsRequest */
export interface messageActionNoForwardsRequest {
_: "messageActionNoForwardsRequest";
expired?: true;
prev_value: boolean;
new_value: boolean;
}
/** https://core.telegram.org/constructor/messageActionPollAppendAnswer */
export interface messageActionPollAppendAnswer {
_: "messageActionPollAppendAnswer";
answer: PollAnswer;
}
/** https://core.telegram.org/constructor/messageActionPollDeleteAnswer */
export interface messageActionPollDeleteAnswer {
_: "messageActionPollDeleteAnswer";
answer: PollAnswer;
}
/** https://core.telegram.org/constructor/messageActionManagedBotCreated */
export interface messageActionManagedBotCreated {
_: "messageActionManagedBotCreated";
bot_id: bigint;
}
/** https://core.telegram.org/constructor/dialog */
export interface dialog {
_: "dialog";
pinned?: true;
unread_mark?: true;
view_forum_as_messages?: true;
peer: Peer;
top_message: number;
read_inbox_max_id: number;
read_outbox_max_id: number;
unread_count: number;
unread_mentions_count: number;
unread_reactions_count: number;
unread_poll_votes_count: number;
notify_settings: PeerNotifySettings;
pts?: number;
draft?: DraftMessage;
folder_id?: number;
ttl_period?: number;
}
/** https://core.telegram.org/constructor/dialogFolder */
export interface dialogFolder {
_: "dialogFolder";
pinned?: true;
folder: Folder;
peer: Peer;
top_message: number;
unread_muted_peers_count: number;
unread_unmuted_peers_count: number;
unread_muted_messages_count: number;
unread_unmuted_messages_count: number;
}
/** https://core.telegram.org/constructor/photoEmpty */
export interface photoEmpty {
_: "photoEmpty";
id: bigint;
}
/** https://core.telegram.org/constructor/photo */
export interface photo {
_: "photo";
has_stickers?: true;
id: bigint;
access_hash: bigint;
file_reference: Uint8Array;
date: number;
sizes: Array;
video_sizes?: Array;
dc_id: number;
}
/** https://core.telegram.org/constructor/photoSizeEmpty */
export interface photoSizeEmpty {
_: "photoSizeEmpty";
type: string;
}
/** https://core.telegram.org/constructor/photoSize */
export interface photoSize {
_: "photoSize";
type: string;
w: number;
h: number;
size: number;
}
/** https://core.telegram.org/constructor/photoCachedSize */
export interface photoCachedSize {
_: "photoCachedSize";
type: string;
w: number;
h: number;
bytes: Uint8Array;
}
/** https://core.telegram.org/constructor/photoStrippedSize */
export interface photoStrippedSize {
_: "photoStrippedSize";
type: string;
bytes: Uint8Array;
}
/** https://core.telegram.org/constructor/photoSizeProgressive */
export interface photoSizeProgressive {
_: "photoSizeProgressive";
type: string;
w: number;
h: number;
sizes: Array;
}
/** https://core.telegram.org/constructor/photoPathSize */
export interface photoPathSize {
_: "photoPathSize";
type: string;
bytes: Uint8Array;
}
/** https://core.telegram.org/constructor/geoPointEmpty */
export interface geoPointEmpty {
_: "geoPointEmpty";
}
/** https://core.telegram.org/constructor/geoPoint */
export interface geoPoint {
_: "geoPoint";
long: number;
lat: number;
access_hash: bigint;
accuracy_radius?: number;
}
/** https://core.telegram.org/constructor/auth.sentCode */
export interface auth_sentCode {
_: "auth.sentCode";
type: auth_SentCodeType;
phone_code_hash: string;
next_type?: auth_CodeType;
timeout?: number;
}
/** https://core.telegram.org/constructor/auth.sentCodeSuccess */
export interface auth_sentCodeSuccess {
_: "auth.sentCodeSuccess";
authorization: auth_Authorization;
}
/** https://core.telegram.org/constructor/auth.sentCodePaymentRequired */
export interface auth_sentCodePaymentRequired {
_: "auth.sentCodePaymentRequired";
store_product: string;
phone_code_hash: string;
support_email_address: string;
support_email_subject: string;
premium_days: number;
currency: string;
amount: bigint;
}
/** https://core.telegram.org/constructor/auth.authorization */
export interface auth_authorization {
_: "auth.authorization";
setup_password_required?: true;
otherwise_relogin_days?: number;
tmp_sessions?: number;
future_auth_token?: Uint8Array;
user: User;
}
/** https://core.telegram.org/constructor/auth.authorizationSignUpRequired */
export interface auth_authorizationSignUpRequired {
_: "auth.authorizationSignUpRequired";
terms_of_service?: help_TermsOfService;
}
/** https://core.telegram.org/constructor/auth.exportedAuthorization */
export interface auth_exportedAuthorization {
_: "auth.exportedAuthorization";
id: bigint;
bytes: Uint8Array;
}
/** https://core.telegram.org/constructor/inputNotifyPeer */
export interface inputNotifyPeer {
_: "inputNotifyPeer";
peer: InputPeer;
}
/** https://core.telegram.org/constructor/inputNotifyUsers */
export interface inputNotifyUsers {
_: "inputNotifyUsers";
}
/** https://core.telegram.org/constructor/inputNotifyChats */
export interface inputNotifyChats {
_: "inputNotifyChats";
}
/** https://core.telegram.org/constructor/inputNotifyBroadcasts */
export interface inputNotifyBroadcasts {
_: "inputNotifyBroadcasts";
}
/** https://core.telegram.org/constructor/inputNotifyForumTopic */
export interface inputNotifyForumTopic {
_: "inputNotifyForumTopic";
peer: InputPeer;
top_msg_id: number;
}
/** https://core.telegram.org/constructor/inputPeerNotifySettings */
export interface inputPeerNotifySettings {
_: "inputPeerNotifySettings";
show_previews?: boolean;
silent?: boolean;
mute_until?: number;
sound?: NotificationSound;
stories_muted?: boolean;
stories_hide_sender?: boolean;
stories_sound?: NotificationSound;
}
/** https://core.telegram.org/constructor/peerNotifySettings */
export interface peerNotifySettings {
_: "peerNotifySettings";
show_previews?: boolean;
silent?: boolean;
mute_until?: number;
ios_sound?: NotificationSound;
android_sound?: NotificationSound;
other_sound?: NotificationSound;
stories_muted?: boolean;
stories_hide_sender?: boolean;
stories_ios_sound?: NotificationSound;
stories_android_sound?: NotificationSound;
stories_other_sound?: NotificationSound;
}
/** https://core.telegram.org/constructor/peerSettings */
export interface peerSettings {
_: "peerSettings";
report_spam?: true;
add_contact?: true;
block_contact?: true;
share_contact?: true;
need_contacts_exception?: true;
report_geo?: true;
autoarchived?: true;
invite_members?: true;
request_chat_broadcast?: true;
business_bot_paused?: true;
business_bot_can_reply?: true;
geo_distance?: number;
request_chat_title?: string;
request_chat_date?: number;
business_bot_id?: bigint;
business_bot_manage_url?: string;
charge_paid_message_stars?: bigint;
registration_month?: string;
phone_country?: string;
name_change_date?: number;
photo_change_date?: number;
}
/** https://core.telegram.org/constructor/wallPaper */
export interface wallPaper {
_: "wallPaper";
id: bigint;
creator?: true;
default?: true;
pattern?: true;
dark?: true;
access_hash: bigint;
slug: string;
document: Document;
settings?: WallPaperSettings;
}
/** https://core.telegram.org/constructor/wallPaperNoFile */
export interface wallPaperNoFile {
_: "wallPaperNoFile";
id: bigint;
default?: true;
dark?: true;
settings?: WallPaperSettings;
}
/** https://core.telegram.org/constructor/inputReportReasonSpam */
export interface inputReportReasonSpam {
_: "inputReportReasonSpam";
}
/** https://core.telegram.org/constructor/inputReportReasonViolence */
export interface inputReportReasonViolence {
_: "inputReportReasonViolence";
}
/** https://core.telegram.org/constructor/inputReportReasonPornography */
export interface inputReportReasonPornography {
_: "inputReportReasonPornography";
}
/** https://core.telegram.org/constructor/inputReportReasonChildAbuse */
export interface inputReportReasonChildAbuse {
_: "inputReportReasonChildAbuse";
}
/** https://core.telegram.org/constructor/inputReportReasonOther */
export interface inputReportReasonOther {
_: "inputReportReasonOther";
}
/** https://core.telegram.org/constructor/inputReportReasonCopyright */
export interface inputReportReasonCopyright {
_: "inputReportReasonCopyright";
}
/** https://core.telegram.org/constructor/inputReportReasonGeoIrrelevant */
export interface inputReportReasonGeoIrrelevant {
_: "inputReportReasonGeoIrrelevant";
}
/** https://core.telegram.org/constructor/inputReportReasonFake */
export interface inputReportReasonFake {
_: "inputReportReasonFake";
}
/** https://core.telegram.org/constructor/inputReportReasonIllegalDrugs */
export interface inputReportReasonIllegalDrugs {
_: "inputReportReasonIllegalDrugs";
}
/** https://core.telegram.org/constructor/inputReportReasonPersonalDetails */
export interface inputReportReasonPersonalDetails {
_: "inputReportReasonPersonalDetails";
}
/** https://core.telegram.org/constructor/userFull */
export interface userFull {
_: "userFull";
blocked?: true;
phone_calls_available?: true;
phone_calls_private?: true;
can_pin_message?: true;
has_scheduled?: true;
video_calls_available?: true;
voice_messages_forbidden?: true;
translations_disabled?: true;
stories_pinned_available?: true;
blocked_my_stories_from?: true;
wallpaper_overridden?: true;
contact_require_premium?: true;
read_dates_private?: true;
sponsored_enabled?: true;
can_view_revenue?: true;
bot_can_manage_emoji_status?: true;
display_gifts_button?: true;
noforwards_my_enabled?: true;
noforwards_peer_enabled?: true;
unofficial_security_risk?: true;
id: bigint;
about?: string;
settings: PeerSettings;
personal_photo?: Photo;
profile_photo?: Photo;
fallback_photo?: Photo;
notify_settings: PeerNotifySettings;
bot_info?: BotInfo;
pinned_msg_id?: number;
common_chats_count: number;
folder_id?: number;
ttl_period?: number;
theme?: ChatTheme;
private_forward_name?: string;
bot_group_admin_rights?: ChatAdminRights;
bot_broadcast_admin_rights?: ChatAdminRights;
wallpaper?: WallPaper;
stories?: PeerStories;
business_work_hours?: BusinessWorkHours;
business_location?: BusinessLocation;
business_greeting_message?: BusinessGreetingMessage;
business_away_message?: BusinessAwayMessage;
business_intro?: BusinessIntro;
birthday?: Birthday;
personal_channel_id?: bigint;
personal_channel_message?: number;
stargifts_count?: number;
starref_program?: StarRefProgram;
bot_verification?: BotVerification;
send_paid_messages_stars?: bigint;
disallowed_gifts?: DisallowedGiftsSettings;
stars_rating?: StarsRating;
stars_my_pending_rating?: StarsRating;
stars_my_pending_rating_date?: number;
main_tab?: ProfileTab;
saved_music?: Document;
note?: TextWithEntities;
bot_manager_id?: bigint;
}
/** https://core.telegram.org/constructor/contact */
export interface contact {
_: "contact";
user_id: bigint;
mutual: boolean;
}
/** https://core.telegram.org/constructor/importedContact */
export interface importedContact {
_: "importedContact";
user_id: bigint;
client_id: bigint;
}
/** https://core.telegram.org/constructor/contactStatus */
export interface contactStatus {
_: "contactStatus";
user_id: bigint;
status: UserStatus;
}
/** https://core.telegram.org/constructor/contacts.contactsNotModified */
export interface contacts_contactsNotModified {
_: "contacts.contactsNotModified";
}
/** https://core.telegram.org/constructor/contacts.contacts */
export interface contacts_contacts {
_: "contacts.contacts";
contacts: Array;
saved_count: number;
users: Array;
}
/** https://core.telegram.org/constructor/contacts.importedContacts */
export interface contacts_importedContacts {
_: "contacts.importedContacts";
imported: Array;
popular_invites: Array;
retry_contacts: Array;
users: Array;
}
/** https://core.telegram.org/constructor/contacts.blocked */
export interface contacts_blocked {
_: "contacts.blocked";
blocked: Array;
chats: Array;
users: Array;
}
/** https://core.telegram.org/constructor/contacts.blockedSlice */
export interface contacts_blockedSlice {
_: "contacts.blockedSlice";
count: number;
blocked: Array;
chats: Array;
users: Array;
}
/** https://core.telegram.org/constructor/messages.dialogs */
export interface messages_dialogs {
_: "messages.dialogs";
dialogs: Array