/**
An object of this type can be returned on every function call, in case of an error.
*/
export interface Error {
    '@type': 'error';
    /**
Error code; subject to future changes. If the error code is 406, the error message must not be processed in any way and
must not be displayed to the user.
*/
    code: number;
    /**
Error message; subject to future changes.
*/
    message: string;
}
/**
An object of this type is returned on a successful function call for certain functions.
*/
export interface Ok {
    '@type': 'ok';
}
/**
Provides information about the method by which an authentication code is delivered to the user.
Subtype of {@link AuthenticationCodeType}.
*/
export interface AuthenticationCodeTypeTelegramMessage {
    '@type': 'authenticationCodeTypeTelegramMessage';
    /**
Length of the code.
*/
    length: number;
}
/**
A digit-only authentication code is delivered via an SMS message to the specified phone number; non-official
applications may not receive this type of code.
Subtype of {@link AuthenticationCodeType}.
*/
export interface AuthenticationCodeTypeSms {
    '@type': 'authenticationCodeTypeSms';
    /**
Length of the code.
*/
    length: number;
}
/**
An authentication code is a word delivered via an SMS message to the specified phone number; non-official applications
may not receive this type of code.
Subtype of {@link AuthenticationCodeType}.
*/
export interface AuthenticationCodeTypeSmsWord {
    '@type': 'authenticationCodeTypeSmsWord';
    /**
The first letters of the word if known.
*/
    first_letter: string;
}
/**
An authentication code is a phrase from multiple words delivered via an SMS message to the specified phone number;
non-official applications may not receive this type of code.
Subtype of {@link AuthenticationCodeType}.
*/
export interface AuthenticationCodeTypeSmsPhrase {
    '@type': 'authenticationCodeTypeSmsPhrase';
    /**
The first word of the phrase if known.
*/
    first_word: string;
}
/**
A digit-only authentication code is delivered via a phone call to the specified phone number.
Subtype of {@link AuthenticationCodeType}.
*/
export interface AuthenticationCodeTypeCall {
    '@type': 'authenticationCodeTypeCall';
    /**
Length of the code.
*/
    length: number;
}
/**
An authentication code is delivered by an immediately canceled call to the specified phone number. The phone number that
calls is the code that must be entered automatically.
Subtype of {@link AuthenticationCodeType}.
*/
export interface AuthenticationCodeTypeFlashCall {
    '@type': 'authenticationCodeTypeFlashCall';
    /**
Pattern of the phone number from which the call will be made.
*/
    pattern: string;
}
/**
An authentication code is delivered by an immediately canceled call to the specified phone number. The last digits of
the phone number that calls are the code that must be entered manually by the user.
Subtype of {@link AuthenticationCodeType}.
*/
export interface AuthenticationCodeTypeMissedCall {
    '@type': 'authenticationCodeTypeMissedCall';
    /**
Prefix of the phone number from which the call will be made.
*/
    phone_number_prefix: string;
    /**
Number of digits in the code, excluding the prefix.
*/
    length: number;
}
/**
A digit-only authentication code is delivered to https://fragment.com. The user must be logged in there via a wallet
owning the phone number's NFT.
Subtype of {@link AuthenticationCodeType}.
*/
export interface AuthenticationCodeTypeFragment {
    '@type': 'authenticationCodeTypeFragment';
    /**
URL to open to receive the code.
*/
    url: string;
    /**
Length of the code.
*/
    length: number;
}
/**
A digit-only authentication code is delivered via Firebase Authentication to the official Android application.
Subtype of {@link AuthenticationCodeType}.
*/
export interface AuthenticationCodeTypeFirebaseAndroid {
    '@type': 'authenticationCodeTypeFirebaseAndroid';
    /**
Parameters to be used for device verification.
*/
    device_verification_parameters: FirebaseDeviceVerificationParameters;
    /**
Length of the code.
*/
    length: number;
}
/**
A digit-only authentication code is delivered via Firebase Authentication to the official iOS application.
Subtype of {@link AuthenticationCodeType}.
*/
export interface AuthenticationCodeTypeFirebaseIos {
    '@type': 'authenticationCodeTypeFirebaseIos';
    /**
Receipt of successful application token validation to compare with receipt from push notification.
*/
    receipt: string;
    /**
Time after the next authentication method is expected to be used if verification push notification isn't received, in
seconds.
*/
    push_timeout: number;
    /**
Length of the code.
*/
    length: number;
}
/**
Information about the authentication code that was sent.
*/
export interface AuthenticationCodeInfo {
    '@type': 'authenticationCodeInfo';
    /**
A phone number that is being authenticated.
*/
    phone_number: string;
    /**
The way the code was sent to the user.
*/
    type: AuthenticationCodeType;
    /**
The way the next code will be sent to the user; may be null.
*/
    next_type: AuthenticationCodeType;
    /**
Timeout before the code can be re-sent, in seconds.
*/
    timeout: number;
}
/**
Information about the email address authentication code that was sent.
*/
export interface EmailAddressAuthenticationCodeInfo {
    '@type': 'emailAddressAuthenticationCodeInfo';
    /**
Pattern of the email address to which an authentication code was sent.
*/
    email_address_pattern: string;
    /**
Length of the code; 0 if unknown.
*/
    length: number;
}
/**
Contains authentication data for an email address.
Subtype of {@link EmailAddressAuthentication}.
*/
export interface EmailAddressAuthenticationCode {
    '@type': 'emailAddressAuthenticationCode';
    /**
The code.
*/
    code: string;
}
/**
An authentication token received through Apple ID.
Subtype of {@link EmailAddressAuthentication}.
*/
export interface EmailAddressAuthenticationAppleId {
    '@type': 'emailAddressAuthenticationAppleId';
    /**
The token.
*/
    token: string;
}
/**
An authentication token received through Google ID.
Subtype of {@link EmailAddressAuthentication}.
*/
export interface EmailAddressAuthenticationGoogleId {
    '@type': 'emailAddressAuthenticationGoogleId';
    /**
The token.
*/
    token: string;
}
/**
Describes reset state of an email address.
Subtype of {@link EmailAddressResetState}.
*/
export interface EmailAddressResetStateAvailable {
    '@type': 'emailAddressResetStateAvailable';
    /**
Time required to wait before the email address can be reset; 0 if the user is subscribed to Telegram Premium.
*/
    wait_period: number;
}
/**
Email address reset has already been requested. Call resetAuthenticationEmailAddress to check whether immediate reset is
possible.
Subtype of {@link EmailAddressResetState}.
*/
export interface EmailAddressResetStatePending {
    '@type': 'emailAddressResetStatePending';
    /**
Left time before the email address will be reset, in seconds. updateAuthorizationState is not sent when this field
changes.
*/
    reset_in: number;
}
/**
Represents a part of the text that needs to be formatted in some unusual way.
*/
export interface TextEntity {
    '@type': 'textEntity';
    /**
Offset of the entity, in UTF-16 code units.
*/
    offset: number;
    /**
Length of the entity, in UTF-16 code units.
*/
    length: number;
    /**
Type of the entity.
*/
    type: TextEntityType;
}
/**
Contains a list of text entities.
*/
export interface TextEntities {
    '@type': 'textEntities';
    /**
List of text entities.
*/
    entities: TextEntity[];
}
/**
A text with some entities.
*/
export interface FormattedText {
    '@type': 'formattedText';
    /**
The text.
*/
    text: string;
    /**
Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. Pre, Code and
PreCode entities can't contain other entities. BlockQuote entities can't contain other BlockQuote entities. Bold,
Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other
entities can't contain each other.
*/
    entities: TextEntity[];
}
/**
Contains Telegram terms of service.
*/
export interface TermsOfService {
    '@type': 'termsOfService';
    /**
Text of the terms of service.
*/
    text: FormattedText;
    /**
The minimum age of a user to be able to accept the terms; 0 if age isn't restricted.
*/
    min_user_age: number;
    /**
True, if a blocking popup with terms of service must be shown to the user.
*/
    show_popup?: boolean;
}
/**
Represents the current authorization state of the TDLib client.
Subtype of {@link AuthorizationState}.
*/
export interface AuthorizationStateWaitTdlibParameters {
    '@type': 'authorizationStateWaitTdlibParameters';
}
/**
TDLib needs the user's phone number to authorize. Call setAuthenticationPhoneNumber to provide the phone number, or use
requestQrCodeAuthentication or checkAuthenticationBotToken for other authentication options.
Subtype of {@link AuthorizationState}.
*/
export interface AuthorizationStateWaitPhoneNumber {
    '@type': 'authorizationStateWaitPhoneNumber';
}
/**
TDLib needs the user's email address to authorize. Call setAuthenticationEmailAddress to provide the email address, or
directly call checkAuthenticationEmailCode with Apple ID/Google ID token if allowed.
Subtype of {@link AuthorizationState}.
*/
export interface AuthorizationStateWaitEmailAddress {
    '@type': 'authorizationStateWaitEmailAddress';
    /**
True, if authorization through Apple ID is allowed.
*/
    allow_apple_id?: boolean;
    /**
True, if authorization through Google ID is allowed.
*/
    allow_google_id?: boolean;
}
/**
TDLib needs the user's authentication code sent to an email address to authorize. Call checkAuthenticationEmailCode to
provide the code.
Subtype of {@link AuthorizationState}.
*/
export interface AuthorizationStateWaitEmailCode {
    '@type': 'authorizationStateWaitEmailCode';
    /**
True, if authorization through Apple ID is allowed.
*/
    allow_apple_id?: boolean;
    /**
True, if authorization through Google ID is allowed.
*/
    allow_google_id?: boolean;
    /**
Information about the sent authentication code.
*/
    code_info: EmailAddressAuthenticationCodeInfo;
    /**
Reset state of the email address; may be null if the email address can't be reset.
*/
    email_address_reset_state: EmailAddressResetState;
}
/**
TDLib needs the user's authentication code to authorize. Call checkAuthenticationCode to check the code.
Subtype of {@link AuthorizationState}.
*/
export interface AuthorizationStateWaitCode {
    '@type': 'authorizationStateWaitCode';
    /**
Information about the authorization code that was sent.
*/
    code_info: AuthenticationCodeInfo;
}
/**
The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link.
Subtype of {@link AuthorizationState}.
*/
export interface AuthorizationStateWaitOtherDeviceConfirmation {
    '@type': 'authorizationStateWaitOtherDeviceConfirmation';
    /**
A tg:// URL for the QR code. The link will be updated frequently.
*/
    link: string;
}
/**
The user is unregistered and need to accept terms of service and enter their first name and last name to finish
registration. Call registerUser to accept the terms of service and provide the data.
Subtype of {@link AuthorizationState}.
*/
export interface AuthorizationStateWaitRegistration {
    '@type': 'authorizationStateWaitRegistration';
    /**
Telegram terms of service.
*/
    terms_of_service: TermsOfService;
}
/**
The user has been authorized, but needs to enter a 2-step verification password to start using the application. Call
checkAuthenticationPassword to provide the password, or requestAuthenticationPasswordRecovery to recover the password,
or deleteAccount to delete the account after a week.
Subtype of {@link AuthorizationState}.
*/
export interface AuthorizationStateWaitPassword {
    '@type': 'authorizationStateWaitPassword';
    /**
Hint for the password; may be empty.
*/
    password_hint: string;
    /**
True, if a recovery email address has been set up.
*/
    has_recovery_email_address?: boolean;
    /**
True, if some Telegram Passport elements were saved.
*/
    has_passport_data?: boolean;
    /**
Pattern of the email address to which the recovery email was sent; empty until a recovery email has been sent.
*/
    recovery_email_address_pattern: string;
}
/**
The user has been successfully authorized. TDLib is now ready to answer general requests.
Subtype of {@link AuthorizationState}.
*/
export interface AuthorizationStateReady {
    '@type': 'authorizationStateReady';
}
/**
The user is currently logging out.
Subtype of {@link AuthorizationState}.
*/
export interface AuthorizationStateLoggingOut {
    '@type': 'authorizationStateLoggingOut';
}
/**
TDLib is closing, all subsequent queries will be answered with the error 500. Note that closing TDLib can take a while.
All resources will be freed only after authorizationStateClosed has been received.
Subtype of {@link AuthorizationState}.
*/
export interface AuthorizationStateClosing {
    '@type': 'authorizationStateClosing';
}
/**
TDLib client is in its final state. All databases are closed and all resources are released. No other updates will be
received after this. All queries will be responded to with error code 500. To continue working, one must create a new
instance of the TDLib client.
Subtype of {@link AuthorizationState}.
*/
export interface AuthorizationStateClosed {
    '@type': 'authorizationStateClosed';
}
/**
Describes parameters to be used for device verification.
Subtype of {@link FirebaseDeviceVerificationParameters}.
*/
export interface FirebaseDeviceVerificationParametersSafetyNet {
    '@type': 'firebaseDeviceVerificationParametersSafetyNet';
    /**
Nonce to pass to the SafetyNet Attestation API.
*/
    nonce: string;
}
/**
Device verification must be performed with the classic Play Integrity verification
(https://developer.android.com/google/play/integrity/classic).
Subtype of {@link FirebaseDeviceVerificationParameters}.
*/
export interface FirebaseDeviceVerificationParametersPlayIntegrity {
    '@type': 'firebaseDeviceVerificationParametersPlayIntegrity';
    /**
Base64url-encoded nonce to pass to the Play Integrity API.
*/
    nonce: string;
    /**
Cloud project number to pass to the Play Integrity API.
*/
    cloud_project_number: string;
}
/**
Represents the current state of 2-step verification.
*/
export interface PasswordState {
    '@type': 'passwordState';
    /**
True, if a 2-step verification password is set.
*/
    has_password?: boolean;
    /**
Hint for the password; may be empty.
*/
    password_hint: string;
    /**
True, if a recovery email is set.
*/
    has_recovery_email_address?: boolean;
    /**
True, if some Telegram Passport elements were saved.
*/
    has_passport_data?: boolean;
    /**
Information about the recovery email address to which the confirmation email was sent; may be null.
*/
    recovery_email_address_code_info: EmailAddressAuthenticationCodeInfo;
    /**
Pattern of the email address set up for logging in.
*/
    login_email_address_pattern: string;
    /**
If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using
resetPassword.
*/
    pending_reset_date: number;
}
/**
Contains information about the current recovery email address.
*/
export interface RecoveryEmailAddress {
    '@type': 'recoveryEmailAddress';
    /**
Recovery email address.
*/
    recovery_email_address: string;
}
/**
Returns information about the availability of a temporary password, which can be used for payments.
*/
export interface TemporaryPasswordState {
    '@type': 'temporaryPasswordState';
    /**
True, if a temporary password is available.
*/
    has_password?: boolean;
    /**
Time left before the temporary password expires, in seconds.
*/
    valid_for: number;
}
/**
Represents a local file.
*/
export interface LocalFile {
    '@type': 'localFile';
    /**
Local path to the locally available file part; may be empty.
*/
    path: string;
    /**
True, if it is possible to download or generate the file.
*/
    can_be_downloaded?: boolean;
    /**
True, if the file can be deleted.
*/
    can_be_deleted?: boolean;
    /**
True, if the file is currently being downloaded (or a local copy is being generated by some other means).
*/
    is_downloading_active?: boolean;
    /**
True, if the local copy is fully available.
*/
    is_downloading_completed?: boolean;
    /**
Download will be started from this offset. downloaded_prefix_size is calculated from this offset.
*/
    download_offset: number;
    /**
If is_downloading_completed is false, then only some prefix of the file starting from download_offset is ready to be
read. downloaded_prefix_size is the size of that prefix in bytes.
*/
    downloaded_prefix_size: number;
    /**
Total downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be
bigger, and some parts of it may contain garbage.
*/
    downloaded_size: number;
}
/**
Represents a remote file.
*/
export interface RemoteFile {
    '@type': 'remoteFile';
    /**
Remote file identifier; may be empty. Can be used by the current user across application restarts or even from other
devices. Uniquely identifies a file, but a file can have a lot of different valid identifiers. If the identifier starts
with "http://" or "https://", it represents the HTTP URL of the file. TDLib is currently unable to download files if
only their URL is known. If downloadFile/addFileToDownloads is called on such a file or if it is sent to a secret chat,
TDLib starts a file generation process by sending updateFileGenerationStart to the application with the HTTP URL in the
original_path and "#url#" as the conversion string. Application must generate the file by downloading it to the
specified location.
*/
    id: string;
    /**
Unique file identifier; may be empty if unknown. The unique file identifier which is the same for the same file even for
different users and is persistent over time.
*/
    unique_id: string;
    /**
True, if the file is currently being uploaded (or a remote copy is being generated by some other means).
*/
    is_uploading_active?: boolean;
    /**
True, if a remote copy is fully available.
*/
    is_uploading_completed?: boolean;
    /**
Size of the remote available part of the file, in bytes; 0 if unknown.
*/
    uploaded_size: number;
}
/**
Represents a file.
*/
export interface File {
    '@type': 'file';
    /**
Unique file identifier.
*/
    id: number;
    /**
File size, in bytes; 0 if unknown.
*/
    size: number;
    /**
Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress.
*/
    expected_size: number;
    /**
Information about the local copy of the file.
*/
    local: LocalFile;
    /**
Information about the remote copy of the file.
*/
    remote: RemoteFile;
}
/**
Points to a file.
Subtype of {@link InputFile}.
*/
export interface InputFileId {
    '@type': 'inputFileId';
    /**
Unique file identifier.
*/
    id: number;
}
/**
A file defined by its remote identifier. The remote identifier is guaranteed to be usable only if the corresponding file
is still accessible to the user and known to TDLib. For example, if the file is from a message, then the message must be
not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file
must be preloaded by the application.
Subtype of {@link InputFile}.
*/
export interface InputFileRemote {
    '@type': 'inputFileRemote';
    /**
Remote file identifier.
*/
    id: string;
}
/**
A file defined by a local path.
Subtype of {@link InputFile}.
*/
export interface InputFileLocal {
    '@type': 'inputFileLocal';
    /**
Local path to the file.
*/
    path: string;
}
/**
A file generated by the application. The application must handle updates updateFileGenerationStart and
updateFileGenerationStop to generate the file when asked by TDLib.
Subtype of {@link InputFile}.
*/
export interface InputFileGenerated {
    '@type': 'inputFileGenerated';
    /**
Local path to a file from which the file is generated. The path doesn't have to be a valid path and is used by TDLib
only to detect name and MIME type of the generated file.
*/
    original_path: string;
    /**
String specifying the conversion applied to the original file; must be persistent across application restarts.
Conversions beginning with '#' are reserved for internal TDLib usage.
*/
    conversion: string;
    /**
Expected size of the generated file, in bytes; pass 0 if unknown.
*/
    expected_size: number;
}
/**
Describes an image in JPEG format.
*/
export interface PhotoSize {
    '@type': 'photoSize';
    /**
Image type (see https://core.telegram.org/constructor/photoSize).
*/
    type: string;
    /**
Information about the image file.
*/
    photo: File;
    /**
Image width.
*/
    width: number;
    /**
Image height.
*/
    height: number;
    /**
Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image; in bytes.
*/
    progressive_sizes: number[];
}
/**
Thumbnail image of a very poor quality and low resolution.
*/
export interface Minithumbnail {
    '@type': 'minithumbnail';
    /**
Thumbnail width, usually doesn't exceed 40.
*/
    width: number;
    /**
Thumbnail height, usually doesn't exceed 40.
*/
    height: number;
    /**
The thumbnail in JPEG format.
*/
    data: string;
}
/**
Describes format of a thumbnail.
Subtype of {@link ThumbnailFormat}.
*/
export interface ThumbnailFormatJpeg {
    '@type': 'thumbnailFormatJpeg';
}
/**
The thumbnail is in static GIF format. It will be used only for some bot inline query results.
Subtype of {@link ThumbnailFormat}.
*/
export interface ThumbnailFormatGif {
    '@type': 'thumbnailFormatGif';
}
/**
The thumbnail is in MPEG4 format. It will be used only for some animations and videos.
Subtype of {@link ThumbnailFormat}.
*/
export interface ThumbnailFormatMpeg4 {
    '@type': 'thumbnailFormatMpeg4';
}
/**
The thumbnail is in PNG format. It will be used only for background patterns.
Subtype of {@link ThumbnailFormat}.
*/
export interface ThumbnailFormatPng {
    '@type': 'thumbnailFormatPng';
}
/**
The thumbnail is in TGS format. It will be used only for sticker sets.
Subtype of {@link ThumbnailFormat}.
*/
export interface ThumbnailFormatTgs {
    '@type': 'thumbnailFormatTgs';
}
/**
The thumbnail is in WEBM format. It will be used only for sticker sets.
Subtype of {@link ThumbnailFormat}.
*/
export interface ThumbnailFormatWebm {
    '@type': 'thumbnailFormatWebm';
}
/**
The thumbnail is in WEBP format. It will be used only for some stickers and sticker sets.
Subtype of {@link ThumbnailFormat}.
*/
export interface ThumbnailFormatWebp {
    '@type': 'thumbnailFormatWebp';
}
/**
Represents a thumbnail.
*/
export interface Thumbnail {
    '@type': 'thumbnail';
    /**
Thumbnail format.
*/
    format: ThumbnailFormat;
    /**
Thumbnail width.
*/
    width: number;
    /**
Thumbnail height.
*/
    height: number;
    /**
The thumbnail.
*/
    file: File;
}
/**
Part of the face, relative to which a mask is placed.
Subtype of {@link MaskPoint}.
*/
export interface MaskPointForehead {
    '@type': 'maskPointForehead';
}
/**
The mask is placed relatively to the eyes.
Subtype of {@link MaskPoint}.
*/
export interface MaskPointEyes {
    '@type': 'maskPointEyes';
}
/**
The mask is placed relatively to the mouth.
Subtype of {@link MaskPoint}.
*/
export interface MaskPointMouth {
    '@type': 'maskPointMouth';
}
/**
The mask is placed relatively to the chin.
Subtype of {@link MaskPoint}.
*/
export interface MaskPointChin {
    '@type': 'maskPointChin';
}
/**
Position on a photo where a mask is placed.
*/
export interface MaskPosition {
    '@type': 'maskPosition';
    /**
Part of the face, relative to which the mask is placed.
*/
    point: MaskPoint;
    /**
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will
place the mask just to the left of the default mask position).
*/
    x_shift: number;
    /**
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. (For example, 1.0 will
place the mask just below the default mask position).
*/
    y_shift: number;
    /**
Mask scaling coefficient. (For example, 2.0 means a doubled size).
*/
    scale: number;
}
/**
Describes format of a sticker.
Subtype of {@link StickerFormat}.
*/
export interface StickerFormatWebp {
    '@type': 'stickerFormatWebp';
}
/**
The sticker is an animation in TGS format.
Subtype of {@link StickerFormat}.
*/
export interface StickerFormatTgs {
    '@type': 'stickerFormatTgs';
}
/**
The sticker is a video in WEBM format.
Subtype of {@link StickerFormat}.
*/
export interface StickerFormatWebm {
    '@type': 'stickerFormatWebm';
}
/**
Describes type of sticker.
Subtype of {@link StickerType}.
*/
export interface StickerTypeRegular {
    '@type': 'stickerTypeRegular';
}
/**
The sticker is a mask in WEBP format to be placed on photos or videos.
Subtype of {@link StickerType}.
*/
export interface StickerTypeMask {
    '@type': 'stickerTypeMask';
}
/**
The sticker is a custom emoji to be used inside message text and caption.
Subtype of {@link StickerType}.
*/
export interface StickerTypeCustomEmoji {
    '@type': 'stickerTypeCustomEmoji';
}
/**
Contains full information about sticker type.
Subtype of {@link StickerFullType}.
*/
export interface StickerFullTypeRegular {
    '@type': 'stickerFullTypeRegular';
    /**
Premium animation of the sticker; may be null. If present, only Telegram Premium users can use the sticker.
*/
    premium_animation: File;
}
/**
The sticker is a mask in WEBP format to be placed on photos or videos.
Subtype of {@link StickerFullType}.
*/
export interface StickerFullTypeMask {
    '@type': 'stickerFullTypeMask';
    /**
Position where the mask is placed; may be null.
*/
    mask_position: MaskPosition;
}
/**
The sticker is a custom emoji to be used inside message text and caption. Currently, only Telegram Premium users can use
custom emoji.
Subtype of {@link StickerFullType}.
*/
export interface StickerFullTypeCustomEmoji {
    '@type': 'stickerFullTypeCustomEmoji';
    /**
Identifier of the custom emoji.
*/
    custom_emoji_id: string;
    /**
True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji
status, white color on chat photos, or another appropriate color in other places.
*/
    needs_repainting?: boolean;
}
/**
Represents a closed vector path. The path begins at the end point of the last command. The coordinate system origin is
in the upper-left corner.
*/
export interface ClosedVectorPath {
    '@type': 'closedVectorPath';
    /**
List of vector path commands.
*/
    commands: VectorPathCommand[];
}
/**
Represents outline of an image.
*/
export interface Outline {
    '@type': 'outline';
    /**
The list of closed vector paths.
*/
    paths: ClosedVectorPath[];
}
/**
Describes one answer option of a poll.
*/
export interface PollOption {
    '@type': 'pollOption';
    /**
Option text; 1-100 characters. Only custom emoji entities are allowed.
*/
    text: FormattedText;
    /**
Number of voters for this option, available only for closed or voted polls.
*/
    voter_count: number;
    /**
The percentage of votes for this option; 0-100.
*/
    vote_percentage: number;
    /**
True, if the option was chosen by the user.
*/
    is_chosen?: boolean;
    /**
True, if the option is being chosen by a pending setPollAnswer request.
*/
    is_being_chosen?: boolean;
}
/**
Describes the type of poll.
Subtype of {@link PollType}.
*/
export interface PollTypeRegular {
    '@type': 'pollTypeRegular';
    /**
True, if multiple answer options can be chosen simultaneously.
*/
    allow_multiple_answers?: boolean;
}
/**
A poll in quiz mode, which has exactly one correct answer option and can be answered only once.
Subtype of {@link PollType}.
*/
export interface PollTypeQuiz {
    '@type': 'pollTypeQuiz';
    /**
0-based identifier of the correct answer option; -1 for a yet unanswered poll.
*/
    correct_option_id: number;
    /**
Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2
line feeds; empty for a yet unanswered poll.
*/
    explanation: FormattedText;
}
/**
Describes an animation file. The animation must be encoded in GIF or MPEG4 format.
*/
export interface Animation {
    '@type': 'animation';
    /**
Duration of the animation, in seconds; as defined by the sender.
*/
    duration: number;
    /**
Width of the animation.
*/
    width: number;
    /**
Height of the animation.
*/
    height: number;
    /**
Original name of the file; as defined by the sender.
*/
    file_name: string;
    /**
MIME type of the file, usually "image/gif" or "video/mp4".
*/
    mime_type: string;
    /**
True, if stickers were added to the animation. The list of corresponding sticker set can be received using
getAttachedStickerSets.
*/
    has_stickers?: boolean;
    /**
Animation minithumbnail; may be null.
*/
    minithumbnail: Minithumbnail;
    /**
Animation thumbnail in JPEG or MPEG4 format; may be null.
*/
    thumbnail: Thumbnail;
    /**
File containing the animation.
*/
    animation: File;
}
/**
Describes an audio file. Audio is usually in MP3 or M4A format.
*/
export interface Audio {
    '@type': 'audio';
    /**
Duration of the audio, in seconds; as defined by the sender.
*/
    duration: number;
    /**
Title of the audio; as defined by the sender.
*/
    title: string;
    /**
Performer of the audio; as defined by the sender.
*/
    performer: string;
    /**
Original name of the file; as defined by the sender.
*/
    file_name: string;
    /**
The MIME type of the file; as defined by the sender.
*/
    mime_type: string;
    /**
The minithumbnail of the album cover; may be null.
*/
    album_cover_minithumbnail: Minithumbnail;
    /**
The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is expected to be
extracted from the downloaded audio file; may be null.
*/
    album_cover_thumbnail: Thumbnail;
    /**
Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are
approximate.
*/
    external_album_covers: Thumbnail[];
    /**
File containing the audio.
*/
    audio: File;
}
/**
Describes a document of any type.
*/
export interface Document {
    '@type': 'document';
    /**
Original name of the file; as defined by the sender.
*/
    file_name: string;
    /**
MIME type of the file; as defined by the sender.
*/
    mime_type: string;
    /**
Document minithumbnail; may be null.
*/
    minithumbnail: Minithumbnail;
    /**
Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may
be null.
*/
    thumbnail: Thumbnail;
    /**
File containing the document.
*/
    document: File;
}
/**
Describes a photo.
*/
export interface Photo {
    '@type': 'photo';
    /**
True, if stickers were added to the photo. The list of corresponding sticker sets can be received using
getAttachedStickerSets.
*/
    has_stickers?: boolean;
    /**
Photo minithumbnail; may be null.
*/
    minithumbnail: Minithumbnail;
    /**
Available variants of the photo, in different sizes.
*/
    sizes: PhotoSize[];
}
/**
Describes a sticker.
*/
export interface Sticker {
    '@type': 'sticker';
    /**
Unique sticker identifier within the set; 0 if none.
*/
    id: string;
    /**
Identifier of the sticker set to which the sticker belongs; 0 if none.
*/
    set_id: string;
    /**
Sticker width; as defined by the sender.
*/
    width: number;
    /**
Sticker height; as defined by the sender.
*/
    height: number;
    /**
Emoji corresponding to the sticker.
*/
    emoji: string;
    /**
Sticker format.
*/
    format: StickerFormat;
    /**
Sticker's full type.
*/
    full_type: StickerFullType;
    /**
Sticker thumbnail in WEBP or JPEG format; may be null.
*/
    thumbnail: Thumbnail;
    /**
File containing the sticker.
*/
    sticker: File;
}
/**
Describes a video file.
*/
export interface Video {
    '@type': 'video';
    /**
Duration of the video, in seconds; as defined by the sender.
*/
    duration: number;
    /**
Video width; as defined by the sender.
*/
    width: number;
    /**
Video height; as defined by the sender.
*/
    height: number;
    /**
Original name of the file; as defined by the sender.
*/
    file_name: string;
    /**
MIME type of the file; as defined by the sender.
*/
    mime_type: string;
    /**
True, if stickers were added to the video. The list of corresponding sticker sets can be received using
getAttachedStickerSets.
*/
    has_stickers?: boolean;
    /**
True, if the video is expected to be streamed.
*/
    supports_streaming?: boolean;
    /**
Video minithumbnail; may be null.
*/
    minithumbnail: Minithumbnail;
    /**
Video thumbnail in JPEG or MPEG4 format; as defined by the sender; may be null.
*/
    thumbnail: Thumbnail;
    /**
File containing the video.
*/
    video: File;
}
/**
Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format.
*/
export interface VideoNote {
    '@type': 'videoNote';
    /**
Duration of the video, in seconds; as defined by the sender.
*/
    duration: number;
    /**
A waveform representation of the video note's audio in 5-bit format; may be empty if unknown.
*/
    waveform: string;
    /**
Video width and height; as defined by the sender.
*/
    length: number;
    /**
Video minithumbnail; may be null.
*/
    minithumbnail: Minithumbnail;
    /**
Video thumbnail in JPEG format; as defined by the sender; may be null.
*/
    thumbnail: Thumbnail;
    /**
Result of speech recognition in the video note; may be null.
*/
    speech_recognition_result: SpeechRecognitionResult;
    /**
File containing the video.
*/
    video: File;
}
/**
Describes a voice note.
*/
export interface VoiceNote {
    '@type': 'voiceNote';
    /**
Duration of the voice note, in seconds; as defined by the sender.
*/
    duration: number;
    /**
A waveform representation of the voice note in 5-bit format.
*/
    waveform: string;
    /**
MIME type of the file; as defined by the sender. Usually, one of "audio/ogg" for Opus in an OGG container, "audio/mpeg"
for an MP3 audio, or "audio/mp4" for an M4A audio.
*/
    mime_type: string;
    /**
Result of speech recognition in the voice note; may be null.
*/
    speech_recognition_result: SpeechRecognitionResult;
    /**
File containing the voice note.
*/
    voice: File;
}
/**
Describes an animated or custom representation of an emoji.
*/
export interface AnimatedEmoji {
    '@type': 'animatedEmoji';
    /**
Sticker for the emoji; may be null if yet unknown for a custom emoji. If the sticker is a custom emoji, then it can have
arbitrary format.
*/
    sticker: Sticker;
    /**
Expected width of the sticker, which can be used if the sticker is null.
*/
    sticker_width: number;
    /**
Expected height of the sticker, which can be used if the sticker is null.
*/
    sticker_height: number;
    /**
Emoji modifier fitzpatrick type; 0-6; 0 if none.
*/
    fitzpatrick_type: number;
    /**
File containing the sound to be played when the sticker is clicked; may be null. The sound is encoded with the Opus
codec, and stored inside an OGG container.
*/
    sound: File;
}
/**
Describes a user contact.
*/
export interface Contact {
    '@type': 'contact';
    /**
Phone number of the user.
*/
    phone_number: string;
    /**
First name of the user; 1-255 characters in length.
*/
    first_name: string;
    /**
Last name of the user.
*/
    last_name: string;
    /**
Additional data about the user in a form of vCard; 0-2048 bytes in length.
*/
    vcard: string;
    /**
Identifier of the user, if known; 0 otherwise.
*/
    user_id: number;
}
/**
Describes a location on planet Earth.
*/
export interface Location {
    '@type': 'location';
    /**
Latitude of the location in degrees; as defined by the sender.
*/
    latitude: number;
    /**
Longitude of the location, in degrees; as defined by the sender.
*/
    longitude: number;
    /**
The estimated horizontal accuracy of the location, in meters; as defined by the sender. 0 if unknown.
*/
    horizontal_accuracy: number;
}
/**
Describes a venue.
*/
export interface Venue {
    '@type': 'venue';
    /**
Venue location; as defined by the sender.
*/
    location: Location;
    /**
Venue name; as defined by the sender.
*/
    title: string;
    /**
Venue address; as defined by the sender.
*/
    address: string;
    /**
Provider of the venue database; as defined by the sender. Currently, only "foursquare" and "gplaces" (Google Places)
need to be supported.
*/
    provider: string;
    /**
Identifier of the venue in the provider database; as defined by the sender.
*/
    id: string;
    /**
Type of the venue in the provider database; as defined by the sender.
*/
    type: string;
}
/**
Describes a game. Use getInternalLink with internalLinkTypeGame to share the game.
*/
export interface Game {
    '@type': 'game';
    /**
Unique game identifier.
*/
    id: string;
    /**
Game short name.
*/
    short_name: string;
    /**
Game title.
*/
    title: string;
    /**
Game text, usually containing scoreboards for a game.
*/
    text: FormattedText;
    /**
Describes a game. Use getInternalLink with internalLinkTypeGame to share the game.
*/
    description: string;
    /**
Game photo.
*/
    photo: Photo;
    /**
Game animation; may be null.
*/
    animation: Animation;
}
/**
Describes a Web App. Use getInternalLink with internalLinkTypeWebApp to share the Web App.
*/
export interface WebApp {
    '@type': 'webApp';
    /**
Web App short name.
*/
    short_name: string;
    /**
Web App title.
*/
    title: string;
    /**
Describes a Web App. Use getInternalLink with internalLinkTypeWebApp to share the Web App.
*/
    description: string;
    /**
Web App photo.
*/
    photo: Photo;
    /**
Web App animation; may be null.
*/
    animation: Animation;
}
/**
Describes a poll.
*/
export interface Poll {
    '@type': 'poll';
    /**
Unique poll identifier.
*/
    id: string;
    /**
Poll question; 1-300 characters. Only custom emoji entities are allowed.
*/
    question: FormattedText;
    /**
List of poll answer options.
*/
    options: PollOption[];
    /**
Total number of voters, participating in the poll.
*/
    total_voter_count: number;
    /**
Identifiers of recent voters, if the poll is non-anonymous.
*/
    recent_voter_ids: MessageSender[];
    /**
True, if the poll is anonymous.
*/
    is_anonymous?: boolean;
    /**
Type of the poll.
*/
    type: PollType;
    /**
Amount of time the poll will be active after creation, in seconds.
*/
    open_period: number;
    /**
Point in time (Unix timestamp) when the poll will automatically be closed.
*/
    close_date: number;
    /**
True, if the poll is closed.
*/
    is_closed?: boolean;
}
/**
Describes an alternative re-encoded quality of a video file.
*/
export interface AlternativeVideo {
    '@type': 'alternativeVideo';
    /**
Unique identifier of the alternative video, which is used in the HLS file.
*/
    id: string;
    /**
Video width.
*/
    width: number;
    /**
Video height.
*/
    height: number;
    /**
Codec used for video file encoding, for example, "h264", "h265", or "av1".
*/
    codec: string;
    /**
HLS file describing the video.
*/
    hls_file: File;
    /**
File containing the video.
*/
    video: File;
}
/**
Describes a chat background.
*/
export interface Background {
    '@type': 'background';
    /**
Unique background identifier.
*/
    id: string;
    /**
True, if this is one of default backgrounds.
*/
    is_default?: boolean;
    /**
True, if the background is dark and is recommended to be used with dark theme.
*/
    is_dark?: boolean;
    /**
Unique background name.
*/
    name: string;
    /**
Document with the background; may be null. Null only for filled and chat theme backgrounds.
*/
    document: Document;
    /**
Type of the background.
*/
    type: BackgroundType;
}
/**
Contains a list of backgrounds.
*/
export interface Backgrounds {
    '@type': 'backgrounds';
    /**
A list of backgrounds.
*/
    backgrounds: Background[];
}
/**
Describes a background set for a specific chat.
*/
export interface ChatBackground {
    '@type': 'chatBackground';
    /**
The background.
*/
    background: Background;
    /**
Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of
background.
*/
    dark_theme_dimming: number;
}
/**
Describes a user profile photo.
*/
export interface ProfilePhoto {
    '@type': 'profilePhoto';
    /**
Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos.
*/
    id: string;
    /**
A small (160x160) user profile photo. The file can be downloaded only before the photo is changed.
*/
    small: File;
    /**
A big (640x640) user profile photo. The file can be downloaded only before the photo is changed.
*/
    big: File;
    /**
User profile photo minithumbnail; may be null.
*/
    minithumbnail: Minithumbnail;
    /**
True, if the photo has animated variant.
*/
    has_animation?: boolean;
    /**
True, if the photo is visible only for the current user.
*/
    is_personal?: boolean;
}
/**
Contains basic information about the photo of a chat.
*/
export interface ChatPhotoInfo {
    '@type': 'chatPhotoInfo';
    /**
A small (160x160) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed.
*/
    small: File;
    /**
A big (640x640) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed.
*/
    big: File;
    /**
Chat photo minithumbnail; may be null.
*/
    minithumbnail: Minithumbnail;
    /**
True, if the photo has animated variant.
*/
    has_animation?: boolean;
    /**
True, if the photo is visible only for the current user.
*/
    is_personal?: boolean;
}
/**
Represents the type of user. The following types are possible: regular users, deleted users and bots.
Subtype of {@link UserType}.
*/
export interface UserTypeRegular {
    '@type': 'userTypeRegular';
}
/**
A deleted user or deleted bot. No information on the user besides the user identifier is available. It is not possible
to perform any active actions on this type of user.
Subtype of {@link UserType}.
*/
export interface UserTypeDeleted {
    '@type': 'userTypeDeleted';
}
/**
A bot (see https://core.telegram.org/bots).
Subtype of {@link UserType}.
*/
export interface UserTypeBot {
    '@type': 'userTypeBot';
    /**
True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive,
reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription.
*/
    can_be_edited?: boolean;
    /**
True, if the bot can be invited to basic group and supergroup chats.
*/
    can_join_groups?: boolean;
    /**
True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In
private and channel chats a bot can always read all messages.
*/
    can_read_all_group_messages?: boolean;
    /**
True, if the bot has the main Web App.
*/
    has_main_web_app?: boolean;
    /**
True, if the bot supports inline queries.
*/
    is_inline?: boolean;
    /**
Placeholder for inline queries (displayed on the application input field).
*/
    inline_query_placeholder: string;
    /**
True, if the location of the user is expected to be sent with every inline query to this bot.
*/
    need_location?: boolean;
    /**
True, if the bot supports connection to Telegram Business accounts.
*/
    can_connect_to_business?: boolean;
    /**
True, if the bot can be added to attachment or side menu.
*/
    can_be_added_to_attachment_menu?: boolean;
    /**
The number of recently active users of the bot.
*/
    active_user_count: number;
}
/**
No information on the user besides the user identifier is available, yet this user has not been deleted. This object is
extremely rare and must be handled like a deleted user. It is not possible to perform any actions on users of this type.
Subtype of {@link UserType}.
*/
export interface UserTypeUnknown {
    '@type': 'userTypeUnknown';
}
/**
Represents a command supported by a bot.
*/
export interface BotCommand {
    '@type': 'botCommand';
    /**
Text of the bot command.
*/
    command: string;
    /**
Represents a command supported by a bot.
*/
    description: string;
}
/**
Contains a list of bot commands.
*/
export interface BotCommands {
    '@type': 'botCommands';
    /**
Bot's user identifier.
*/
    bot_user_id: number;
    /**
List of bot commands.
*/
    commands: BotCommand[];
}
/**
Describes a button to be shown instead of bot commands menu button.
*/
export interface BotMenuButton {
    '@type': 'botMenuButton';
    /**
Text of the button.
*/
    text: string;
    /**
URL of a Web App to open when the button is pressed. If the link is of the type internalLinkTypeWebApp, then it must be
processed accordingly. Otherwise, the link must be passed to openWebApp.
*/
    url: string;
}
/**
Describes parameters of verification that is provided by a bot.
*/
export interface BotVerificationParameters {
    '@type': 'botVerificationParameters';
    /**
Identifier of the custom emoji that is used as the verification sign.
*/
    icon_custom_emoji_id: string;
    /**
Name of the organization that provides verification.
*/
    organization_name: string;
    /**
Default custom description of verification reason to be used as placeholder in setMessageSenderBotVerification; may be
null if none.
*/
    default_custom_description: FormattedText;
    /**
True, if the bot is allowed to provide custom description for verified entities.
*/
    can_set_custom_description?: boolean;
}
/**
Describes verification status provided by a bot.
*/
export interface BotVerification {
    '@type': 'botVerification';
    /**
Identifier of the bot that provided the verification.
*/
    bot_user_id: number;
    /**
Identifier of the custom emoji that is used as the verification sign.
*/
    icon_custom_emoji_id: string;
    /**
Custom description of verification reason set by the bot. Can contain only Mention, Hashtag, Cashtag, PhoneNumber,
BankCardNumber, Url, and EmailAddress entities.
*/
    custom_description: FormattedText;
}
/**
Contains information about verification status of a chat or a user.
*/
export interface VerificationStatus {
    '@type': 'verificationStatus';
    /**
True, if the chat or the user is verified by Telegram.
*/
    is_verified?: boolean;
    /**
True, if the chat or the user is marked as scam by Telegram.
*/
    is_scam?: boolean;
    /**
True, if the chat or the user is marked as fake by Telegram.
*/
    is_fake?: boolean;
    /**
Identifier of the custom emoji to be shown as verification sign provided by a bot for the user; 0 if none.
*/
    bot_verification_icon_custom_emoji_id: string;
}
/**
Represents a location to which a chat is connected.
*/
export interface ChatLocation {
    '@type': 'chatLocation';
    /**
The location.
*/
    location: Location;
    /**
Location address; 1-64 characters, as defined by the chat owner.
*/
    address: string;
}
/**
Represents a birthdate of a user.
*/
export interface Birthdate {
    '@type': 'birthdate';
    /**
Day of the month; 1-31.
*/
    day: number;
    /**
Month of the year; 1-12.
*/
    month: number;
    /**
Birth year; 0 if unknown.
*/
    year: number;
}
/**
Describes a user that had or will have a birthday soon.
*/
export interface CloseBirthdayUser {
    '@type': 'closeBirthdayUser';
    /**
User identifier.
*/
    user_id: number;
    /**
Birthdate of the user.
*/
    birthdate: Birthdate;
}
/**
Describes conditions for sending of away messages by a Telegram Business account.
Subtype of {@link BusinessAwayMessageSchedule}.
*/
export interface BusinessAwayMessageScheduleAlways {
    '@type': 'businessAwayMessageScheduleAlways';
}
/**
Send away messages outside of the business opening hours.
Subtype of {@link BusinessAwayMessageSchedule}.
*/
export interface BusinessAwayMessageScheduleOutsideOfOpeningHours {
    '@type': 'businessAwayMessageScheduleOutsideOfOpeningHours';
}
/**
Send away messages only in the specified time span.
Subtype of {@link BusinessAwayMessageSchedule}.
*/
export interface BusinessAwayMessageScheduleCustom {
    '@type': 'businessAwayMessageScheduleCustom';
    /**
Point in time (Unix timestamp) when the away messages will start to be sent.
*/
    start_date: number;
    /**
Point in time (Unix timestamp) when the away messages will stop to be sent.
*/
    end_date: number;
}
/**
Represents a location of a business.
*/
export interface BusinessLocation {
    '@type': 'businessLocation';
    /**
The location; may be null if not specified.
*/
    location: Location;
    /**
Location address; 1-96 characters.
*/
    address: string;
}
/**
Describes private chats chosen for automatic interaction with a business.
*/
export interface BusinessRecipients {
    '@type': 'businessRecipients';
    /**
Identifiers of selected private chats.
*/
    chat_ids: number[];
    /**
Identifiers of private chats that are always excluded; for businessConnectedBot only.
*/
    excluded_chat_ids: number[];
    /**
True, if all existing private chats are selected.
*/
    select_existing_chats?: boolean;
    /**
True, if all new private chats are selected.
*/
    select_new_chats?: boolean;
    /**
True, if all private chats with contacts are selected.
*/
    select_contacts?: boolean;
    /**
True, if all private chats with non-contacts are selected.
*/
    select_non_contacts?: boolean;
    /**
If true, then all private chats except the selected are chosen. Otherwise, only the selected chats are chosen.
*/
    exclude_selected?: boolean;
}
/**
Describes settings for messages that are automatically sent by a Telegram Business account when it is away.
*/
export interface BusinessAwayMessageSettings {
    '@type': 'businessAwayMessageSettings';
    /**
Unique quick reply shortcut identifier for the away messages.
*/
    shortcut_id: number;
    /**
Chosen recipients of the away messages.
*/
    recipients: BusinessRecipients;
    /**
Settings used to check whether the current user is away.
*/
    schedule: BusinessAwayMessageSchedule;
    /**
True, if the messages must not be sent if the account was online in the last 10 minutes.
*/
    offline_only?: boolean;
}
/**
Describes settings for greeting messages that are automatically sent by a Telegram Business account as response to
incoming messages in an inactive private chat.
*/
export interface BusinessGreetingMessageSettings {
    '@type': 'businessGreetingMessageSettings';
    /**
Unique quick reply shortcut identifier for the greeting messages.
*/
    shortcut_id: number;
    /**
Chosen recipients of the greeting messages.
*/
    recipients: BusinessRecipients;
    /**
The number of days after which a chat will be considered as inactive; currently, must be on of 7, 14, 21, or 28.
*/
    inactivity_days: number;
}
/**
Describes a bot connected to a business account.
*/
export interface BusinessConnectedBot {
    '@type': 'businessConnectedBot';
    /**
User identifier of the bot.
*/
    bot_user_id: number;
    /**
Private chats that will be accessible to the bot.
*/
    recipients: BusinessRecipients;
    /**
True, if the bot can send messages to the private chats; false otherwise.
*/
    can_reply?: boolean;
}
/**
Describes settings for a business account start page.
*/
export interface BusinessStartPage {
    '@type': 'businessStartPage';
    /**
Title text of the start page.
*/
    title: string;
    /**
Message text of the start page.
*/
    message: string;
    /**
Greeting sticker of the start page; may be null if none.
*/
    sticker: Sticker;
}
/**
Describes settings for a business account start page to set.
*/
export interface InputBusinessStartPage {
    '@type': 'inputBusinessStartPage';
    /**
Title text of the start page; 0-getOption("business_start_page_title_length_max") characters.
*/
    title: string;
    /**
Message text of the start page; 0-getOption("business_start_page_message_length_max") characters.
*/
    message: string;
    /**
Greeting sticker of the start page; pass null if none. The sticker must belong to a sticker set and must not be a custom
emoji.
*/
    sticker: InputFile;
}
/**
Describes an interval of time when the business is open.
*/
export interface BusinessOpeningHoursInterval {
    '@type': 'businessOpeningHoursInterval';
    /**
The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the
business is open; 0-7*24*60.
*/
    start_minute: number;
    /**
The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the
business is open; 1-8*24*60.
*/
    end_minute: number;
}
/**
Describes opening hours of a business.
*/
export interface BusinessOpeningHours {
    '@type': 'businessOpeningHours';
    /**
Unique time zone identifier.
*/
    time_zone_id: string;
    /**
Intervals of the time when the business is open.
*/
    opening_hours: BusinessOpeningHoursInterval[];
}
/**
Contains information about a Telegram Business account.
*/
export interface BusinessInfo {
    '@type': 'businessInfo';
    /**
Location of the business; may be null if none.
*/
    location: BusinessLocation;
    /**
Opening hours of the business; may be null if none. The hours are guaranteed to be valid and has already been split by
week days.
*/
    opening_hours: BusinessOpeningHours;
    /**
Opening hours of the business in the local time; may be null if none. The hours are guaranteed to be valid and has
already been split by week days. Local time zone identifier will be empty. An updateUserFullInfo update is not triggered
when value of this field changes.
*/
    local_opening_hours: BusinessOpeningHours;
    /**
Time left before the business will open the next time, in seconds; 0 if unknown. An updateUserFullInfo update is not
triggered when value of this field changes.
*/
    next_open_in: number;
    /**
Time left before the business will close the next time, in seconds; 0 if unknown. An updateUserFullInfo update is not
triggered when value of this field changes.
*/
    next_close_in: number;
    /**
The greeting message; may be null if none or the Business account is not of the current user.
*/
    greeting_message_settings: BusinessGreetingMessageSettings;
    /**
The away message; may be null if none or the Business account is not of the current user.
*/
    away_message_settings: BusinessAwayMessageSettings;
    /**
Information about start page of the account; may be null if none.
*/
    start_page: BusinessStartPage;
}
/**
Contains information about a business chat link.
*/
export interface BusinessChatLink {
    '@type': 'businessChatLink';
    /**
The HTTPS link.
*/
    link: string;
    /**
Message draft text that will be added to the input field.
*/
    text: FormattedText;
    /**
Link title.
*/
    title: string;
    /**
Number of times the link was used.
*/
    view_count: number;
}
/**
Contains a list of business chat links created by the user.
*/
export interface BusinessChatLinks {
    '@type': 'businessChatLinks';
    /**
List of links.
*/
    links: BusinessChatLink[];
}
/**
Describes a business chat link to create or edit.
*/
export interface InputBusinessChatLink {
    '@type': 'inputBusinessChatLink';
    /**
Message draft text that will be added to the input field.
*/
    text: FormattedText;
    /**
Link title.
*/
    title: string;
}
/**
Contains information about a business chat link.
*/
export interface BusinessChatLinkInfo {
    '@type': 'businessChatLinkInfo';
    /**
Identifier of the private chat that created the link.
*/
    chat_id: number;
    /**
Message draft text that must be added to the input field.
*/
    text: FormattedText;
}
/**
Describes type of sticker, which was used to create a chat photo.
Subtype of {@link ChatPhotoStickerType}.
*/
export interface ChatPhotoStickerTypeRegularOrMask {
    '@type': 'chatPhotoStickerTypeRegularOrMask';
    /**
Sticker set identifier.
*/
    sticker_set_id: string;
    /**
Identifier of the sticker in the set.
*/
    sticker_id: string;
}
/**
Information about the custom emoji, which was used to create the chat photo.
Subtype of {@link ChatPhotoStickerType}.
*/
export interface ChatPhotoStickerTypeCustomEmoji {
    '@type': 'chatPhotoStickerTypeCustomEmoji';
    /**
Identifier of the custom emoji.
*/
    custom_emoji_id: string;
}
/**
Information about the sticker, which was used to create the chat photo. The sticker is shown at the center of the photo
and occupies at most 67% of it.
*/
export interface ChatPhotoSticker {
    '@type': 'chatPhotoSticker';
    /**
Type of the sticker.
*/
    type: ChatPhotoStickerType;
    /**
The fill to be used as background for the sticker; rotation angle in backgroundFillGradient isn't supported.
*/
    background_fill: BackgroundFill;
}
/**
Animated variant of a chat photo in MPEG4 format.
*/
export interface AnimatedChatPhoto {
    '@type': 'animatedChatPhoto';
    /**
Animation width and height.
*/
    length: number;
    /**
Information about the animation file.
*/
    file: File;
    /**
Timestamp of the frame, used as a static chat photo.
*/
    main_frame_timestamp: number;
}
/**
Describes a chat or user profile photo.
*/
export interface ChatPhoto {
    '@type': 'chatPhoto';
    /**
Unique photo identifier.
*/
    id: string;
    /**
Point in time (Unix timestamp) when the photo has been added.
*/
    added_date: number;
    /**
Photo minithumbnail; may be null.
*/
    minithumbnail: Minithumbnail;
    /**
Available variants of the photo in JPEG format, in different size.
*/
    sizes: PhotoSize[];
    /**
A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null.
*/
    animation: AnimatedChatPhoto;
    /**
A small (160x160) animated variant of the photo in MPEG4 format; may be null even the big animation is available.
*/
    small_animation: AnimatedChatPhoto;
    /**
Sticker-based version of the chat photo; may be null.
*/
    sticker: ChatPhotoSticker;
}
/**
Contains a list of chat or user profile photos.
*/
export interface ChatPhotos {
    '@type': 'chatPhotos';
    /**
Total number of photos.
*/
    total_count: number;
    /**
List of photos.
*/
    photos: ChatPhoto[];
}
/**
Describes a photo to be set as a user profile or chat photo.
Subtype of {@link InputChatPhoto}.
*/
export interface InputChatPhotoPrevious {
    '@type': 'inputChatPhotoPrevious';
    /**
Identifier of the current user's profile photo to reuse.
*/
    chat_photo_id: string;
}
/**
A static photo in JPEG format.
Subtype of {@link InputChatPhoto}.
*/
export interface InputChatPhotoStatic {
    '@type': 'inputChatPhotoStatic';
    /**
Photo to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed.
*/
    photo: InputFile;
}
/**
An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most
2MB in size.
Subtype of {@link InputChatPhoto}.
*/
export interface InputChatPhotoAnimation {
    '@type': 'inputChatPhotoAnimation';
    /**
Animation to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed.
*/
    animation: InputFile;
    /**
Timestamp of the frame, which will be used as static chat photo.
*/
    main_frame_timestamp: number;
}
/**
A sticker on a custom background.
Subtype of {@link InputChatPhoto}.
*/
export interface InputChatPhotoSticker {
    '@type': 'inputChatPhotoSticker';
    /**
Information about the sticker.
*/
    sticker: ChatPhotoSticker;
}
/**
Describes actions that a user is allowed to take in a chat.
*/
export interface ChatPermissions {
    '@type': 'chatPermissions';
    /**
True, if the user can send text messages, contacts, giveaways, giveaway winners, invoices, locations, and venues.
*/
    can_send_basic_messages?: boolean;
    /**
True, if the user can send music files.
*/
    can_send_audios?: boolean;
    /**
True, if the user can send documents.
*/
    can_send_documents?: boolean;
    /**
True, if the user can send photos.
*/
    can_send_photos?: boolean;
    /**
True, if the user can send videos.
*/
    can_send_videos?: boolean;
    /**
True, if the user can send video notes.
*/
    can_send_video_notes?: boolean;
    /**
True, if the user can send voice notes.
*/
    can_send_voice_notes?: boolean;
    /**
True, if the user can send polls.
*/
    can_send_polls?: boolean;
    /**
True, if the user can send animations, games, stickers, and dice and use inline bots.
*/
    can_send_other_messages?: boolean;
    /**
True, if the user may add a link preview to their messages.
*/
    can_add_link_previews?: boolean;
    /**
True, if the user can change the chat title, photo, and other settings.
*/
    can_change_info?: boolean;
    /**
True, if the user can invite new users to the chat.
*/
    can_invite_users?: boolean;
    /**
True, if the user can pin messages.
*/
    can_pin_messages?: boolean;
    /**
True, if the user can create topics.
*/
    can_create_topics?: boolean;
}
/**
Describes rights of the administrator.
*/
export interface ChatAdministratorRights {
    '@type': 'chatAdministratorRights';
    /**
True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members,
report supergroup spam messages and ignore slow mode. Implied by any other privilege; applicable to supergroups and
channels only.
*/
    can_manage_chat?: boolean;
    /**
True, if the administrator can change the chat title, photo, and other settings.
*/
    can_change_info?: boolean;
    /**
True, if the administrator can create channel posts or view channel statistics; applicable to channels only.
*/
    can_post_messages?: boolean;
    /**
True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
*/
    can_edit_messages?: boolean;
    /**
True, if the administrator can delete messages of other users.
*/
    can_delete_messages?: boolean;
    /**
True, if the administrator can invite new users to the chat.
*/
    can_invite_users?: boolean;
    /**
True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics; always true for
channels.
*/
    can_restrict_members?: boolean;
    /**
True, if the administrator can pin messages; applicable to basic groups and supergroups only.
*/
    can_pin_messages?: boolean;
    /**
True, if the administrator can create, rename, close, reopen, hide, and unhide forum topics; applicable to forum
supergroups only.
*/
    can_manage_topics?: boolean;
    /**
True, if the administrator can add new administrators with a subset of their own privileges or demote administrators
that were directly or indirectly promoted by them.
*/
    can_promote_members?: boolean;
    /**
True, if the administrator can manage video chats.
*/
    can_manage_video_chats?: boolean;
    /**
True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and
channels only.
*/
    can_post_stories?: boolean;
    /**
True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and
access story archive; applicable to supergroups and channels only.
*/
    can_edit_stories?: boolean;
    /**
True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only.
*/
    can_delete_stories?: boolean;
    /**
True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups
only.
*/
    is_anonymous?: boolean;
}
/**
Describes a possibly non-integer amount of Telegram Stars.
*/
export interface StarAmount {
    '@type': 'starAmount';
    /**
The integer amount of Telegram Stars rounded to 0.
*/
    star_count: number;
    /**
The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999.
*/
    nanostar_count: number;
}
/**
Describes type of subscription paid in Telegram Stars.
Subtype of {@link StarSubscriptionType}.
*/
export interface StarSubscriptionTypeChannel {
    '@type': 'starSubscriptionTypeChannel';
    /**
True, if the subscription is active and the user can use the method reuseStarSubscription to join the subscribed chat
again.
*/
    can_reuse?: boolean;
    /**
The invite link that can be used to renew the subscription if it has been expired; may be empty, if the link isn't
available anymore.
*/
    invite_link: string;
}
/**
Describes a subscription in a bot or a business account.
Subtype of {@link StarSubscriptionType}.
*/
export interface StarSubscriptionTypeBot {
    '@type': 'starSubscriptionTypeBot';
    /**
True, if the subscription was canceled by the bot and can't be extended.
*/
    is_canceled_by_bot?: boolean;
    /**
Subscription invoice title.
*/
    title: string;
    /**
Subscription invoice photo.
*/
    photo: Photo;
    /**
The link to the subscription invoice.
*/
    invoice_link: string;
}
/**
Describes subscription plan paid in Telegram Stars.
*/
export interface StarSubscriptionPricing {
    '@type': 'starSubscriptionPricing';
    /**
The number of seconds between consecutive Telegram Star debiting.
*/
    period: number;
    /**
The amount of Telegram Stars that must be paid for each period.
*/
    star_count: number;
}
/**
Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars.
*/
export interface StarSubscription {
    '@type': 'starSubscription';
    /**
Unique identifier of the subscription.
*/
    id: string;
    /**
Identifier of the chat that is subscribed.
*/
    chat_id: number;
    /**
Point in time (Unix timestamp) when the subscription will expire or expired.
*/
    expiration_date: number;
    /**
True, if the subscription was canceled.
*/
    is_canceled?: boolean;
    /**
True, if the subscription expires soon and there are no enough Telegram Stars on the user's balance to extend it.
*/
    is_expiring?: boolean;
    /**
The subscription plan.
*/
    pricing: StarSubscriptionPricing;
    /**
Type of the subscription.
*/
    type: StarSubscriptionType;
}
/**
Represents a list of Telegram Star subscriptions.
*/
export interface StarSubscriptions {
    '@type': 'starSubscriptions';
    /**
The amount of owned Telegram Stars.
*/
    star_amount: StarAmount;
    /**
List of subscriptions for Telegram Stars.
*/
    subscriptions: StarSubscription[];
    /**
The number of Telegram Stars required to buy to extend subscriptions expiring soon.
*/
    required_star_count: number;
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Describes type of affiliate for an affiliate program.
Subtype of {@link AffiliateType}.
*/
export interface AffiliateTypeCurrentUser {
    '@type': 'affiliateTypeCurrentUser';
}
/**
The affiliate is a bot owned by the current user.
Subtype of {@link AffiliateType}.
*/
export interface AffiliateTypeBot {
    '@type': 'affiliateTypeBot';
    /**
User identifier of the bot.
*/
    user_id: number;
}
/**
The affiliate is a channel chat where the current user has can_post_messages administrator right.
Subtype of {@link AffiliateType}.
*/
export interface AffiliateTypeChannel {
    '@type': 'affiliateTypeChannel';
    /**
Identifier of the channel chat.
*/
    chat_id: number;
}
/**
Describes the order of the found affiliate programs.
Subtype of {@link AffiliateProgramSortOrder}.
*/
export interface AffiliateProgramSortOrderProfitability {
    '@type': 'affiliateProgramSortOrderProfitability';
}
/**
The affiliate programs must be sorted by creation date.
Subtype of {@link AffiliateProgramSortOrder}.
*/
export interface AffiliateProgramSortOrderCreationDate {
    '@type': 'affiliateProgramSortOrderCreationDate';
}
/**
The affiliate programs must be sorted by the expected revenue.
Subtype of {@link AffiliateProgramSortOrder}.
*/
export interface AffiliateProgramSortOrderRevenue {
    '@type': 'affiliateProgramSortOrderRevenue';
}
/**
Describes parameters of an affiliate program.
*/
export interface AffiliateProgramParameters {
    '@type': 'affiliateProgramParameters';
    /**
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner;
getOption("affiliate_program_commission_per_mille_min")-getOption("affiliate_program_commission_per_mille_max").
*/
    commission_per_mille: number;
    /**
Number of months the program will be active; 0-36. If 0, then the program is eternal.
*/
    month_count: number;
}
/**
Contains information about an active affiliate program.
*/
export interface AffiliateProgramInfo {
    '@type': 'affiliateProgramInfo';
    /**
Parameters of the affiliate program.
*/
    parameters: AffiliateProgramParameters;
    /**
Point in time (Unix timestamp) when the affiliate program will be closed; 0 if the affiliate program isn't scheduled to
be closed. If positive, then the program can't be connected using connectAffiliateProgram, but active connections will
work until the date.
*/
    end_date: number;
    /**
The amount of daily revenue per user in Telegram Stars of the bot that created the affiliate program.
*/
    daily_revenue_per_user_amount: StarAmount;
}
/**
Contains information about an affiliate that received commission from a Telegram Star transaction.
*/
export interface AffiliateInfo {
    '@type': 'affiliateInfo';
    /**
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner.
*/
    commission_per_mille: number;
    /**
Identifier of the chat which received the commission.
*/
    affiliate_chat_id: number;
    /**
The amount of Telegram Stars that were received by the affiliate; can be negative for refunds.
*/
    star_amount: StarAmount;
}
/**
Describes a found affiliate program.
*/
export interface FoundAffiliateProgram {
    '@type': 'foundAffiliateProgram';
    /**
User identifier of the bot created the program.
*/
    bot_user_id: number;
    /**
Information about the affiliate program.
*/
    info: AffiliateProgramInfo;
}
/**
Represents a list of found affiliate programs.
*/
export interface FoundAffiliatePrograms {
    '@type': 'foundAffiliatePrograms';
    /**
The total number of found affiliate programs.
*/
    total_count: number;
    /**
The list of affiliate programs.
*/
    programs: FoundAffiliateProgram[];
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Describes an affiliate program that was connected to an affiliate.
*/
export interface ConnectedAffiliateProgram {
    '@type': 'connectedAffiliateProgram';
    /**
The link that can be used to refer users if the program is still active.
*/
    url: string;
    /**
User identifier of the bot created the program.
*/
    bot_user_id: number;
    /**
The parameters of the affiliate program.
*/
    parameters: AffiliateProgramParameters;
    /**
Point in time (Unix timestamp) when the affiliate program was connected.
*/
    connection_date: number;
    /**
True, if the program was canceled by the bot, or disconnected by the chat owner and isn't available anymore.
*/
    is_disconnected?: boolean;
    /**
The number of users that used the affiliate program.
*/
    user_count: string;
    /**
The number of Telegram Stars that were earned by the affiliate program.
*/
    revenue_star_count: string;
}
/**
Represents a list of affiliate programs that were connected to an affiliate.
*/
export interface ConnectedAffiliatePrograms {
    '@type': 'connectedAffiliatePrograms';
    /**
The total number of affiliate programs that were connected to the affiliate.
*/
    total_count: number;
    /**
The list of connected affiliate programs.
*/
    programs: ConnectedAffiliateProgram[];
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Contains information about a product that can be paid with invoice.
*/
export interface ProductInfo {
    '@type': 'productInfo';
    /**
Product title.
*/
    title: string;
    /**
Contains information about a product that can be paid with invoice.
*/
    description: FormattedText;
    /**
Product photo; may be null.
*/
    photo: Photo;
}
/**
Describes an option for buying Telegram Premium to a user.
*/
export interface PremiumPaymentOption {
    '@type': 'premiumPaymentOption';
    /**
ISO 4217 currency code for Telegram Premium subscription payment.
*/
    currency: string;
    /**
The amount to pay, in the smallest units of the currency.
*/
    amount: number;
    /**
The discount associated with this option, as a percentage.
*/
    discount_percentage: number;
    /**
Number of months the Telegram Premium subscription will be active. Use getPremiumInfoSticker to get the sticker to be
used as representation of the Telegram Premium subscription.
*/
    month_count: number;
    /**
Identifier of the store product associated with the option.
*/
    store_product_id: string;
    /**
An internal link to be opened for buying Telegram Premium to the user if store payment isn't possible; may be null if
direct payment isn't available.
*/
    payment_link: InternalLinkType;
}
/**
Describes an option for buying or upgrading Telegram Premium for self.
*/
export interface PremiumStatePaymentOption {
    '@type': 'premiumStatePaymentOption';
    /**
Information about the payment option.
*/
    payment_option: PremiumPaymentOption;
    /**
True, if this is the currently used Telegram Premium subscription option.
*/
    is_current?: boolean;
    /**
True, if the payment option can be used to upgrade the existing Telegram Premium subscription.
*/
    is_upgrade?: boolean;
    /**
Identifier of the last in-store transaction for the currently used option.
*/
    last_transaction_id: string;
}
/**
Describes an option for gifting Telegram Premium to a user. Use telegramPaymentPurposePremiumGift for out-of-store
payments or payments in Telegram Stars.
*/
export interface PremiumGiftPaymentOption {
    '@type': 'premiumGiftPaymentOption';
    /**
ISO 4217 currency code for the payment.
*/
    currency: string;
    /**
The amount to pay, in the smallest units of the currency.
*/
    amount: number;
    /**
The alternative amount of Telegram Stars to pay; 0 if payment in Telegram Stars is not possible.
*/
    star_count: number;
    /**
The discount associated with this option, as a percentage.
*/
    discount_percentage: number;
    /**
Number of months the Telegram Premium subscription will be active.
*/
    month_count: number;
    /**
Identifier of the store product associated with the option.
*/
    store_product_id: string;
    /**
A sticker to be shown along with the option; may be null if unknown.
*/
    sticker: Sticker;
}
/**
Contains a list of options for gifting Telegram Premium to a user.
*/
export interface PremiumGiftPaymentOptions {
    '@type': 'premiumGiftPaymentOptions';
    /**
The list of options sorted by Telegram Premium subscription duration.
*/
    options: PremiumGiftPaymentOption[];
}
/**
Describes an option for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among chat
members. Use telegramPaymentPurposePremiumGiftCodes or telegramPaymentPurposePremiumGiveaway for out-of-store payments.
*/
export interface PremiumGiveawayPaymentOption {
    '@type': 'premiumGiveawayPaymentOption';
    /**
ISO 4217 currency code for Telegram Premium gift code payment.
*/
    currency: string;
    /**
The amount to pay, in the smallest units of the currency.
*/
    amount: number;
    /**
Number of users which will be able to activate the gift codes.
*/
    winner_count: number;
    /**
Number of months the Telegram Premium subscription will be active.
*/
    month_count: number;
    /**
Identifier of the store product associated with the option; may be empty if none.
*/
    store_product_id: string;
    /**
Number of times the store product must be paid.
*/
    store_product_quantity: number;
}
/**
Contains a list of options for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among
chat members.
*/
export interface PremiumGiveawayPaymentOptions {
    '@type': 'premiumGiveawayPaymentOptions';
    /**
The list of options.
*/
    options: PremiumGiveawayPaymentOption[];
}
/**
Contains information about a Telegram Premium gift code.
*/
export interface PremiumGiftCodeInfo {
    '@type': 'premiumGiftCodeInfo';
    /**
Identifier of a chat or a user that created the gift code; may be null if unknown. If null and the code is from
messagePremiumGiftCode message, then creator_id from the message can be used.
*/
    creator_id: MessageSender;
    /**
Point in time (Unix timestamp) when the code was created.
*/
    creation_date: number;
    /**
True, if the gift code was created for a giveaway.
*/
    is_from_giveaway?: boolean;
    /**
Identifier of the corresponding giveaway message in the creator_id chat; can be 0 or an identifier of a deleted message.
*/
    giveaway_message_id: number;
    /**
Number of months the Telegram Premium subscription will be active after code activation.
*/
    month_count: number;
    /**
Identifier of a user for which the code was created; 0 if none.
*/
    user_id: number;
    /**
Point in time (Unix timestamp) when the code was activated; 0 if none.
*/
    use_date: number;
}
/**
Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments.
*/
export interface StarPaymentOption {
    '@type': 'starPaymentOption';
    /**
ISO 4217 currency code for the payment.
*/
    currency: string;
    /**
The amount to pay, in the smallest units of the currency.
*/
    amount: number;
    /**
Number of Telegram Stars that will be purchased.
*/
    star_count: number;
    /**
Identifier of the store product associated with the option; may be empty if none.
*/
    store_product_id: string;
    /**
True, if the option must be shown only in the full list of payment options.
*/
    is_additional?: boolean;
}
/**
Contains a list of options for buying Telegram Stars.
*/
export interface StarPaymentOptions {
    '@type': 'starPaymentOptions';
    /**
The list of options.
*/
    options: StarPaymentOption[];
}
/**
Describes an option for the number of winners of a Telegram Star giveaway.
*/
export interface StarGiveawayWinnerOption {
    '@type': 'starGiveawayWinnerOption';
    /**
The number of users that will be chosen as winners.
*/
    winner_count: number;
    /**
The number of Telegram Stars that will be won by the winners of the giveaway.
*/
    won_star_count: number;
    /**
True, if the option must be chosen by default.
*/
    is_default?: boolean;
}
/**
Describes an option for creating of Telegram Star giveaway. Use telegramPaymentPurposeStarGiveaway for out-of-store
payments.
*/
export interface StarGiveawayPaymentOption {
    '@type': 'starGiveawayPaymentOption';
    /**
ISO 4217 currency code for the payment.
*/
    currency: string;
    /**
The amount to pay, in the smallest units of the currency.
*/
    amount: number;
    /**
Number of Telegram Stars that will be distributed among winners.
*/
    star_count: number;
    /**
Identifier of the store product associated with the option; may be empty if none.
*/
    store_product_id: string;
    /**
Number of times the chat will be boosted for one year if the option is chosen.
*/
    yearly_boost_count: number;
    /**
Allowed options for the number of giveaway winners.
*/
    winner_options: StarGiveawayWinnerOption[];
    /**
True, if the option must be chosen by default.
*/
    is_default?: boolean;
    /**
True, if the option must be shown only in the full list of payment options.
*/
    is_additional?: boolean;
}
/**
Contains a list of options for creating of Telegram Star giveaway.
*/
export interface StarGiveawayPaymentOptions {
    '@type': 'starGiveawayPaymentOptions';
    /**
The list of options.
*/
    options: StarGiveawayPaymentOption[];
}
/**
Describes a model of an upgraded gift.
*/
export interface UpgradedGiftModel {
    '@type': 'upgradedGiftModel';
    /**
Name of the model.
*/
    name: string;
    /**
The sticker representing the upgraded gift.
*/
    sticker: Sticker;
    /**
The number of upgraded gift that receive this model for each 1000 gifts upgraded.
*/
    rarity_per_mille: number;
}
/**
Describes a symbol shown on the pattern of an upgraded gift.
*/
export interface UpgradedGiftSymbol {
    '@type': 'upgradedGiftSymbol';
    /**
Name of the symbol.
*/
    name: string;
    /**
The sticker representing the upgraded gift.
*/
    sticker: Sticker;
    /**
The number of upgraded gift that receive this symbol for each 1000 gifts upgraded.
*/
    rarity_per_mille: number;
}
/**
Describes colors of a backdrop of an upgraded gift.
*/
export interface UpgradedGiftBackdropColors {
    '@type': 'upgradedGiftBackdropColors';
    /**
A color in the center of the backdrop in the RGB format.
*/
    center_color: number;
    /**
A color on the edges of the backdrop in the RGB format.
*/
    edge_color: number;
    /**
A color to be applied for the symbol in the RGB format.
*/
    symbol_color: number;
    /**
A color for the text on the backdrop in the RGB format.
*/
    text_color: number;
}
/**
Describes a backdrop of an upgraded gift.
*/
export interface UpgradedGiftBackdrop {
    '@type': 'upgradedGiftBackdrop';
    /**
Name of the backdrop.
*/
    name: string;
    /**
Colors of the backdrop.
*/
    colors: UpgradedGiftBackdropColors;
    /**
The number of upgraded gift that receive this backdrop for each 1000 gifts upgraded.
*/
    rarity_per_mille: number;
}
/**
Describes the original details about the gift.
*/
export interface UpgradedGiftOriginalDetails {
    '@type': 'upgradedGiftOriginalDetails';
    /**
Identifier of the user or the chat that sent the gift; may be null if the gift was private.
*/
    sender_id: MessageSender;
    /**
Identifier of the user or the chat that received the gift.
*/
    receiver_id: MessageSender;
    /**
Message added to the gift.
*/
    text: FormattedText;
    /**
Point in time (Unix timestamp) when the gift was sent.
*/
    date: number;
}
/**
Describes a gift that can be sent to another user or channel chat.
*/
export interface Gift {
    '@type': 'gift';
    /**
Unique identifier of the gift.
*/
    id: string;
    /**
The sticker representing the gift.
*/
    sticker: Sticker;
    /**
Number of Telegram Stars that must be paid for the gift.
*/
    star_count: number;
    /**
Number of Telegram Stars that can be claimed by the receiver instead of the regular gift by default. If the gift was
paid with just bought Telegram Stars, then full value can be claimed.
*/
    default_sell_star_count: number;
    /**
Number of Telegram Stars that must be paid to upgrade the gift; 0 if upgrade isn't possible.
*/
    upgrade_star_count: number;
    /**
True, if the gift is a birthday gift.
*/
    is_for_birthday?: boolean;
    /**
Number of remaining times the gift can be purchased; 0 if not limited or the gift was sold out.
*/
    remaining_count: number;
    /**
Number of total times the gift can be purchased; 0 if not limited.
*/
    total_count: number;
    /**
Point in time (Unix timestamp) when the gift was send for the first time; for sold out gifts only.
*/
    first_send_date: number;
    /**
Point in time (Unix timestamp) when the gift was send for the last time; for sold out gifts only.
*/
    last_send_date: number;
}
/**
Contains a list of gifts that can be sent to another user or channel chat.
*/
export interface Gifts {
    '@type': 'gifts';
    /**
The list of gifts.
*/
    gifts: Gift[];
}
/**
Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT.
*/
export interface UpgradedGift {
    '@type': 'upgradedGift';
    /**
Unique identifier of the gift.
*/
    id: string;
    /**
The title of the upgraded gift.
*/
    title: string;
    /**
Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift.
*/
    name: string;
    /**
Unique number of the upgraded gift among gifts upgraded from the same gift.
*/
    number: number;
    /**
Total number of gifts that were upgraded from the same gift.
*/
    total_upgraded_count: number;
    /**
The maximum number of gifts that can be upgraded from the same gift.
*/
    max_upgraded_count: number;
    /**
Identifier of the user or the chat that owns the upgraded gift; may be null if none or unknown.
*/
    owner_id: MessageSender;
    /**
Address of the gift NFT owner in TON blockchain; may be empty if none.
*/
    owner_address: string;
    /**
Name of the owner for the case when owner identifier and address aren't known.
*/
    owner_name: string;
    /**
Address of the gift NFT in TON blockchain; may be empty if none.
*/
    gift_address: string;
    /**
Model of the upgraded gift.
*/
    model: UpgradedGiftModel;
    /**
Symbol of the upgraded gift.
*/
    symbol: UpgradedGiftSymbol;
    /**
Backdrop of the upgraded gift.
*/
    backdrop: UpgradedGiftBackdrop;
    /**
Information about the originally sent gift; may be null if unknown.
*/
    original_details: UpgradedGiftOriginalDetails;
}
/**
Contains result of gift upgrading.
*/
export interface UpgradeGiftResult {
    '@type': 'upgradeGiftResult';
    /**
The upgraded gift.
*/
    gift: UpgradedGift;
    /**
Unique identifier of the received gift for the current user.
*/
    received_gift_id: string;
    /**
True, if the gift is displayed on the user's or the channel's profile page.
*/
    is_saved?: boolean;
    /**
True, if the gift can be transferred to another owner.
*/
    can_be_transferred?: boolean;
    /**
Number of Telegram Stars that must be paid to transfer the upgraded gift.
*/
    transfer_star_count: number;
    /**
Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT.
*/
    export_date: number;
}
/**
Represents content of a gift received by a user or a channel chat.
Subtype of {@link SentGift}.
*/
export interface SentGiftRegular {
    '@type': 'sentGiftRegular';
    /**
The gift.
*/
    gift: Gift;
}
/**
Upgraded gift.
Subtype of {@link SentGift}.
*/
export interface SentGiftUpgraded {
    '@type': 'sentGiftUpgraded';
    /**
The gift.
*/
    gift: UpgradedGift;
}
/**
Represents a gift received by a user or a chat.
*/
export interface ReceivedGift {
    '@type': 'receivedGift';
    /**
Unique identifier of the received gift for the current user; only for the receiver of the gift.
*/
    received_gift_id: string;
    /**
Identifier of a user or a chat that sent the gift; may be null if unknown.
*/
    sender_id: MessageSender;
    /**
Message added to the gift.
*/
    text: FormattedText;
    /**
True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone are able to see them.
*/
    is_private?: boolean;
    /**
True, if the gift is displayed on the chat's profile page; only for the receiver of the gift.
*/
    is_saved?: boolean;
    /**
True, if the gift is pinned to the top of the chat's profile page.
*/
    is_pinned?: boolean;
    /**
True, if the gift is a regular gift that can be upgraded to a unique gift; only for the receiver of the gift.
*/
    can_be_upgraded?: boolean;
    /**
True, if the gift is an upgraded gift that can be transferred to another owner; only for the receiver of the gift.
*/
    can_be_transferred?: boolean;
    /**
True, if the gift was refunded and isn't available anymore.
*/
    was_refunded?: boolean;
    /**
Point in time (Unix timestamp) when the gift was sent.
*/
    date: number;
    /**
The gift.
*/
    gift: SentGift;
    /**
Number of Telegram Stars that can be claimed by the receiver instead of the regular gift; 0 if the gift can't be sold by
the current user.
*/
    sell_star_count: number;
    /**
Number of Telegram Stars that were paid by the sender for the ability to upgrade the gift.
*/
    prepaid_upgrade_star_count: number;
    /**
Number of Telegram Stars that must be paid to transfer the upgraded gift; only for the receiver of the gift.
*/
    transfer_star_count: number;
    /**
Point in time (Unix timestamp) when the upgraded gift can be transferred to the TON blockchain as an NFT; 0 if NFT
export isn't possible; only for the receiver of the gift.
*/
    export_date: number;
}
/**
Represents a list of gifts received by a user or a chat.
*/
export interface ReceivedGifts {
    '@type': 'receivedGifts';
    /**
The total number of received gifts.
*/
    total_count: number;
    /**
The list of gifts.
*/
    gifts: ReceivedGift[];
    /**
True, if notifications about new gifts of the owner are enabled.
*/
    are_notifications_enabled?: boolean;
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Contains examples of possible upgraded gifts for the given regular gift.
*/
export interface GiftUpgradePreview {
    '@type': 'giftUpgradePreview';
    /**
Examples of possible models that can be chosen for the gift after upgrade.
*/
    models: UpgradedGiftModel[];
    /**
Examples of possible symbols that can be chosen for the gift after upgrade.
*/
    symbols: UpgradedGiftSymbol[];
    /**
Examples of possible backdrops that can be chosen for the gift after upgrade.
*/
    backdrops: UpgradedGiftBackdrop[];
}
/**
Describes direction of a transaction with Telegram Stars.
Subtype of {@link StarTransactionDirection}.
*/
export interface StarTransactionDirectionIncoming {
    '@type': 'starTransactionDirectionIncoming';
}
/**
The transaction is outgoing and decreases the number of owned Telegram Stars.
Subtype of {@link StarTransactionDirection}.
*/
export interface StarTransactionDirectionOutgoing {
    '@type': 'starTransactionDirectionOutgoing';
}
/**
Describes type of transaction with Telegram Stars.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypePremiumBotDeposit {
    '@type': 'starTransactionTypePremiumBotDeposit';
}
/**
The transaction is a deposit of Telegram Stars from App Store; for regular users only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeAppStoreDeposit {
    '@type': 'starTransactionTypeAppStoreDeposit';
}
/**
The transaction is a deposit of Telegram Stars from Google Play; for regular users only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeGooglePlayDeposit {
    '@type': 'starTransactionTypeGooglePlayDeposit';
}
/**
The transaction is a deposit of Telegram Stars from Fragment; for regular users and bots only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeFragmentDeposit {
    '@type': 'starTransactionTypeFragmentDeposit';
}
/**
The transaction is a deposit of Telegram Stars by another user; for regular users only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeUserDeposit {
    '@type': 'starTransactionTypeUserDeposit';
    /**
Identifier of the user that gifted Telegram Stars; 0 if the user was anonymous.
*/
    user_id: number;
    /**
The sticker to be shown in the transaction information; may be null if unknown.
*/
    sticker: Sticker;
}
/**
The transaction is a deposit of Telegram Stars from a giveaway; for regular users only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeGiveawayDeposit {
    '@type': 'starTransactionTypeGiveawayDeposit';
    /**
Identifier of a supergroup or a channel chat that created the giveaway.
*/
    chat_id: number;
    /**
Identifier of the message with the giveaway; can be 0 or an identifier of a deleted message.
*/
    giveaway_message_id: number;
}
/**
The transaction is a withdrawal of earned Telegram Stars to Fragment; for regular users, bots, supergroup and channel
chats only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeFragmentWithdrawal {
    '@type': 'starTransactionTypeFragmentWithdrawal';
    /**
State of the withdrawal; may be null for refunds from Fragment.
*/
    withdrawal_state: RevenueWithdrawalState;
}
/**
The transaction is a withdrawal of earned Telegram Stars to Telegram Ad platform; for bots and channel chats only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeTelegramAdsWithdrawal {
    '@type': 'starTransactionTypeTelegramAdsWithdrawal';
}
/**
The transaction is a payment for Telegram API usage; for bots only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeTelegramApiUsage {
    '@type': 'starTransactionTypeTelegramApiUsage';
    /**
The number of billed requests.
*/
    request_count: number;
}
/**
The transaction is a purchase of paid media from a bot or a business account by the current user; for regular users
only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeBotPaidMediaPurchase {
    '@type': 'starTransactionTypeBotPaidMediaPurchase';
    /**
Identifier of the bot or the business account user that sent the paid media.
*/
    user_id: number;
    /**
The bought media if the transaction wasn't refunded.
*/
    media: PaidMedia[];
}
/**
The transaction is a sale of paid media by the bot or a business account managed by the bot; for bots only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeBotPaidMediaSale {
    '@type': 'starTransactionTypeBotPaidMediaSale';
    /**
Identifier of the user that bought the media.
*/
    user_id: number;
    /**
The bought media.
*/
    media: PaidMedia[];
    /**
Bot-provided payload.
*/
    payload: string;
    /**
Information about the affiliate which received commission from the transaction; may be null if none.
*/
    affiliate: AffiliateInfo;
}
/**
The transaction is a purchase of paid media from a channel by the current user; for regular users only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeChannelPaidMediaPurchase {
    '@type': 'starTransactionTypeChannelPaidMediaPurchase';
    /**
Identifier of the channel chat that sent the paid media.
*/
    chat_id: number;
    /**
Identifier of the corresponding message with paid media; can be 0 or an identifier of a deleted message.
*/
    message_id: number;
    /**
The bought media if the transaction wasn't refunded.
*/
    media: PaidMedia[];
}
/**
The transaction is a sale of paid media by the channel chat; for channel chats only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeChannelPaidMediaSale {
    '@type': 'starTransactionTypeChannelPaidMediaSale';
    /**
Identifier of the user that bought the media.
*/
    user_id: number;
    /**
Identifier of the corresponding message with paid media; can be 0 or an identifier of a deleted message.
*/
    message_id: number;
    /**
The bought media.
*/
    media: PaidMedia[];
}
/**
The transaction is a purchase of a product from a bot or a business account by the current user; for regular users only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeBotInvoicePurchase {
    '@type': 'starTransactionTypeBotInvoicePurchase';
    /**
Identifier of the bot or the business account user that created the invoice.
*/
    user_id: number;
    /**
Information about the bought product.
*/
    product_info: ProductInfo;
}
/**
The transaction is a sale of a product by the bot; for bots only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeBotInvoiceSale {
    '@type': 'starTransactionTypeBotInvoiceSale';
    /**
Identifier of the user that bought the product.
*/
    user_id: number;
    /**
Information about the bought product.
*/
    product_info: ProductInfo;
    /**
Invoice payload.
*/
    invoice_payload: string;
    /**
Information about the affiliate which received commission from the transaction; may be null if none.
*/
    affiliate: AffiliateInfo;
}
/**
The transaction is a purchase of a subscription from a bot or a business account by the current user; for regular users
only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeBotSubscriptionPurchase {
    '@type': 'starTransactionTypeBotSubscriptionPurchase';
    /**
Identifier of the bot or the business account user that created the subscription link.
*/
    user_id: number;
    /**
The number of seconds between consecutive Telegram Star debitings.
*/
    subscription_period: number;
    /**
Information about the bought subscription.
*/
    product_info: ProductInfo;
}
/**
The transaction is a sale of a subscription by the bot; for bots only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeBotSubscriptionSale {
    '@type': 'starTransactionTypeBotSubscriptionSale';
    /**
Identifier of the user that bought the subscription.
*/
    user_id: number;
    /**
The number of seconds between consecutive Telegram Star debitings.
*/
    subscription_period: number;
    /**
Information about the bought subscription.
*/
    product_info: ProductInfo;
    /**
Invoice payload.
*/
    invoice_payload: string;
    /**
Information about the affiliate which received commission from the transaction; may be null if none.
*/
    affiliate: AffiliateInfo;
}
/**
The transaction is a purchase of a subscription to a channel chat by the current user; for regular users only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeChannelSubscriptionPurchase {
    '@type': 'starTransactionTypeChannelSubscriptionPurchase';
    /**
Identifier of the channel chat that created the subscription.
*/
    chat_id: number;
    /**
The number of seconds between consecutive Telegram Star debitings.
*/
    subscription_period: number;
}
/**
The transaction is a sale of a subscription by the channel chat; for channel chats only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeChannelSubscriptionSale {
    '@type': 'starTransactionTypeChannelSubscriptionSale';
    /**
Identifier of the user that bought the subscription.
*/
    user_id: number;
    /**
The number of seconds between consecutive Telegram Star debitings.
*/
    subscription_period: number;
}
/**
The transaction is a purchase of a regular gift; for regular users and bots only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeGiftPurchase {
    '@type': 'starTransactionTypeGiftPurchase';
    /**
Identifier of the user or the channel that received the gift.
*/
    owner_id: MessageSender;
    /**
The gift.
*/
    gift: Gift;
}
/**
The transaction is a transfer of an upgraded gift; for regular users only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeGiftTransfer {
    '@type': 'starTransactionTypeGiftTransfer';
    /**
Identifier of the user or the channel that received the gift.
*/
    owner_id: MessageSender;
    /**
The gift.
*/
    gift: UpgradedGift;
}
/**
The transaction is a sale of a received gift; for regular users and channel chats only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeGiftSale {
    '@type': 'starTransactionTypeGiftSale';
    /**
Identifier of the user that sent the gift.
*/
    user_id: number;
    /**
The gift.
*/
    gift: Gift;
}
/**
The transaction is an upgrade of a gift; for regular users only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeGiftUpgrade {
    '@type': 'starTransactionTypeGiftUpgrade';
    /**
Identifier of the user that initially sent the gift.
*/
    user_id: number;
    /**
The upgraded gift.
*/
    gift: UpgradedGift;
}
/**
The transaction is a sending of a paid reaction to a message in a channel chat by the current user; for regular users
only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeChannelPaidReactionSend {
    '@type': 'starTransactionTypeChannelPaidReactionSend';
    /**
Identifier of the channel chat.
*/
    chat_id: number;
    /**
Identifier of the reacted message; can be 0 or an identifier of a deleted message.
*/
    message_id: number;
}
/**
The transaction is a receiving of a paid reaction to a message by the channel chat; for channel chats only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeChannelPaidReactionReceive {
    '@type': 'starTransactionTypeChannelPaidReactionReceive';
    /**
Identifier of the user that added the paid reaction.
*/
    user_id: number;
    /**
Identifier of the reacted message; can be 0 or an identifier of a deleted message.
*/
    message_id: number;
}
/**
The transaction is a receiving of a commission from an affiliate program; for regular users, bots and channel chats
only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeAffiliateProgramCommission {
    '@type': 'starTransactionTypeAffiliateProgramCommission';
    /**
Identifier of the chat that created the affiliate program.
*/
    chat_id: number;
    /**
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner.
*/
    commission_per_mille: number;
}
/**
The transaction is a sending of a paid message; for regular users only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypePaidMessageSend {
    '@type': 'starTransactionTypePaidMessageSend';
    /**
Identifier of the chat that received the payment.
*/
    chat_id: number;
    /**
Number of sent paid messages.
*/
    message_count: number;
}
/**
The transaction is a receiving of a paid message; for regular users and supergroup chats only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypePaidMessageReceive {
    '@type': 'starTransactionTypePaidMessageReceive';
    /**
Identifier of the sender of the message.
*/
    sender_id: MessageSender;
    /**
Number of received paid messages.
*/
    message_count: number;
    /**
The number of Telegram Stars received by the Telegram for each 1000 Telegram Stars paid for message sending.
*/
    commission_per_mille: number;
    /**
The amount of Telegram Stars that were received by Telegram; can be negative for refunds.
*/
    commission_star_amount: StarAmount;
}
/**
The transaction is a purchase of Telegram Premium subscription; for regular users only.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypePremiumPurchase {
    '@type': 'starTransactionTypePremiumPurchase';
    /**
Identifier of the user that received the Telegram Premium subscription.
*/
    user_id: number;
    /**
Number of months the Telegram Premium subscription will be active.
*/
    month_count: number;
    /**
A sticker to be shown in the transaction information; may be null if unknown.
*/
    sticker: Sticker;
}
/**
The transaction is a transaction of an unsupported type.
Subtype of {@link StarTransactionType}.
*/
export interface StarTransactionTypeUnsupported {
    '@type': 'starTransactionTypeUnsupported';
}
/**
Represents a transaction changing the amount of owned Telegram Stars.
*/
export interface StarTransaction {
    '@type': 'starTransaction';
    /**
Unique identifier of the transaction.
*/
    id: string;
    /**
The amount of added owned Telegram Stars; negative for outgoing transactions.
*/
    star_amount: StarAmount;
    /**
True, if the transaction is a refund of a previous transaction.
*/
    is_refund?: boolean;
    /**
Point in time (Unix timestamp) when the transaction was completed.
*/
    date: number;
    /**
Type of the transaction.
*/
    type: StarTransactionType;
}
/**
Represents a list of Telegram Star transactions.
*/
export interface StarTransactions {
    '@type': 'starTransactions';
    /**
The amount of owned Telegram Stars.
*/
    star_amount: StarAmount;
    /**
List of transactions with Telegram Stars.
*/
    transactions: StarTransaction[];
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Contains information about status of a user in a giveaway.
Subtype of {@link GiveawayParticipantStatus}.
*/
export interface GiveawayParticipantStatusEligible {
    '@type': 'giveawayParticipantStatusEligible';
}
/**
The user participates in the giveaway.
Subtype of {@link GiveawayParticipantStatus}.
*/
export interface GiveawayParticipantStatusParticipating {
    '@type': 'giveawayParticipantStatusParticipating';
}
/**
The user can't participate in the giveaway, because they have already been member of the chat.
Subtype of {@link GiveawayParticipantStatus}.
*/
export interface GiveawayParticipantStatusAlreadyWasMember {
    '@type': 'giveawayParticipantStatusAlreadyWasMember';
    /**
Point in time (Unix timestamp) when the user joined the chat.
*/
    joined_chat_date: number;
}
/**
The user can't participate in the giveaway, because they are an administrator in one of the chats that created the
giveaway.
Subtype of {@link GiveawayParticipantStatus}.
*/
export interface GiveawayParticipantStatusAdministrator {
    '@type': 'giveawayParticipantStatusAdministrator';
    /**
Identifier of the chat administered by the user.
*/
    chat_id: number;
}
/**
The user can't participate in the giveaway, because they phone number is from a disallowed country.
Subtype of {@link GiveawayParticipantStatus}.
*/
export interface GiveawayParticipantStatusDisallowedCountry {
    '@type': 'giveawayParticipantStatusDisallowedCountry';
    /**
A two-letter ISO 3166-1 alpha-2 country code of the user's country.
*/
    user_country_code: string;
}
/**
Contains information about a giveaway.
Subtype of {@link GiveawayInfo}.
*/
export interface GiveawayInfoOngoing {
    '@type': 'giveawayInfoOngoing';
    /**
Point in time (Unix timestamp) when the giveaway was created.
*/
    creation_date: number;
    /**
Status of the current user in the giveaway.
*/
    status: GiveawayParticipantStatus;
    /**
True, if the giveaway has ended and results are being prepared.
*/
    is_ended?: boolean;
}
/**
Describes a completed giveaway.
Subtype of {@link GiveawayInfo}.
*/
export interface GiveawayInfoCompleted {
    '@type': 'giveawayInfoCompleted';
    /**
Point in time (Unix timestamp) when the giveaway was created.
*/
    creation_date: number;
    /**
Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in
parameters of the giveaway.
*/
    actual_winners_selection_date: number;
    /**
True, if the giveaway was canceled and was fully refunded.
*/
    was_refunded?: boolean;
    /**
True, if the current user is a winner of the giveaway.
*/
    is_winner?: boolean;
    /**
Number of winners in the giveaway.
*/
    winner_count: number;
    /**
Number of winners, which activated their gift codes; for Telegram Premium giveaways only.
*/
    activation_count: number;
    /**
Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway or
the giveaway isn't a Telegram Premium giveaway.
*/
    gift_code: string;
    /**
The amount of Telegram Stars won by the current user; 0 if the user isn't a winner in the giveaway or the giveaway isn't
a Telegram Star giveaway.
*/
    won_star_count: number;
}
/**
Contains information about a giveaway prize.
Subtype of {@link GiveawayPrize}.
*/
export interface GiveawayPrizePremium {
    '@type': 'giveawayPrizePremium';
    /**
Number of months the Telegram Premium subscription will be active after code activation.
*/
    month_count: number;
}
/**
The giveaway sends Telegram Stars to the winners.
Subtype of {@link GiveawayPrize}.
*/
export interface GiveawayPrizeStars {
    '@type': 'giveawayPrizeStars';
    /**
Number of Telegram Stars that will be shared by all winners.
*/
    star_count: number;
}
/**
Contains information about supported accent color for user/chat name, background of empty chat photo, replies to
messages and link previews.
*/
export interface AccentColor {
    '@type': 'accentColor';
    /**
Accent color identifier.
*/
    id: number;
    /**
Identifier of a built-in color to use in places, where only one color is needed; 0-6.
*/
    built_in_accent_color_id: number;
    /**
The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes.
*/
    light_theme_colors: number[];
    /**
The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes.
*/
    dark_theme_colors: number[];
    /**
The minimum chat boost level required to use the color in a channel chat.
*/
    min_channel_chat_boost_level: number;
}
/**
Contains information about supported accent colors for user profile photo background in RGB format.
*/
export interface ProfileAccentColors {
    '@type': 'profileAccentColors';
    /**
The list of 1-2 colors in RGB format, describing the colors, as expected to be shown in the color palette settings.
*/
    palette_colors: number[];
    /**
The list of 1-2 colors in RGB format, describing the colors, as expected to be used for the profile photo background.
*/
    background_colors: number[];
    /**
The list of 2 colors in RGB format, describing the colors of the gradient to be used for the unread active story
indicator around profile photo.
*/
    story_colors: number[];
}
/**
Contains information about supported accent color for user profile photo background.
*/
export interface ProfileAccentColor {
    '@type': 'profileAccentColor';
    /**
Profile accent color identifier.
*/
    id: number;
    /**
Accent colors expected to be used in light themes.
*/
    light_theme_colors: ProfileAccentColors;
    /**
Accent colors expected to be used in dark themes.
*/
    dark_theme_colors: ProfileAccentColors;
    /**
The minimum chat boost level required to use the color in a supergroup chat.
*/
    min_supergroup_chat_boost_level: number;
    /**
The minimum chat boost level required to use the color in a channel chat.
*/
    min_channel_chat_boost_level: number;
}
/**
Describes type of emoji status.
Subtype of {@link EmojiStatusType}.
*/
export interface EmojiStatusTypeCustomEmoji {
    '@type': 'emojiStatusTypeCustomEmoji';
    /**
Identifier of the custom emoji in stickerFormatTgs format.
*/
    custom_emoji_id: string;
}
/**
An upgraded gift set as emoji status.
Subtype of {@link EmojiStatusType}.
*/
export interface EmojiStatusTypeUpgradedGift {
    '@type': 'emojiStatusTypeUpgradedGift';
    /**
Identifier of the upgraded gift.
*/
    upgraded_gift_id: string;
    /**
The title of the upgraded gift.
*/
    gift_title: string;
    /**
Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift.
*/
    gift_name: string;
    /**
Custom emoji identifier of the model of the upgraded gift.
*/
    model_custom_emoji_id: string;
    /**
Custom emoji identifier of the symbol of the upgraded gift.
*/
    symbol_custom_emoji_id: string;
    /**
Colors of the backdrop of the upgraded gift.
*/
    backdrop_colors: UpgradedGiftBackdropColors;
}
/**
Describes an emoji to be shown instead of the Telegram Premium badge.
*/
export interface EmojiStatus {
    '@type': 'emojiStatus';
    /**
Type of the emoji status.
*/
    type: EmojiStatusType;
    /**
Point in time (Unix timestamp) when the status will expire; 0 if never.
*/
    expiration_date: number;
}
/**
Contains a list of emoji statuses.
*/
export interface EmojiStatuses {
    '@type': 'emojiStatuses';
    /**
The list of emoji statuses identifiers.
*/
    emoji_statuses: EmojiStatus[];
}
/**
Contains a list of custom emoji identifiers for emoji statuses.
*/
export interface EmojiStatusCustomEmojis {
    '@type': 'emojiStatusCustomEmojis';
    /**
The list of custom emoji identifiers.
*/
    custom_emoji_ids: string[];
}
/**
Describes usernames assigned to a user, a supergroup, or a channel.
*/
export interface Usernames {
    '@type': 'usernames';
    /**
List of active usernames; the first one must be shown as the primary username. The order of active usernames can be
changed with reorderActiveUsernames, reorderBotActiveUsernames or reorderSupergroupActiveUsernames.
*/
    active_usernames: string[];
    /**
List of currently disabled usernames; the username can be activated with toggleUsernameIsActive,
toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.
*/
    disabled_usernames: string[];
    /**
The active username, which can be changed with setUsername or setSupergroupUsername. Information about other active
usernames can be received using getCollectibleItemInfo.
*/
    editable_username: string;
}
/**
Represents a user.
*/
export interface User {
    '@type': 'user';
    /**
User identifier.
*/
    id: number;
    /**
First name of the user.
*/
    first_name: string;
    /**
Last name of the user.
*/
    last_name: string;
    /**
Usernames of the user; may be null.
*/
    usernames: Usernames;
    /**
Phone number of the user.
*/
    phone_number: string;
    /**
Current online status of the user.
*/
    status: UserStatus;
    /**
Profile photo of the user; may be null.
*/
    profile_photo: ProfilePhoto;
    /**
Identifier of the accent color for name, and backgrounds of profile photo, reply header, and link preview.
*/
    accent_color_id: number;
    /**
Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none.
*/
    background_custom_emoji_id: string;
    /**
Identifier of the accent color for the user's profile; -1 if none.
*/
    profile_accent_color_id: number;
    /**
Identifier of a custom emoji to be shown on the background of the user's profile; 0 if none.
*/
    profile_background_custom_emoji_id: string;
    /**
Emoji status to be shown instead of the default Telegram Premium badge; may be null.
*/
    emoji_status: EmojiStatus;
    /**
The user is a contact of the current user.
*/
    is_contact?: boolean;
    /**
The user is a contact of the current user and the current user is a contact of the user.
*/
    is_mutual_contact?: boolean;
    /**
The user is a close friend of the current user; implies that the user is a contact.
*/
    is_close_friend?: boolean;
    /**
Information about verification status of the user; may be null if none.
*/
    verification_status: VerificationStatus;
    /**
True, if the user is a Telegram Premium user.
*/
    is_premium?: boolean;
    /**
True, if the user is Telegram support account.
*/
    is_support?: boolean;
    /**
If non-empty, it contains a human-readable description of the reason why access to this user must be restricted.
*/
    restriction_reason: string;
    /**
True, if the user has non-expired stories available to the current user.
*/
    has_active_stories?: boolean;
    /**
True, if the user has unread non-expired stories available to the current user.
*/
    has_unread_active_stories?: boolean;
    /**
True, if the user may restrict new chats with non-contacts. Use canSendMessageToUser to check whether the current user
can message the user or try to create a chat with them.
*/
    restricts_new_chats?: boolean;
    /**
Number of Telegram Stars that must be paid by general user for each sent message to the user. If positive and
userFullInfo is unknown, use canSendMessageToUser to check whether the current user must pay.
*/
    paid_message_star_count: number;
    /**
If false, the user is inaccessible, and the only information known about the user is inside this class. Identifier of
the user can't be passed to any method.
*/
    have_access?: boolean;
    /**
Type of the user.
*/
    type: UserType;
    /**
IETF language tag of the user's language; only available to bots.
*/
    language_code: string;
    /**
True, if the user added the current bot to attachment menu; only available to bots.
*/
    added_to_attachment_menu?: boolean;
}
/**
Contains information about a bot.
*/
export interface BotInfo {
    '@type': 'botInfo';
    /**
The text that is shown on the bot's profile page and is sent together with the link when users share the bot.
*/
    short_description: string;
    /**
Contains information about a bot.
*/
    description: string;
    /**
Photo shown in the chat with the bot if the chat is empty; may be null.
*/
    photo: Photo;
    /**
Animation shown in the chat with the bot if the chat is empty; may be null.
*/
    animation: Animation;
    /**
Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu
must be shown.
*/
    menu_button: BotMenuButton;
    /**
List of the bot commands.
*/
    commands: BotCommand[];
    /**
The HTTP link to the privacy policy of the bot. If empty, then /privacy command must be used if supported by the bot. If
the command isn't supported, then https://telegram.org/privacy-tpa must be opened.
*/
    privacy_policy_url: string;
    /**
Default administrator rights for adding the bot to basic group and supergroup chats; may be null.
*/
    default_group_administrator_rights: ChatAdministratorRights;
    /**
Default administrator rights for adding the bot to channels; may be null.
*/
    default_channel_administrator_rights: ChatAdministratorRights;
    /**
Information about the affiliate program of the bot; may be null if none.
*/
    affiliate_program: AffiliateProgramInfo;
    /**
Default light background color for bot Web Apps; -1 if not specified.
*/
    web_app_background_light_color: number;
    /**
Default dark background color for bot Web Apps; -1 if not specified.
*/
    web_app_background_dark_color: number;
    /**
Default light header color for bot Web Apps; -1 if not specified.
*/
    web_app_header_light_color: number;
    /**
Default dark header color for bot Web Apps; -1 if not specified.
*/
    web_app_header_dark_color: number;
    /**
Parameters of the verification that can be provided by the bot; may be null if none or the current user isn't the owner
of the bot.
*/
    verification_parameters: BotVerificationParameters;
    /**
True, if the bot's revenue statistics are available to the current user.
*/
    can_get_revenue_statistics?: boolean;
    /**
True, if the bot can manage emoji status of the current user.
*/
    can_manage_emoji_status?: boolean;
    /**
True, if the bot has media previews.
*/
    has_media_previews?: boolean;
    /**
The internal link, which can be used to edit bot commands; may be null.
*/
    edit_commands_link: InternalLinkType;
    /**
The internal link, which can be used to edit bot description; may be null.
*/
    edit_description_link: InternalLinkType;
    /**
The internal link, which can be used to edit the photo or animation shown in the chat with the bot if the chat is empty;
may be null.
*/
    edit_description_media_link: InternalLinkType;
    /**
The internal link, which can be used to edit bot settings; may be null.
*/
    edit_settings_link: InternalLinkType;
}
/**
Contains full information about a user.
*/
export interface UserFullInfo {
    '@type': 'userFullInfo';
    /**
User profile photo set by the current user for the contact; may be null. If null and user.profile_photo is null, then
the photo is empty; otherwise, it is unknown. If non-null, then it is the same photo as in user.profile_photo and
chat.photo. This photo isn't returned in the list of user photos.
*/
    personal_photo: ChatPhoto;
    /**
User profile photo; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is
unknown. If non-null and personal_photo is null, then it is the same photo as in user.profile_photo and chat.photo.
*/
    photo: ChatPhoto;
    /**
User profile photo visible if the main photo is hidden by privacy settings; may be null. If null and user.profile_photo
is null, then the photo is empty; otherwise, it is unknown. If non-null and both photo and personal_photo are null, then
it is the same photo as in user.profile_photo and chat.photo. This photo isn't returned in the list of user photos.
*/
    public_photo: ChatPhoto;
    /**
Block list to which the user is added; may be null if none.
*/
    block_list: BlockList;
    /**
True, if the user can be called.
*/
    can_be_called?: boolean;
    /**
True, if a video call can be created with the user.
*/
    supports_video_calls?: boolean;
    /**
True, if the user can't be called due to their privacy settings.
*/
    has_private_calls?: boolean;
    /**
True, if the user can't be linked in forwarded messages due to their privacy settings.
*/
    has_private_forwards?: boolean;
    /**
True, if voice and video notes can't be sent or forwarded to the user.
*/
    has_restricted_voice_and_video_note_messages?: boolean;
    /**
True, if the user has posted to profile stories.
*/
    has_posted_to_profile_stories?: boolean;
    /**
True, if the user always enabled sponsored messages; known only for the current user.
*/
    has_sponsored_messages_enabled?: boolean;
    /**
True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact
is used.
*/
    need_phone_number_privacy_exception?: boolean;
    /**
True, if the user set chat background for both chat users and it wasn't reverted yet.
*/
    set_chat_background?: boolean;
    /**
A short user bio; may be null for bots.
*/
    bio: FormattedText;
    /**
Birthdate of the user; may be null if unknown.
*/
    birthdate: Birthdate;
    /**
Identifier of the personal chat of the user; 0 if none.
*/
    personal_chat_id: number;
    /**
Number of saved to profile gifts for other users or the total number of received gifts for the current user.
*/
    gift_count: number;
    /**
Number of group chats where both the other user and the current user are a member; 0 for the current user.
*/
    group_in_common_count: number;
    /**
Number of Telegram Stars that must be paid by the user for each sent message to the current user.
*/
    incoming_paid_message_star_count: number;
    /**
Number of Telegram Stars that must be paid by the current user for each sent message to the user.
*/
    outgoing_paid_message_star_count: number;
    /**
Information about verification status of the user provided by a bot; may be null if none or unknown.
*/
    bot_verification: BotVerification;
    /**
Information about business settings for Telegram Business accounts; may be null if none.
*/
    business_info: BusinessInfo;
    /**
For bots, information about the bot; may be null if the user isn't a bot.
*/
    bot_info: BotInfo;
}
/**
Represents a list of users.
*/
export interface Users {
    '@type': 'users';
    /**
Approximate total number of users found.
*/
    total_count: number;
    /**
A list of user identifiers.
*/
    user_ids: number[];
}
/**
Represents a list of found users.
*/
export interface FoundUsers {
    '@type': 'foundUsers';
    /**
Identifiers of the found users.
*/
    user_ids: number[];
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Contains information about a chat administrator.
*/
export interface ChatAdministrator {
    '@type': 'chatAdministrator';
    /**
User identifier of the administrator.
*/
    user_id: number;
    /**
Custom title of the administrator.
*/
    custom_title: string;
    /**
True, if the user is the owner of the chat.
*/
    is_owner?: boolean;
}
/**
Represents a list of chat administrators.
*/
export interface ChatAdministrators {
    '@type': 'chatAdministrators';
    /**
A list of chat administrators.
*/
    administrators: ChatAdministrator[];
}
/**
Provides information about the status of a member in a chat.
Subtype of {@link ChatMemberStatus}.
*/
export interface ChatMemberStatusCreator {
    '@type': 'chatMemberStatusCreator';
    /**
A custom title of the owner; 0-16 characters without emoji; applicable to supergroups only.
*/
    custom_title: string;
    /**
True, if the creator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.
*/
    is_anonymous?: boolean;
    /**
True, if the user is a member of the chat.
*/
    is_member?: boolean;
}
/**
The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete
messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels,
there are more detailed options for administrator privileges.
Subtype of {@link ChatMemberStatus}.
*/
export interface ChatMemberStatusAdministrator {
    '@type': 'chatMemberStatusAdministrator';
    /**
A custom title of the administrator; 0-16 characters without emoji; applicable to supergroups only.
*/
    custom_title: string;
    /**
True, if the current user can edit the administrator privileges for the called user.
*/
    can_be_edited?: boolean;
    /**
Rights of the administrator.
*/
    rights: ChatAdministratorRights;
}
/**
The user is a member of the chat, without any additional privileges or restrictions.
Subtype of {@link ChatMemberStatus}.
*/
export interface ChatMemberStatusMember {
    '@type': 'chatMemberStatusMember';
    /**
Point in time (Unix timestamp) when the user will be removed from the chat because of the expired subscription; 0 if
never. Ignored in setChatMemberStatus.
*/
    member_until_date: number;
}
/**
The user is under certain restrictions in the chat. Not supported in basic groups and channels.
Subtype of {@link ChatMemberStatus}.
*/
export interface ChatMemberStatusRestricted {
    '@type': 'chatMemberStatusRestricted';
    /**
True, if the user is a member of the chat.
*/
    is_member?: boolean;
    /**
Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for
more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever.
*/
    restricted_until_date: number;
    /**
User permissions in the chat.
*/
    permissions: ChatPermissions;
}
/**
The user or the chat is not a chat member.
Subtype of {@link ChatMemberStatus}.
*/
export interface ChatMemberStatusLeft {
    '@type': 'chatMemberStatusLeft';
}
/**
The user or the chat was banned (and hence is not a member of the chat). Implies the user can't return to the chat, view
messages, or be used as a participant identifier to join a video chat of the chat.
Subtype of {@link ChatMemberStatus}.
*/
export interface ChatMemberStatusBanned {
    '@type': 'chatMemberStatusBanned';
    /**
Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days
or for less than 30 seconds from the current time, the user is considered to be banned forever. Always 0 in basic
groups.
*/
    banned_until_date: number;
}
/**
Describes a user or a chat as a member of another chat.
*/
export interface ChatMember {
    '@type': 'chatMember';
    /**
Identifier of the chat member. Currently, other chats can be only Left or Banned. Only supergroups and channels can have
other chats as Left or Banned members and these chats must be supergroups or channels.
*/
    member_id: MessageSender;
    /**
Identifier of a user that invited/promoted/banned this member in the chat; 0 if unknown.
*/
    inviter_user_id: number;
    /**
Point in time (Unix timestamp) when the user joined/was promoted/was banned in the chat.
*/
    joined_chat_date: number;
    /**
Status of the member in the chat.
*/
    status: ChatMemberStatus;
}
/**
Contains a list of chat members.
*/
export interface ChatMembers {
    '@type': 'chatMembers';
    /**
Approximate total number of chat members found.
*/
    total_count: number;
    /**
A list of chat members.
*/
    members: ChatMember[];
}
/**
Specifies the kind of chat members to return in searchChatMembers.
Subtype of {@link ChatMembersFilter}.
*/
export interface ChatMembersFilterContacts {
    '@type': 'chatMembersFilterContacts';
}
/**
Returns the owner and administrators.
Subtype of {@link ChatMembersFilter}.
*/
export interface ChatMembersFilterAdministrators {
    '@type': 'chatMembersFilterAdministrators';
}
/**
Returns all chat members, including restricted chat members.
Subtype of {@link ChatMembersFilter}.
*/
export interface ChatMembersFilterMembers {
    '@type': 'chatMembersFilterMembers';
}
/**
Returns users which can be mentioned in the chat.
Subtype of {@link ChatMembersFilter}.
*/
export interface ChatMembersFilterMention {
    '@type': 'chatMembersFilterMention';
    /**
If non-zero, the identifier of the current message thread.
*/
    message_thread_id: number;
}
/**
Returns users under certain restrictions in the chat; can be used only by administrators in a supergroup.
Subtype of {@link ChatMembersFilter}.
*/
export interface ChatMembersFilterRestricted {
    '@type': 'chatMembersFilterRestricted';
}
/**
Returns users banned from the chat; can be used only by administrators in a supergroup or in a channel.
Subtype of {@link ChatMembersFilter}.
*/
export interface ChatMembersFilterBanned {
    '@type': 'chatMembersFilterBanned';
}
/**
Returns bot members of the chat.
Subtype of {@link ChatMembersFilter}.
*/
export interface ChatMembersFilterBots {
    '@type': 'chatMembersFilterBots';
}
/**
Specifies the kind of chat members to return in getSupergroupMembers.
Subtype of {@link SupergroupMembersFilter}.
*/
export interface SupergroupMembersFilterRecent {
    '@type': 'supergroupMembersFilterRecent';
}
/**
Returns contacts of the user, which are members of the supergroup or channel.
Subtype of {@link SupergroupMembersFilter}.
*/
export interface SupergroupMembersFilterContacts {
    '@type': 'supergroupMembersFilterContacts';
    /**
Query to search for.
*/
    query: string;
}
/**
Returns the owner and administrators.
Subtype of {@link SupergroupMembersFilter}.
*/
export interface SupergroupMembersFilterAdministrators {
    '@type': 'supergroupMembersFilterAdministrators';
}
/**
Used to search for supergroup or channel members via a (string) query.
Subtype of {@link SupergroupMembersFilter}.
*/
export interface SupergroupMembersFilterSearch {
    '@type': 'supergroupMembersFilterSearch';
    /**
Query to search for.
*/
    query: string;
}
/**
Returns restricted supergroup members; can be used only by administrators.
Subtype of {@link SupergroupMembersFilter}.
*/
export interface SupergroupMembersFilterRestricted {
    '@type': 'supergroupMembersFilterRestricted';
    /**
Query to search for.
*/
    query: string;
}
/**
Returns users banned from the supergroup or channel; can be used only by administrators.
Subtype of {@link SupergroupMembersFilter}.
*/
export interface SupergroupMembersFilterBanned {
    '@type': 'supergroupMembersFilterBanned';
    /**
Query to search for.
*/
    query: string;
}
/**
Returns users which can be mentioned in the supergroup.
Subtype of {@link SupergroupMembersFilter}.
*/
export interface SupergroupMembersFilterMention {
    '@type': 'supergroupMembersFilterMention';
    /**
Query to search for.
*/
    query: string;
    /**
If non-zero, the identifier of the current message thread.
*/
    message_thread_id: number;
}
/**
Returns bot members of the supergroup or channel.
Subtype of {@link SupergroupMembersFilter}.
*/
export interface SupergroupMembersFilterBots {
    '@type': 'supergroupMembersFilterBots';
}
/**
Contains a chat invite link.
*/
export interface ChatInviteLink {
    '@type': 'chatInviteLink';
    /**
Chat invite link.
*/
    invite_link: string;
    /**
Name of the link.
*/
    name: string;
    /**
User identifier of an administrator created the link.
*/
    creator_user_id: number;
    /**
Point in time (Unix timestamp) when the link was created.
*/
    date: number;
    /**
Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown.
*/
    edit_date: number;
    /**
Point in time (Unix timestamp) when the link will expire; 0 if never.
*/
    expiration_date: number;
    /**
Information about subscription plan that is applied to the users joining the chat by the link; may be null if the link
doesn't require subscription.
*/
    subscription_pricing: StarSubscriptionPricing;
    /**
The maximum number of members, which can join the chat using the link simultaneously; 0 if not limited. Always 0 if the
link requires approval.
*/
    member_limit: number;
    /**
Number of chat members, which joined the chat using the link.
*/
    member_count: number;
    /**
Number of chat members, which joined the chat using the link, but have already left because of expired subscription; for
subscription links only.
*/
    expired_member_count: number;
    /**
Number of pending join requests created using this link.
*/
    pending_join_request_count: number;
    /**
True, if the link only creates join request. If true, total number of joining members will be unlimited.
*/
    creates_join_request?: boolean;
    /**
True, if the link is primary. Primary invite link can't have name, expiration date, or usage limit. There is exactly one
primary invite link for each administrator with can_invite_users right at a given time.
*/
    is_primary?: boolean;
    /**
True, if the link was revoked.
*/
    is_revoked?: boolean;
}
/**
Contains a list of chat invite links.
*/
export interface ChatInviteLinks {
    '@type': 'chatInviteLinks';
    /**
Approximate total number of chat invite links found.
*/
    total_count: number;
    /**
List of invite links.
*/
    invite_links: ChatInviteLink[];
}
/**
Describes a chat administrator with a number of active and revoked chat invite links.
*/
export interface ChatInviteLinkCount {
    '@type': 'chatInviteLinkCount';
    /**
Administrator's user identifier.
*/
    user_id: number;
    /**
Number of active invite links.
*/
    invite_link_count: number;
    /**
Number of revoked invite links.
*/
    revoked_invite_link_count: number;
}
/**
Contains a list of chat invite link counts.
*/
export interface ChatInviteLinkCounts {
    '@type': 'chatInviteLinkCounts';
    /**
List of invite link counts.
*/
    invite_link_counts: ChatInviteLinkCount[];
}
/**
Describes a chat member joined a chat via an invite link.
*/
export interface ChatInviteLinkMember {
    '@type': 'chatInviteLinkMember';
    /**
User identifier.
*/
    user_id: number;
    /**
Point in time (Unix timestamp) when the user joined the chat.
*/
    joined_chat_date: number;
    /**
True, if the user has joined the chat using an invite link for a chat folder.
*/
    via_chat_folder_invite_link?: boolean;
    /**
User identifier of the chat administrator, approved user join request.
*/
    approver_user_id: number;
}
/**
Contains a list of chat members joined a chat via an invite link.
*/
export interface ChatInviteLinkMembers {
    '@type': 'chatInviteLinkMembers';
    /**
Approximate total number of chat members found.
*/
    total_count: number;
    /**
List of chat members, joined a chat via an invite link.
*/
    members: ChatInviteLinkMember[];
}
/**
Describes the type of chat to which points an invite link.
Subtype of {@link InviteLinkChatType}.
*/
export interface InviteLinkChatTypeBasicGroup {
    '@type': 'inviteLinkChatTypeBasicGroup';
}
/**
The link is an invite link for a supergroup.
Subtype of {@link InviteLinkChatType}.
*/
export interface InviteLinkChatTypeSupergroup {
    '@type': 'inviteLinkChatTypeSupergroup';
}
/**
The link is an invite link for a channel.
Subtype of {@link InviteLinkChatType}.
*/
export interface InviteLinkChatTypeChannel {
    '@type': 'inviteLinkChatTypeChannel';
}
/**
Contains information about subscription plan that must be paid by the user to use a chat invite link.
*/
export interface ChatInviteLinkSubscriptionInfo {
    '@type': 'chatInviteLinkSubscriptionInfo';
    /**
Information about subscription plan that must be paid by the user to use the link.
*/
    pricing: StarSubscriptionPricing;
    /**
True, if the user has already paid for the subscription and can use joinChatByInviteLink to join the subscribed chat
again.
*/
    can_reuse?: boolean;
    /**
Identifier of the payment form to use for subscription payment; 0 if the subscription can't be paid.
*/
    form_id: string;
}
/**
Contains information about a chat invite link.
*/
export interface ChatInviteLinkInfo {
    '@type': 'chatInviteLinkInfo';
    /**
Chat identifier of the invite link; 0 if the user has no access to the chat before joining.
*/
    chat_id: number;
    /**
If non-zero, the amount of time for which read access to the chat will remain available, in seconds.
*/
    accessible_for: number;
    /**
Type of the chat.
*/
    type: InviteLinkChatType;
    /**
Title of the chat.
*/
    title: string;
    /**
Chat photo; may be null.
*/
    photo: ChatPhotoInfo;
    /**
Identifier of the accent color for chat title and background of chat photo.
*/
    accent_color_id: number;
    /**
Contains information about a chat invite link.
*/
    description: string;
    /**
Number of members in the chat.
*/
    member_count: number;
    /**
User identifiers of some chat members that may be known to the current user.
*/
    member_user_ids: number[];
    /**
Information about subscription plan that must be paid by the user to use the link; may be null if the link doesn't
require subscription.
*/
    subscription_info: ChatInviteLinkSubscriptionInfo;
    /**
True, if the link only creates join request.
*/
    creates_join_request?: boolean;
    /**
True, if the chat is a public supergroup or channel, i.e. it has a username or it is a location-based supergroup.
*/
    is_public?: boolean;
    /**
Information about verification status of the chat; may be null if none.
*/
    verification_status: VerificationStatus;
}
/**
Describes a user that sent a join request and waits for administrator approval.
*/
export interface ChatJoinRequest {
    '@type': 'chatJoinRequest';
    /**
User identifier.
*/
    user_id: number;
    /**
Point in time (Unix timestamp) when the user sent the join request.
*/
    date: number;
    /**
A short bio of the user.
*/
    bio: string;
}
/**
Contains a list of requests to join a chat.
*/
export interface ChatJoinRequests {
    '@type': 'chatJoinRequests';
    /**
Approximate total number of requests found.
*/
    total_count: number;
    /**
List of the requests.
*/
    requests: ChatJoinRequest[];
}
/**
Contains information about pending join requests for a chat.
*/
export interface ChatJoinRequestsInfo {
    '@type': 'chatJoinRequestsInfo';
    /**
Total number of pending join requests.
*/
    total_count: number;
    /**
Identifiers of at most 3 users sent the newest pending join requests.
*/
    user_ids: number[];
}
/**
Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users).
*/
export interface BasicGroup {
    '@type': 'basicGroup';
    /**
Group identifier.
*/
    id: number;
    /**
Number of members in the group.
*/
    member_count: number;
    /**
Status of the current user in the group.
*/
    status: ChatMemberStatus;
    /**
True, if the group is active.
*/
    is_active?: boolean;
    /**
Identifier of the supergroup to which this group was upgraded; 0 if none.
*/
    upgraded_to_supergroup_id: number;
}
/**
Contains full information about a basic group.
*/
export interface BasicGroupFullInfo {
    '@type': 'basicGroupFullInfo';
    /**
Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo.
*/
    photo: ChatPhoto;
    /**
Contains full information about a basic group.
*/
    description: string;
    /**
User identifier of the creator of the group; 0 if unknown.
*/
    creator_user_id: number;
    /**
Group members.
*/
    members: ChatMember[];
    /**
True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for
non-administrators after upgrading the basic group to a supergroup.
*/
    can_hide_members?: boolean;
    /**
True, if aggressive anti-spam checks can be enabled or disabled in the supergroup after upgrading the basic group to a
supergroup.
*/
    can_toggle_aggressive_anti_spam?: boolean;
    /**
Primary invite link for this group; may be null. For chat administrators with can_invite_users right only. Updated only
after the basic group is opened.
*/
    invite_link: ChatInviteLink;
    /**
List of commands of bots in the group.
*/
    bot_commands: BotCommands[];
}
/**
Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of
view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of
members, and posts from all administrators use the name and photo of the channel instead of individual names and profile
photos. Unlike supergroups, channels can have an unlimited number of subscribers.
*/
export interface Supergroup {
    '@type': 'supergroup';
    /**
Supergroup or channel identifier.
*/
    id: number;
    /**
Usernames of the supergroup or channel; may be null.
*/
    usernames: Usernames;
    /**
Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was
created, in case the user is not a member.
*/
    date: number;
    /**
Status of the current user in the supergroup or channel; custom title will always be empty.
*/
    status: ChatMemberStatus;
    /**
Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the
supergroup or channel was received through getChatSimilarChats, getChatsToSendStories, getCreatedPublicChats,
getGroupsInCommon, getInactiveSupergroupChats, getRecommendedChats, getSuitableDiscussionChats,
getUserPrivacySettingRules, getVideoChatAvailableParticipants, searchPublicChats, or in
chatFolderInviteLinkInfo.missing_chat_ids, or in userFullInfo.personal_chat_id, or for chats with messages or stories
from publicForwards and foundStories.
*/
    member_count: number;
    /**
Approximate boost level for the chat.
*/
    boost_level: number;
    /**
True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel.
*/
    has_linked_chat?: boolean;
    /**
True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup.
*/
    has_location?: boolean;
    /**
True, if messages sent to the channel contains name of the sender. This field is only applicable to channels.
*/
    sign_messages?: boolean;
    /**
True, if messages sent to the channel have information about the sender user. This field is only applicable to channels.
*/
    show_message_sender?: boolean;
    /**
True, if users need to join the supergroup before they can send messages. Always true for channels and non-discussion
supergroups.
*/
    join_to_send_messages?: boolean;
    /**
True, if all users directly joining the supergroup need to be approved by supergroup administrators. Always false for
channels and supergroups without username, location, or a linked chat.
*/
    join_by_request?: boolean;
    /**
True, if the slow mode is enabled in the supergroup.
*/
    is_slow_mode_enabled?: boolean;
    /**
True, if the supergroup is a channel.
*/
    is_channel?: boolean;
    /**
True, if the supergroup is a broadcast group, i.e. only administrators can send messages and there is no limit on the
number of members.
*/
    is_broadcast_group?: boolean;
    /**
True, if the supergroup is a forum with topics.
*/
    is_forum?: boolean;
    /**
Information about verification status of the supergroup or channel; may be null if none.
*/
    verification_status: VerificationStatus;
    /**
True, if content of media messages in the supergroup or channel chat must be hidden with 18+ spoiler.
*/
    has_sensitive_content?: boolean;
    /**
If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be
restricted.
*/
    restriction_reason: string;
    /**
Number of Telegram Stars that must be paid by non-administrator users of the supergroup chat for each sent message.
*/
    paid_message_star_count: number;
    /**
True, if the supergroup or channel has non-expired stories available to the current user.
*/
    has_active_stories?: boolean;
    /**
True, if the supergroup or channel has unread non-expired stories available to the current user.
*/
    has_unread_active_stories?: boolean;
}
/**
Contains full information about a supergroup or channel.
*/
export interface SupergroupFullInfo {
    '@type': 'supergroupFullInfo';
    /**
Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo.
*/
    photo: ChatPhoto;
    /**
Contains full information about a supergroup or channel.
*/
    description: string;
    /**
Number of members in the supergroup or channel; 0 if unknown.
*/
    member_count: number;
    /**
Number of privileged users in the supergroup or channel; 0 if unknown.
*/
    administrator_count: number;
    /**
Number of restricted users in the supergroup; 0 if unknown.
*/
    restricted_count: number;
    /**
Number of users banned from chat; 0 if unknown.
*/
    banned_count: number;
    /**
Chat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated
discussion group; 0 if none or unknown.
*/
    linked_chat_id: number;
    /**
Delay between consecutive sent messages for non-administrator supergroup members, in seconds.
*/
    slow_mode_delay: number;
    /**
Time left before next message can be sent in the supergroup, in seconds. An updateSupergroupFullInfo update is not
triggered when value of this field changes, but both new and old values are non-zero.
*/
    slow_mode_delay_expires_in: number;
    /**
True, if paid messages can be enabled in the supergroup chat; for supergroup only.
*/
    can_enable_paid_messages?: boolean;
    /**
True, if paid reaction can be enabled in the channel chat; for channels only.
*/
    can_enable_paid_reaction?: boolean;
    /**
True, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers.
*/
    can_get_members?: boolean;
    /**
True, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers.
*/
    has_hidden_members?: boolean;
    /**
True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for
non-administrators.
*/
    can_hide_members?: boolean;
    /**
True, if the supergroup sticker set can be changed.
*/
    can_set_sticker_set?: boolean;
    /**
True, if the supergroup location can be changed.
*/
    can_set_location?: boolean;
    /**
True, if the supergroup or channel statistics are available.
*/
    can_get_statistics?: boolean;
    /**
True, if the supergroup or channel revenue statistics are available.
*/
    can_get_revenue_statistics?: boolean;
    /**
True, if the supergroup or channel Telegram Star revenue statistics are available.
*/
    can_get_star_revenue_statistics?: boolean;
    /**
True, if the user can send a gift to the supergroup or channel using sendGift or transferGift.
*/
    can_send_gift?: boolean;
    /**
True, if aggressive anti-spam checks can be enabled or disabled in the supergroup.
*/
    can_toggle_aggressive_anti_spam?: boolean;
    /**
True, if new chat members will have access to old messages. In public, discussion, of forum groups and all channels, old
messages are always available, so this option affects only private non-forum supergroups without a linked chat. The
value of this field is only available to chat administrators.
*/
    is_all_history_available?: boolean;
    /**
True, if the chat can have sponsored messages. The value of this field is only available to the owner of the chat.
*/
    can_have_sponsored_messages?: boolean;
    /**
True, if aggressive anti-spam checks are enabled in the supergroup. The value of this field is only available to chat
administrators.
*/
    has_aggressive_anti_spam_enabled?: boolean;
    /**
True, if paid media can be sent and forwarded to the channel chat; for channels only.
*/
    has_paid_media_allowed?: boolean;
    /**
True, if the supergroup or channel has pinned stories.
*/
    has_pinned_stories?: boolean;
    /**
Number of saved to profile gifts for channels without can_post_messages administrator right, otherwise, the total number
of received gifts.
*/
    gift_count: number;
    /**
Number of times the current user boosted the supergroup or channel.
*/
    my_boost_count: number;
    /**
Number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; 0 if
unspecified.
*/
    unrestrict_boost_count: number;
    /**
Identifier of the supergroup sticker set that must be shown before user sticker sets; 0 if none.
*/
    sticker_set_id: string;
    /**
Identifier of the custom emoji sticker set that can be used in the supergroup without Telegram Premium subscription; 0
if none.
*/
    custom_emoji_sticker_set_id: string;
    /**
Location to which the supergroup is connected; may be null if none.
*/
    location: ChatLocation;
    /**
Primary invite link for the chat; may be null. For chat administrators with can_invite_users right only.
*/
    invite_link: ChatInviteLink;
    /**
List of commands of bots in the group.
*/
    bot_commands: BotCommands[];
    /**
Information about verification status of the supergroup or the channel provided by a bot; may be null if none or
unknown.
*/
    bot_verification: BotVerification;
    /**
Identifier of the basic group from which supergroup was upgraded; 0 if none.
*/
    upgraded_from_basic_group_id: number;
    /**
Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none.
*/
    upgraded_from_max_message_id: number;
}
/**
Describes the current secret chat state.
Subtype of {@link SecretChatState}.
*/
export interface SecretChatStatePending {
    '@type': 'secretChatStatePending';
}
/**
The secret chat is ready to use.
Subtype of {@link SecretChatState}.
*/
export interface SecretChatStateReady {
    '@type': 'secretChatStateReady';
}
/**
The secret chat is closed.
Subtype of {@link SecretChatState}.
*/
export interface SecretChatStateClosed {
    '@type': 'secretChatStateClosed';
}
/**
Represents a secret chat.
*/
export interface SecretChat {
    '@type': 'secretChat';
    /**
Secret chat identifier.
*/
    id: number;
    /**
Identifier of the chat partner.
*/
    user_id: number;
    /**
State of the secret chat.
*/
    state: SecretChatState;
    /**
True, if the chat was created by the current user; false otherwise.
*/
    is_outbound?: boolean;
    /**
Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36
little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3,
2D5775, and 2F99C9. The pixels must be used to make a 12x12 square image filled from left to right, top to bottom.
Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex
numbers.
*/
    key_hash: string;
    /**
Secret chat layer; determines features supported by the chat partner's application. Nested text entities and underline
and strikethrough entities are supported if the layer >= 101, files bigger than 2000MB are supported if the layer >=
143, spoiler and custom emoji text entities are supported if the layer >= 144.
*/
    layer: number;
}
/**
Contains information about the sender of a message.
Subtype of {@link MessageSender}.
*/
export interface MessageSenderUser {
    '@type': 'messageSenderUser';
    /**
Identifier of the user that sent the message.
*/
    user_id: number;
}
/**
The message was sent on behalf of a chat.
Subtype of {@link MessageSender}.
*/
export interface MessageSenderChat {
    '@type': 'messageSenderChat';
    /**
Identifier of the chat that sent the message.
*/
    chat_id: number;
}
/**
Represents a list of message senders.
*/
export interface MessageSenders {
    '@type': 'messageSenders';
    /**
Approximate total number of messages senders found.
*/
    total_count: number;
    /**
List of message senders.
*/
    senders: MessageSender[];
}
/**
Represents a message sender, which can be used to send messages in a chat.
*/
export interface ChatMessageSender {
    '@type': 'chatMessageSender';
    /**
The message sender.
*/
    sender: MessageSender;
    /**
True, if Telegram Premium is needed to use the message sender.
*/
    needs_premium?: boolean;
}
/**
Represents a list of message senders, which can be used to send messages in a chat.
*/
export interface ChatMessageSenders {
    '@type': 'chatMessageSenders';
    /**
List of available message senders.
*/
    senders: ChatMessageSender[];
}
/**
Describes read date of a recent outgoing message in a private chat.
Subtype of {@link MessageReadDate}.
*/
export interface MessageReadDateRead {
    '@type': 'messageReadDateRead';
    /**
Point in time (Unix timestamp) when the message was read by the other user.
*/
    read_date: number;
}
/**
The message is unread yet.
Subtype of {@link MessageReadDate}.
*/
export interface MessageReadDateUnread {
    '@type': 'messageReadDateUnread';
}
/**
The message is too old to get read date.
Subtype of {@link MessageReadDate}.
*/
export interface MessageReadDateTooOld {
    '@type': 'messageReadDateTooOld';
}
/**
The read date is unknown due to privacy settings of the other user.
Subtype of {@link MessageReadDate}.
*/
export interface MessageReadDateUserPrivacyRestricted {
    '@type': 'messageReadDateUserPrivacyRestricted';
}
/**
The read date is unknown due to privacy settings of the current user, but will be known if the user subscribes to
Telegram Premium.
Subtype of {@link MessageReadDate}.
*/
export interface MessageReadDateMyPrivacyRestricted {
    '@type': 'messageReadDateMyPrivacyRestricted';
}
/**
Represents a viewer of a message.
*/
export interface MessageViewer {
    '@type': 'messageViewer';
    /**
User identifier of the viewer.
*/
    user_id: number;
    /**
Approximate point in time (Unix timestamp) when the message was viewed.
*/
    view_date: number;
}
/**
Represents a list of message viewers.
*/
export interface MessageViewers {
    '@type': 'messageViewers';
    /**
List of message viewers.
*/
    viewers: MessageViewer[];
}
/**
Contains information about the origin of a message.
Subtype of {@link MessageOrigin}.
*/
export interface MessageOriginUser {
    '@type': 'messageOriginUser';
    /**
Identifier of the user that originally sent the message.
*/
    sender_user_id: number;
}
/**
The message was originally sent by a user, which is hidden by their privacy settings.
Subtype of {@link MessageOrigin}.
*/
export interface MessageOriginHiddenUser {
    '@type': 'messageOriginHiddenUser';
    /**
Name of the sender.
*/
    sender_name: string;
}
/**
The message was originally sent on behalf of a chat.
Subtype of {@link MessageOrigin}.
*/
export interface MessageOriginChat {
    '@type': 'messageOriginChat';
    /**
Identifier of the chat that originally sent the message.
*/
    sender_chat_id: number;
    /**
For messages originally sent by an anonymous chat administrator, original message author signature.
*/
    author_signature: string;
}
/**
The message was originally a post in a channel.
Subtype of {@link MessageOrigin}.
*/
export interface MessageOriginChannel {
    '@type': 'messageOriginChannel';
    /**
Identifier of the channel chat to which the message was originally sent.
*/
    chat_id: number;
    /**
Message identifier of the original message.
*/
    message_id: number;
    /**
Original post author signature.
*/
    author_signature: string;
}
/**
Contains information about the last message from which a new message was forwarded last time.
*/
export interface ForwardSource {
    '@type': 'forwardSource';
    /**
Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown.
*/
    chat_id: number;
    /**
Identifier of the message; may be 0 if unknown.
*/
    message_id: number;
    /**
Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages.
*/
    sender_id: MessageSender;
    /**
Name of the sender of the message if the sender is hidden by their privacy settings.
*/
    sender_name: string;
    /**
Point in time (Unix timestamp) when the message is sent; 0 if unknown.
*/
    date: number;
    /**
True, if the message that was forwarded is outgoing; always false if sender is unknown.
*/
    is_outgoing?: boolean;
}
/**
Describes type of message reaction.
Subtype of {@link ReactionType}.
*/
export interface ReactionTypeEmoji {
    '@type': 'reactionTypeEmoji';
    /**
Text representation of the reaction.
*/
    emoji: string;
}
/**
A reaction with a custom emoji.
Subtype of {@link ReactionType}.
*/
export interface ReactionTypeCustomEmoji {
    '@type': 'reactionTypeCustomEmoji';
    /**
Unique identifier of the custom emoji.
*/
    custom_emoji_id: string;
}
/**
The paid reaction in a channel chat.
Subtype of {@link ReactionType}.
*/
export interface ReactionTypePaid {
    '@type': 'reactionTypePaid';
}
/**
Describes type of paid message reaction.
Subtype of {@link PaidReactionType}.
*/
export interface PaidReactionTypeRegular {
    '@type': 'paidReactionTypeRegular';
}
/**
An anonymous paid reaction.
Subtype of {@link PaidReactionType}.
*/
export interface PaidReactionTypeAnonymous {
    '@type': 'paidReactionTypeAnonymous';
}
/**
A paid reaction on behalf of an owned chat.
Subtype of {@link PaidReactionType}.
*/
export interface PaidReactionTypeChat {
    '@type': 'paidReactionTypeChat';
    /**
Identifier of the chat.
*/
    chat_id: number;
}
/**
Contains information about a user that added paid reactions.
*/
export interface PaidReactor {
    '@type': 'paidReactor';
    /**
Identifier of the user or chat that added the reactions; may be null for anonymous reactors that aren't the current
user.
*/
    sender_id: MessageSender;
    /**
Number of Telegram Stars added.
*/
    star_count: number;
    /**
True, if the reactor is one of the most active reactors; may be false if the reactor is the current user.
*/
    is_top?: boolean;
    /**
True, if the paid reaction was added by the current user.
*/
    is_me?: boolean;
    /**
True, if the reactor is anonymous.
*/
    is_anonymous?: boolean;
}
/**
Contains information about a forwarded message.
*/
export interface MessageForwardInfo {
    '@type': 'messageForwardInfo';
    /**
Origin of the forwarded message.
*/
    origin: MessageOrigin;
    /**
Point in time (Unix timestamp) when the message was originally sent.
*/
    date: number;
    /**
For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, or to the channel's
discussion group, information about the source message from which the message was forwarded last time; may be null for
other forwards or if unknown.
*/
    source: ForwardSource;
    /**
The type of public service announcement for the forwarded message.
*/
    public_service_announcement_type: string;
}
/**
Contains information about a message created with importMessages.
*/
export interface MessageImportInfo {
    '@type': 'messageImportInfo';
    /**
Name of the original sender.
*/
    sender_name: string;
    /**
Point in time (Unix timestamp) when the message was originally sent.
*/
    date: number;
}
/**
Contains information about replies to a message.
*/
export interface MessageReplyInfo {
    '@type': 'messageReplyInfo';
    /**
Number of times the message was directly or indirectly replied.
*/
    reply_count: number;
    /**
Identifiers of at most 3 recent repliers to the message; available in channels with a discussion supergroup. The users
and chats are expected to be inaccessible: only their photo and name will be available.
*/
    recent_replier_ids: MessageSender[];
    /**
Identifier of the last read incoming reply to the message.
*/
    last_read_inbox_message_id: number;
    /**
Identifier of the last read outgoing reply to the message.
*/
    last_read_outbox_message_id: number;
    /**
Identifier of the last reply to the message.
*/
    last_message_id: number;
}
/**
Contains information about a reaction to a message.
*/
export interface MessageReaction {
    '@type': 'messageReaction';
    /**
Type of the reaction.
*/
    type: ReactionType;
    /**
Number of times the reaction was added.
*/
    total_count: number;
    /**
True, if the reaction is chosen by the current user.
*/
    is_chosen?: boolean;
    /**
Identifier of the message sender used by the current user to add the reaction; may be null if unknown or the reaction
isn't chosen.
*/
    used_sender_id: MessageSender;
    /**
Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup
chats.
*/
    recent_sender_ids: MessageSender[];
}
/**
Contains a list of reactions added to a message.
*/
export interface MessageReactions {
    '@type': 'messageReactions';
    /**
List of added reactions.
*/
    reactions: MessageReaction[];
    /**
True, if the reactions are tags and Telegram Premium users can filter messages by them.
*/
    are_tags?: boolean;
    /**
Information about top users that added the paid reaction.
*/
    paid_reactors: PaidReactor[];
    /**
True, if the list of added reactions is available using getMessageAddedReactions.
*/
    can_get_added_reactions?: boolean;
}
/**
Contains information about interactions with a message.
*/
export interface MessageInteractionInfo {
    '@type': 'messageInteractionInfo';
    /**
Number of times the message was viewed.
*/
    view_count: number;
    /**
Number of times the message was forwarded.
*/
    forward_count: number;
    /**
Information about direct or indirect replies to the message; may be null. Currently, available only in channels with a
discussion supergroup and discussion supergroups for messages, which are not replies itself.
*/
    reply_info: MessageReplyInfo;
    /**
The list of reactions or tags added to the message; may be null.
*/
    reactions: MessageReactions;
}
/**
Contains information about an unread reaction to a message.
*/
export interface UnreadReaction {
    '@type': 'unreadReaction';
    /**
Type of the reaction.
*/
    type: ReactionType;
    /**
Identifier of the sender, added the reaction.
*/
    sender_id: MessageSender;
    /**
True, if the reaction was added with a big animation.
*/
    is_big?: boolean;
}
/**
Describes type of emoji effect.
Subtype of {@link MessageEffectType}.
*/
export interface MessageEffectTypeEmojiReaction {
    '@type': 'messageEffectTypeEmojiReaction';
    /**
Select animation for the effect in TGS format.
*/
    select_animation: Sticker;
    /**
Effect animation for the effect in TGS format.
*/
    effect_animation: Sticker;
}
/**
An effect from a premium sticker.
Subtype of {@link MessageEffectType}.
*/
export interface MessageEffectTypePremiumSticker {
    '@type': 'messageEffectTypePremiumSticker';
    /**
The premium sticker. The effect can be found at sticker.full_type.premium_animation.
*/
    sticker: Sticker;
}
/**
Contains information about an effect added to a message.
*/
export interface MessageEffect {
    '@type': 'messageEffect';
    /**
Unique identifier of the effect.
*/
    id: string;
    /**
Static icon for the effect in WEBP format; may be null if none.
*/
    static_icon: Sticker;
    /**
Emoji corresponding to the effect that can be used if static icon isn't available.
*/
    emoji: string;
    /**
True, if Telegram Premium subscription is required to use the effect.
*/
    is_premium?: boolean;
    /**
Type of the effect.
*/
    type: MessageEffectType;
}
/**
Contains information about the sending state of the message.
Subtype of {@link MessageSendingState}.
*/
export interface MessageSendingStatePending {
    '@type': 'messageSendingStatePending';
    /**
Non-persistent message sending identifier, specified by the application.
*/
    sending_id: number;
}
/**
The message failed to be sent.
Subtype of {@link MessageSendingState}.
*/
export interface MessageSendingStateFailed {
    '@type': 'messageSendingStateFailed';
    /**
The cause of the message sending failure.
*/
    error: Error;
    /**
True, if the message can be re-sent using resendMessages or readdQuickReplyShortcutMessages.
*/
    can_retry?: boolean;
    /**
True, if the message can be re-sent only on behalf of a different sender.
*/
    need_another_sender?: boolean;
    /**
True, if the message can be re-sent only if another quote is chosen in the message that is replied by the given message.
*/
    need_another_reply_quote?: boolean;
    /**
True, if the message can be re-sent only if the message to be replied is removed. This will be done automatically by
resendMessages.
*/
    need_drop_reply?: boolean;
    /**
The number of Telegram Stars that must be paid to send the message; 0 if the current amount is correct.
*/
    required_paid_message_star_count: number;
    /**
Time left before the message can be re-sent, in seconds. No update is sent when this field changes.
*/
    retry_after: number;
}
/**
Describes manually or automatically chosen quote from another message.
*/
export interface TextQuote {
    '@type': 'textQuote';
    /**
Text of the quote. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities can be present in the
text.
*/
    text: FormattedText;
    /**
Approximate quote position in the original message in UTF-16 code units as specified by the message sender.
*/
    position: number;
    /**
True, if the quote was manually chosen by the message sender.
*/
    is_manual?: boolean;
}
/**
Describes manually chosen quote from another message.
*/
export interface InputTextQuote {
    '@type': 'inputTextQuote';
    /**
Text of the quote; 0-getOption("message_reply_quote_length_max") characters. Only Bold, Italic, Underline,
Strikethrough, Spoiler, and CustomEmoji entities are allowed to be kept and must be kept in the quote.
*/
    text: FormattedText;
    /**
Quote position in the original message in UTF-16 code units.
*/
    position: number;
}
/**
Contains information about the message or the story a message is replying to.
Subtype of {@link MessageReplyTo}.
*/
export interface MessageReplyToMessage {
    '@type': 'messageReplyToMessage';
    /**
The identifier of the chat to which the message belongs; may be 0 if the replied message is in unknown chat.
*/
    chat_id: number;
    /**
The identifier of the message; may be 0 if the replied message is in unknown chat.
*/
    message_id: number;
    /**
Chosen quote from the replied message; may be null if none.
*/
    quote: TextQuote;
    /**
Information about origin of the message if the message was from another chat or topic; may be null for messages from the
same chat.
*/
    origin: MessageOrigin;
    /**
Point in time (Unix timestamp) when the message was sent if the message was from another chat or topic; 0 for messages
from the same chat.
*/
    origin_send_date: number;
    /**
Media content of the message if the message was from another chat or topic; may be null for messages from the same chat
and messages without media. Can be only one of the following types: messageAnimation, messageAudio, messageContact,
messageDice, messageDocument, messageGame, messageGiveaway, messageGiveawayWinners, messageInvoice, messageLocation,
messagePaidMedia, messagePhoto, messagePoll, messageSticker, messageStory, messageText (for link preview), messageVenue,
messageVideo, messageVideoNote, or messageVoiceNote.
*/
    content: MessageContent;
}
/**
Describes a story replied by a given message.
Subtype of {@link MessageReplyTo}.
*/
export interface MessageReplyToStory {
    '@type': 'messageReplyToStory';
    /**
The identifier of the sender of the story.
*/
    story_sender_chat_id: number;
    /**
The identifier of the story.
*/
    story_id: number;
}
/**
Contains information about the message or the story to be replied.
Subtype of {@link InputMessageReplyTo}.
*/
export interface InputMessageReplyToMessage {
    '@type': 'inputMessageReplyToMessage';
    /**
The identifier of the message to be replied in the same chat and forum topic. A message can be replied in the same chat
and forum topic only if messageProperties.can_be_replied.
*/
    message_id: number;
    /**
Quote from the message to be replied; pass null if none. Must always be null for replies in secret chats.
*/
    quote: InputTextQuote;
}
/**
Describes a message to be replied that is from a different chat or a forum topic; not supported in secret chats.
Subtype of {@link InputMessageReplyTo}.
*/
export interface InputMessageReplyToExternalMessage {
    '@type': 'inputMessageReplyToExternalMessage';
    /**
The identifier of the chat to which the message to be replied belongs.
*/
    chat_id: number;
    /**
The identifier of the message to be replied in the specified chat. A message can be replied in another chat or forum
topic only if messageProperties.can_be_replied_in_another_chat.
*/
    message_id: number;
    /**
Quote from the message to be replied; pass null if none.
*/
    quote: InputTextQuote;
}
/**
Describes a story to be replied.
Subtype of {@link InputMessageReplyTo}.
*/
export interface InputMessageReplyToStory {
    '@type': 'inputMessageReplyToStory';
    /**
The identifier of the sender of the story. Currently, stories can be replied only in the sender's chat and channel
stories can't be replied.
*/
    story_sender_chat_id: number;
    /**
The identifier of the story.
*/
    story_id: number;
}
/**
Describes a fact-check added to the message by an independent checker.
*/
export interface FactCheck {
    '@type': 'factCheck';
    /**
Text of the fact-check.
*/
    text: FormattedText;
    /**
A two-letter ISO 3166-1 alpha-2 country code of the country for which the fact-check is shown.
*/
    country_code: string;
}
/**
Describes a message.
*/
export interface Message {
    '@type': 'message';
    /**
Message identifier; unique for the chat to which the message belongs.
*/
    id: number;
    /**
Identifier of the sender of the message.
*/
    sender_id: MessageSender;
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The sending state of the message; may be null if the message isn't being sent and didn't fail to be sent.
*/
    sending_state: MessageSendingState;
    /**
The scheduling state of the message; may be null if the message isn't scheduled.
*/
    scheduling_state: MessageSchedulingState;
    /**
True, if the message is outgoing.
*/
    is_outgoing?: boolean;
    /**
True, if the message is pinned.
*/
    is_pinned?: boolean;
    /**
True, if the message was sent because of a scheduled action by the message sender, for example, as away, or greeting
service message.
*/
    is_from_offline?: boolean;
    /**
True, if content of the message can be saved locally or copied using inputMessageForwarded or forwardMessages with copy
options.
*/
    can_be_saved?: boolean;
    /**
True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message.
*/
    has_timestamped_media?: boolean;
    /**
True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel
posts.
*/
    is_channel_post?: boolean;
    /**
True, if the message is a forum topic message.
*/
    is_topic_message?: boolean;
    /**
True, if the message contains an unread mention for the current user.
*/
    contains_unread_mention?: boolean;
    /**
Point in time (Unix timestamp) when the message was sent; 0 for scheduled messages.
*/
    date: number;
    /**
Point in time (Unix timestamp) when the message was last edited; 0 for scheduled messages.
*/
    edit_date: number;
    /**
Information about the initial message sender; may be null if none or unknown.
*/
    forward_info: MessageForwardInfo;
    /**
Information about the initial message for messages created with importMessages; may be null if the message isn't
imported.
*/
    import_info: MessageImportInfo;
    /**
Information about interactions with the message; may be null if none.
*/
    interaction_info: MessageInteractionInfo;
    /**
Information about unread reactions added to the message.
*/
    unread_reactions: UnreadReaction[];
    /**
Information about fact-check added to the message; may be null if none.
*/
    fact_check: FactCheck;
    /**
Information about the message or the story this message is replying to; may be null if none.
*/
    reply_to: MessageReplyTo;
    /**
If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message
belongs.
*/
    message_thread_id: number;
    /**
Identifier of the Saved Messages topic for the message; 0 for messages not from Saved Messages.
*/
    saved_messages_topic_id: number;
    /**
The message's self-destruct type; may be null if none.
*/
    self_destruct_type: MessageSelfDestructType;
    /**
Time left before the message self-destruct timer expires, in seconds; 0 if self-destruction isn't scheduled yet.
*/
    self_destruct_in: number;
    /**
Time left before the message will be automatically deleted by message_auto_delete_time setting of the chat, in seconds;
0 if never.
*/
    auto_delete_in: number;
    /**
If non-zero, the user identifier of the inline bot through which this message was sent.
*/
    via_bot_user_id: number;
    /**
If non-zero, the user identifier of the business bot that sent this message.
*/
    sender_business_bot_user_id: number;
    /**
Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown.
For messages sent by the current user, supergroupFullInfo.my_boost_count must be used instead.
*/
    sender_boost_count: number;
    /**
The number of Telegram Stars the sender paid to send the message.
*/
    paid_message_star_count: number;
    /**
For channel posts and anonymous group messages, optional author signature.
*/
    author_signature: string;
    /**
Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be
grouped together in albums.
*/
    media_album_id: string;
    /**
Unique identifier of the effect added to the message; 0 if none.
*/
    effect_id: string;
    /**
True, if media content of the message must be hidden with 18+ spoiler.
*/
    has_sensitive_content?: boolean;
    /**
If non-empty, contains a human-readable description of the reason why access to this message must be restricted.
*/
    restriction_reason: string;
    /**
Content of the message.
*/
    content: MessageContent;
    /**
Reply markup for the message; may be null if none.
*/
    reply_markup: ReplyMarkup;
}
/**
Contains a list of messages.
*/
export interface Messages {
    '@type': 'messages';
    /**
Approximate total number of messages found.
*/
    total_count: number;
    /**
List of messages; messages may be null.
*/
    messages: Message[];
}
/**
Contains a list of messages found by a search.
*/
export interface FoundMessages {
    '@type': 'foundMessages';
    /**
Approximate total number of messages found; -1 if unknown.
*/
    total_count: number;
    /**
List of messages.
*/
    messages: Message[];
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Contains a list of messages found by a search in a given chat.
*/
export interface FoundChatMessages {
    '@type': 'foundChatMessages';
    /**
Approximate total number of messages found; -1 if unknown.
*/
    total_count: number;
    /**
List of messages.
*/
    messages: Message[];
    /**
The offset for the next request. If 0, there are no more results.
*/
    next_from_message_id: number;
}
/**
Contains information about a message in a specific position.
*/
export interface MessagePosition {
    '@type': 'messagePosition';
    /**
0-based message position in the full list of suitable messages.
*/
    position: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
Point in time (Unix timestamp) when the message was sent.
*/
    date: number;
}
/**
Contains a list of message positions.
*/
export interface MessagePositions {
    '@type': 'messagePositions';
    /**
Total number of messages found.
*/
    total_count: number;
    /**
List of message positions.
*/
    positions: MessagePosition[];
}
/**
Contains information about found messages sent on a specific day.
*/
export interface MessageCalendarDay {
    '@type': 'messageCalendarDay';
    /**
Total number of found messages sent on the day.
*/
    total_count: number;
    /**
First message sent on the day.
*/
    message: Message;
}
/**
Contains information about found messages, split by days according to the option "utc_time_offset".
*/
export interface MessageCalendar {
    '@type': 'messageCalendar';
    /**
Total number of found messages.
*/
    total_count: number;
    /**
Information about messages sent.
*/
    days: MessageCalendarDay[];
}
/**
Describes a message from a business account as received by a bot.
*/
export interface BusinessMessage {
    '@type': 'businessMessage';
    /**
The message.
*/
    message: Message;
    /**
Message that is replied by the message in the same chat; may be null if none.
*/
    reply_to_message: Message;
}
/**
Contains a list of messages from a business account as received by a bot.
*/
export interface BusinessMessages {
    '@type': 'businessMessages';
    /**
List of business messages.
*/
    messages: BusinessMessage[];
}
/**
Describes source of a message.
Subtype of {@link MessageSource}.
*/
export interface MessageSourceChatHistory {
    '@type': 'messageSourceChatHistory';
}
/**
The message is from a message thread history.
Subtype of {@link MessageSource}.
*/
export interface MessageSourceMessageThreadHistory {
    '@type': 'messageSourceMessageThreadHistory';
}
/**
The message is from a forum topic history.
Subtype of {@link MessageSource}.
*/
export interface MessageSourceForumTopicHistory {
    '@type': 'messageSourceForumTopicHistory';
}
/**
The message is from chat, message thread or forum topic history preview.
Subtype of {@link MessageSource}.
*/
export interface MessageSourceHistoryPreview {
    '@type': 'messageSourceHistoryPreview';
}
/**
The message is from a chat list or a forum topic list.
Subtype of {@link MessageSource}.
*/
export interface MessageSourceChatList {
    '@type': 'messageSourceChatList';
}
/**
The message is from search results, including file downloads, local file list, outgoing document messages, calendar.
Subtype of {@link MessageSource}.
*/
export interface MessageSourceSearch {
    '@type': 'messageSourceSearch';
}
/**
The message is from a chat event log.
Subtype of {@link MessageSource}.
*/
export interface MessageSourceChatEventLog {
    '@type': 'messageSourceChatEventLog';
}
/**
The message is from a notification.
Subtype of {@link MessageSource}.
*/
export interface MessageSourceNotification {
    '@type': 'messageSourceNotification';
}
/**
The message was screenshotted; the source must be used only if the message content was visible during the screenshot.
Subtype of {@link MessageSource}.
*/
export interface MessageSourceScreenshot {
    '@type': 'messageSourceScreenshot';
}
/**
The message is from some other source.
Subtype of {@link MessageSource}.
*/
export interface MessageSourceOther {
    '@type': 'messageSourceOther';
}
/**
Information about the sponsor of a message.
*/
export interface MessageSponsor {
    '@type': 'messageSponsor';
    /**
URL of the sponsor to be opened when the message is clicked.
*/
    url: string;
    /**
Photo of the sponsor; may be null if must not be shown.
*/
    photo: Photo;
    /**
Additional optional information about the sponsor to be shown along with the message.
*/
    info: string;
}
/**
Describes a sponsored message.
*/
export interface SponsoredMessage {
    '@type': 'sponsoredMessage';
    /**
Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored
messages.
*/
    message_id: number;
    /**
True, if the message needs to be labeled as "recommended" instead of "sponsored".
*/
    is_recommended?: boolean;
    /**
True, if the message can be reported to Telegram moderators through reportChatSponsoredMessage.
*/
    can_be_reported?: boolean;
    /**
Content of the message. Currently, can be only of the types messageText, messageAnimation, messagePhoto, or
messageVideo. Video messages can be viewed fullscreen.
*/
    content: MessageContent;
    /**
Information about the sponsor of the message.
*/
    sponsor: MessageSponsor;
    /**
Title of the sponsored message.
*/
    title: string;
    /**
Text for the message action button.
*/
    button_text: string;
    /**
Identifier of the accent color for title, button text and message background.
*/
    accent_color_id: number;
    /**
Identifier of a custom emoji to be shown on the message background; 0 if none.
*/
    background_custom_emoji_id: string;
    /**
If non-empty, additional information about the sponsored message to be shown along with the message.
*/
    additional_info: string;
}
/**
Contains a list of sponsored messages.
*/
export interface SponsoredMessages {
    '@type': 'sponsoredMessages';
    /**
List of sponsored messages.
*/
    messages: SponsoredMessage[];
    /**
The minimum number of messages between shown sponsored messages, or 0 if only one sponsored message must be shown after
all ordinary messages.
*/
    messages_between: number;
}
/**
Describes an option to report an entity to Telegram.
*/
export interface ReportOption {
    '@type': 'reportOption';
    /**
Unique identifier of the option.
*/
    id: string;
    /**
Text of the option.
*/
    text: string;
}
/**
Describes result of sponsored message report.
Subtype of {@link ReportChatSponsoredMessageResult}.
*/
export interface ReportChatSponsoredMessageResultOk {
    '@type': 'reportChatSponsoredMessageResultOk';
}
/**
The sponsored message is too old or not found.
Subtype of {@link ReportChatSponsoredMessageResult}.
*/
export interface ReportChatSponsoredMessageResultFailed {
    '@type': 'reportChatSponsoredMessageResultFailed';
}
/**
The user must choose an option to report the message and repeat request with the chosen option.
Subtype of {@link ReportChatSponsoredMessageResult}.
*/
export interface ReportChatSponsoredMessageResultOptionRequired {
    '@type': 'reportChatSponsoredMessageResultOptionRequired';
    /**
Title for the option choice.
*/
    title: string;
    /**
List of available options.
*/
    options: ReportOption[];
}
/**
Sponsored messages were hidden for the user in all chats.
Subtype of {@link ReportChatSponsoredMessageResult}.
*/
export interface ReportChatSponsoredMessageResultAdsHidden {
    '@type': 'reportChatSponsoredMessageResultAdsHidden';
}
/**
The user asked to hide sponsored messages, but Telegram Premium is required for this.
Subtype of {@link ReportChatSponsoredMessageResult}.
*/
export interface ReportChatSponsoredMessageResultPremiumRequired {
    '@type': 'reportChatSponsoredMessageResultPremiumRequired';
}
/**
Describes a file added to file download list.
*/
export interface FileDownload {
    '@type': 'fileDownload';
    /**
File identifier.
*/
    file_id: number;
    /**
The message with the file.
*/
    message: Message;
    /**
Point in time (Unix timestamp) when the file was added to the download list.
*/
    add_date: number;
    /**
Point in time (Unix timestamp) when the file downloading was completed; 0 if the file downloading isn't completed.
*/
    complete_date: number;
    /**
True, if downloading of the file is paused.
*/
    is_paused?: boolean;
}
/**
Contains number of being downloaded and recently downloaded files found.
*/
export interface DownloadedFileCounts {
    '@type': 'downloadedFileCounts';
    /**
Number of active file downloads found, including paused.
*/
    active_count: number;
    /**
Number of paused file downloads found.
*/
    paused_count: number;
    /**
Number of completed file downloads found.
*/
    completed_count: number;
}
/**
Contains a list of downloaded files, found by a search.
*/
export interface FoundFileDownloads {
    '@type': 'foundFileDownloads';
    /**
Total number of suitable files, ignoring offset.
*/
    total_counts: DownloadedFileCounts;
    /**
The list of files.
*/
    files: FileDownload[];
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Describes the types of chats to which notification settings are relevant.
Subtype of {@link NotificationSettingsScope}.
*/
export interface NotificationSettingsScopePrivateChats {
    '@type': 'notificationSettingsScopePrivateChats';
}
/**
Notification settings applied to all basic group and supergroup chats when the corresponding chat setting has a default
value.
Subtype of {@link NotificationSettingsScope}.
*/
export interface NotificationSettingsScopeGroupChats {
    '@type': 'notificationSettingsScopeGroupChats';
}
/**
Notification settings applied to all channel chats when the corresponding chat setting has a default value.
Subtype of {@link NotificationSettingsScope}.
*/
export interface NotificationSettingsScopeChannelChats {
    '@type': 'notificationSettingsScopeChannelChats';
}
/**
Contains information about notification settings for a chat or a forum topic.
*/
export interface ChatNotificationSettings {
    '@type': 'chatNotificationSettings';
    /**
If true, the value for the relevant type of chat or the forum chat is used instead of mute_for.
*/
    use_default_mute_for?: boolean;
    /**
Time left before notifications will be unmuted, in seconds.
*/
    mute_for: number;
    /**
If true, the value for the relevant type of chat or the forum chat is used instead of sound_id.
*/
    use_default_sound?: boolean;
    /**
Identifier of the notification sound to be played for messages; 0 if sound is disabled.
*/
    sound_id: string;
    /**
If true, the value for the relevant type of chat or the forum chat is used instead of show_preview.
*/
    use_default_show_preview?: boolean;
    /**
True, if message content must be displayed in notifications.
*/
    show_preview?: boolean;
    /**
If true, the value for the relevant type of chat is used instead of mute_stories.
*/
    use_default_mute_stories?: boolean;
    /**
True, if story notifications are disabled for the chat.
*/
    mute_stories?: boolean;
    /**
If true, the value for the relevant type of chat is used instead of story_sound_id.
*/
    use_default_story_sound?: boolean;
    /**
Identifier of the notification sound to be played for stories; 0 if sound is disabled.
*/
    story_sound_id: string;
    /**
If true, the value for the relevant type of chat is used instead of show_story_sender.
*/
    use_default_show_story_sender?: boolean;
    /**
True, if the sender of stories must be displayed in notifications.
*/
    show_story_sender?: boolean;
    /**
If true, the value for the relevant type of chat or the forum chat is used instead of
disable_pinned_message_notifications.
*/
    use_default_disable_pinned_message_notifications?: boolean;
    /**
If true, notifications for incoming pinned messages will be created as for an ordinary unread message.
*/
    disable_pinned_message_notifications?: boolean;
    /**
If true, the value for the relevant type of chat or the forum chat is used instead of disable_mention_notifications.
*/
    use_default_disable_mention_notifications?: boolean;
    /**
If true, notifications for messages with mentions will be created as for an ordinary unread message.
*/
    disable_mention_notifications?: boolean;
}
/**
Contains information about notification settings for several chats.
*/
export interface ScopeNotificationSettings {
    '@type': 'scopeNotificationSettings';
    /**
Time left before notifications will be unmuted, in seconds.
*/
    mute_for: number;
    /**
Identifier of the notification sound to be played; 0 if sound is disabled.
*/
    sound_id: string;
    /**
True, if message content must be displayed in notifications.
*/
    show_preview?: boolean;
    /**
If true, story notifications are received only for the first 5 chats from topChatCategoryUsers regardless of the value
of mute_stories.
*/
    use_default_mute_stories?: boolean;
    /**
True, if story notifications are disabled.
*/
    mute_stories?: boolean;
    /**
Identifier of the notification sound to be played for stories; 0 if sound is disabled.
*/
    story_sound_id: string;
    /**
True, if the sender of stories must be displayed in notifications.
*/
    show_story_sender?: boolean;
    /**
True, if notifications for incoming pinned messages will be created as for an ordinary unread message.
*/
    disable_pinned_message_notifications?: boolean;
    /**
True, if notifications for messages with mentions will be created as for an ordinary unread message.
*/
    disable_mention_notifications?: boolean;
}
/**
Describes sources of reactions for which notifications will be shown.
Subtype of {@link ReactionNotificationSource}.
*/
export interface ReactionNotificationSourceNone {
    '@type': 'reactionNotificationSourceNone';
}
/**
Notifications for reactions are shown only for reactions from contacts.
Subtype of {@link ReactionNotificationSource}.
*/
export interface ReactionNotificationSourceContacts {
    '@type': 'reactionNotificationSourceContacts';
}
/**
Notifications for reactions are shown for all reactions.
Subtype of {@link ReactionNotificationSource}.
*/
export interface ReactionNotificationSourceAll {
    '@type': 'reactionNotificationSourceAll';
}
/**
Contains information about notification settings for reactions.
*/
export interface ReactionNotificationSettings {
    '@type': 'reactionNotificationSettings';
    /**
Source of message reactions for which notifications are shown.
*/
    message_reaction_source: ReactionNotificationSource;
    /**
Source of story reactions for which notifications are shown.
*/
    story_reaction_source: ReactionNotificationSource;
    /**
Identifier of the notification sound to be played; 0 if sound is disabled.
*/
    sound_id: string;
    /**
True, if reaction sender and emoji must be displayed in notifications.
*/
    show_preview?: boolean;
}
/**
Contains information about a message draft.
*/
export interface DraftMessage {
    '@type': 'draftMessage';
    /**
Information about the message to be replied; must be of the type inputMessageReplyToMessage; may be null if none.
*/
    reply_to: InputMessageReplyTo;
    /**
Point in time (Unix timestamp) when the draft was created.
*/
    date: number;
    /**
Content of the message draft; must be of the type inputMessageText, inputMessageVideoNote, or inputMessageVoiceNote.
*/
    input_message_text: InputMessageContent;
    /**
Identifier of the effect to apply to the message when it is sent; 0 if none.
*/
    effect_id: string;
}
/**
Describes the type of chat.
Subtype of {@link ChatType}.
*/
export interface ChatTypePrivate {
    '@type': 'chatTypePrivate';
    /**
User identifier.
*/
    user_id: number;
}
/**
A basic group (a chat with 0-200 other users).
Subtype of {@link ChatType}.
*/
export interface ChatTypeBasicGroup {
    '@type': 'chatTypeBasicGroup';
    /**
Basic group identifier.
*/
    basic_group_id: number;
}
/**
A supergroup or channel (with unlimited members).
Subtype of {@link ChatType}.
*/
export interface ChatTypeSupergroup {
    '@type': 'chatTypeSupergroup';
    /**
Supergroup or channel identifier.
*/
    supergroup_id: number;
    /**
True, if the supergroup is a channel.
*/
    is_channel?: boolean;
}
/**
A secret chat with a user.
Subtype of {@link ChatType}.
*/
export interface ChatTypeSecret {
    '@type': 'chatTypeSecret';
    /**
Secret chat identifier.
*/
    secret_chat_id: number;
    /**
User identifier of the other user in the secret chat.
*/
    user_id: number;
}
/**
Represents an icon for a chat folder.
*/
export interface ChatFolderIcon {
    '@type': 'chatFolderIcon';
    /**
The chosen icon name for short folder representation; one of "All", "Unread", "Unmuted", "Bots", "Channels", "Groups",
"Private", "Custom", "Setup", "Cat", "Crown", "Favorite", "Flower", "Game", "Home", "Love", "Mask", "Party", "Sport",
"Study", "Trade", "Travel", "Work", "Airplane", "Book", "Light", "Like", "Money", "Note", "Palette".
*/
    name: string;
}
/**
Describes name of a chat folder.
*/
export interface ChatFolderName {
    '@type': 'chatFolderName';
    /**
The text of the chat folder name; 1-12 characters without line feeds. May contain only CustomEmoji entities.
*/
    text: FormattedText;
    /**
True, if custom emoji in the name must be animated.
*/
    animate_custom_emoji?: boolean;
}
/**
Represents a folder for user chats.
*/
export interface ChatFolder {
    '@type': 'chatFolder';
    /**
The name of the folder.
*/
    name: ChatFolderName;
    /**
The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for
the folder.
*/
    icon: ChatFolderIcon;
    /**
The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled. Can't be
changed if folder tags are disabled or the current user doesn't have Telegram Premium subscription.
*/
    color_id: number;
    /**
True, if at least one link has been created for the folder.
*/
    is_shareable?: boolean;
    /**
The chat identifiers of pinned chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max")
pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with
Telegram Premium.
*/
    pinned_chat_ids: number[];
    /**
The chat identifiers of always included chats in the folder. There can be up to
getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret
chats, but the limit can be increased with Telegram Premium.
*/
    included_chat_ids: number[];
    /**
The chat identifiers of always excluded chats in the folder. There can be up to
getOption("chat_folder_chosen_chat_count_max") always excluded non-secret chats and the same number of secret chats, but
the limit can be increased with Telegram Premium.
*/
    excluded_chat_ids: number[];
    /**
True, if muted chats need to be excluded.
*/
    exclude_muted?: boolean;
    /**
True, if read chats need to be excluded.
*/
    exclude_read?: boolean;
    /**
True, if archived chats need to be excluded.
*/
    exclude_archived?: boolean;
    /**
True, if contacts need to be included.
*/
    include_contacts?: boolean;
    /**
True, if non-contact users need to be included.
*/
    include_non_contacts?: boolean;
    /**
True, if bots need to be included.
*/
    include_bots?: boolean;
    /**
True, if basic groups and supergroups need to be included.
*/
    include_groups?: boolean;
    /**
True, if channels need to be included.
*/
    include_channels?: boolean;
}
/**
Contains basic information about a chat folder.
*/
export interface ChatFolderInfo {
    '@type': 'chatFolderInfo';
    /**
Unique chat folder identifier.
*/
    id: number;
    /**
The name of the folder.
*/
    name: ChatFolderName;
    /**
The chosen or default icon for the chat folder.
*/
    icon: ChatFolderIcon;
    /**
The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled.
*/
    color_id: number;
    /**
True, if at least one link has been created for the folder.
*/
    is_shareable?: boolean;
    /**
True, if the chat folder has invite links created by the current user.
*/
    has_my_invite_links?: boolean;
}
/**
Contains a chat folder invite link.
*/
export interface ChatFolderInviteLink {
    '@type': 'chatFolderInviteLink';
    /**
The chat folder invite link.
*/
    invite_link: string;
    /**
Name of the link.
*/
    name: string;
    /**
Identifiers of chats, included in the link.
*/
    chat_ids: number[];
}
/**
Represents a list of chat folder invite links.
*/
export interface ChatFolderInviteLinks {
    '@type': 'chatFolderInviteLinks';
    /**
List of the invite links.
*/
    invite_links: ChatFolderInviteLink[];
}
/**
Contains information about an invite link to a chat folder.
*/
export interface ChatFolderInviteLinkInfo {
    '@type': 'chatFolderInviteLinkInfo';
    /**
Basic information about the chat folder; chat folder identifier will be 0 if the user didn't have the chat folder yet.
*/
    chat_folder_info: ChatFolderInfo;
    /**
Identifiers of the chats from the link, which aren't added to the folder yet.
*/
    missing_chat_ids: number[];
    /**
Identifiers of the chats from the link, which are added to the folder already.
*/
    added_chat_ids: number[];
}
/**
Describes a recommended chat folder.
*/
export interface RecommendedChatFolder {
    '@type': 'recommendedChatFolder';
    /**
The chat folder.
*/
    folder: ChatFolder;
    /**
Describes a recommended chat folder.
*/
    description: string;
}
/**
Contains a list of recommended chat folders.
*/
export interface RecommendedChatFolders {
    '@type': 'recommendedChatFolders';
    /**
List of recommended chat folders.
*/
    chat_folders: RecommendedChatFolder[];
}
/**
Contains settings for automatic moving of chats to and from the Archive chat lists.
*/
export interface ArchiveChatListSettings {
    '@type': 'archiveChatListSettings';
    /**
True, if new chats from non-contacts will be automatically archived and muted. Can be set to true only if the option
"can_archive_and_mute_new_chats_from_unknown_users" is true.
*/
    archive_and_mute_new_chats_from_unknown_users?: boolean;
    /**
True, if unmuted chats will be kept in the Archive chat list when they get a new message.
*/
    keep_unmuted_chats_archived?: boolean;
    /**
True, if unmuted chats, that are always included or pinned in a folder, will be kept in the Archive chat list when they
get a new message. Ignored if keep_unmuted_chats_archived == true.
*/
    keep_chats_from_folders_archived?: boolean;
}
/**
Describes a list of chats.
Subtype of {@link ChatList}.
*/
export interface ChatListMain {
    '@type': 'chatListMain';
}
/**
A list of chats usually located at the top of the main chat list. Unmuted chats are automatically moved from the Archive
to the Main chat list when a new message arrives.
Subtype of {@link ChatList}.
*/
export interface ChatListArchive {
    '@type': 'chatListArchive';
}
/**
A list of chats added to a chat folder.
Subtype of {@link ChatList}.
*/
export interface ChatListFolder {
    '@type': 'chatListFolder';
    /**
Chat folder identifier.
*/
    chat_folder_id: number;
}
/**
Contains a list of chat lists.
*/
export interface ChatLists {
    '@type': 'chatLists';
    /**
List of chat lists.
*/
    chat_lists: ChatList[];
}
/**
Describes a reason why an external chat is shown in a chat list.
Subtype of {@link ChatSource}.
*/
export interface ChatSourceMtprotoProxy {
    '@type': 'chatSourceMtprotoProxy';
}
/**
The chat contains a public service announcement.
Subtype of {@link ChatSource}.
*/
export interface ChatSourcePublicServiceAnnouncement {
    '@type': 'chatSourcePublicServiceAnnouncement';
    /**
The type of the announcement.
*/
    type: string;
    /**
The text of the announcement.
*/
    text: string;
}
/**
Describes a position of a chat in a chat list.
*/
export interface ChatPosition {
    '@type': 'chatPosition';
    /**
The chat list.
*/
    list: ChatList;
    /**
A parameter used to determine order of the chat in the chat list. Chats must be sorted by the pair (order, chat.id) in
descending order.
*/
    order: string;
    /**
True, if the chat is pinned in the chat list.
*/
    is_pinned?: boolean;
    /**
Source of the chat in the chat list; may be null.
*/
    source: ChatSource;
}
/**
Describes reactions available in the chat.
Subtype of {@link ChatAvailableReactions}.
*/
export interface ChatAvailableReactionsAll {
    '@type': 'chatAvailableReactionsAll';
    /**
The maximum allowed number of reactions per message; 1-11.
*/
    max_reaction_count: number;
}
/**
Only specific reactions are available in the chat.
Subtype of {@link ChatAvailableReactions}.
*/
export interface ChatAvailableReactionsSome {
    '@type': 'chatAvailableReactionsSome';
    /**
The list of reactions.
*/
    reactions: ReactionType[];
    /**
The maximum allowed number of reactions per message; 1-11.
*/
    max_reaction_count: number;
}
/**
Represents a tag used in Saved Messages or a Saved Messages topic.
*/
export interface SavedMessagesTag {
    '@type': 'savedMessagesTag';
    /**
The tag.
*/
    tag: ReactionType;
    /**
Label of the tag; 0-12 characters. Always empty if the tag is returned for a Saved Messages topic.
*/
    label: string;
    /**
Number of times the tag was used; may be 0 if the tag has non-empty label.
*/
    count: number;
}
/**
Contains a list of tags used in Saved Messages.
*/
export interface SavedMessagesTags {
    '@type': 'savedMessagesTags';
    /**
List of tags.
*/
    tags: SavedMessagesTag[];
}
/**
Contains information about a business bot that manages the chat.
*/
export interface BusinessBotManageBar {
    '@type': 'businessBotManageBar';
    /**
User identifier of the bot.
*/
    bot_user_id: number;
    /**
URL to be opened to manage the bot.
*/
    manage_url: string;
    /**
True, if the bot is paused. Use toggleBusinessConnectedBotChatIsPaused to change the value of the field.
*/
    is_bot_paused?: boolean;
    /**
True, if the bot can reply.
*/
    can_bot_reply?: boolean;
}
/**
Describes a video chat.
*/
export interface VideoChat {
    '@type': 'videoChat';
    /**
Group call identifier of an active video chat; 0 if none. Full information about the video chat can be received through
the method getGroupCall.
*/
    group_call_id: number;
    /**
True, if the video chat has participants.
*/
    has_participants?: boolean;
    /**
Default group call participant identifier to join the video chat; may be null.
*/
    default_participant_id: MessageSender;
}
/**
A chat. (Can be a private chat, basic group, supergroup, or secret chat).
*/
export interface Chat {
    '@type': 'chat';
    /**
Chat unique identifier.
*/
    id: number;
    /**
Type of the chat.
*/
    type: ChatType;
    /**
Chat title.
*/
    title: string;
    /**
Chat photo; may be null.
*/
    photo: ChatPhotoInfo;
    /**
Identifier of the accent color for message sender name, and backgrounds of chat photo, reply header, and link preview.
*/
    accent_color_id: number;
    /**
Identifier of a custom emoji to be shown on the reply header and link preview background for messages sent by the chat;
0 if none.
*/
    background_custom_emoji_id: string;
    /**
Identifier of the profile accent color for the chat's profile; -1 if none.
*/
    profile_accent_color_id: number;
    /**
Identifier of a custom emoji to be shown on the background of the chat's profile; 0 if none.
*/
    profile_background_custom_emoji_id: string;
    /**
Actions that non-administrator chat members are allowed to take in the chat.
*/
    permissions: ChatPermissions;
    /**
Last message in the chat; may be null if none or unknown.
*/
    last_message: Message;
    /**
Positions of the chat in chat lists.
*/
    positions: ChatPosition[];
    /**
Chat lists to which the chat belongs. A chat can have a non-zero position in a chat list even it doesn't belong to the
chat list and have no position in a chat list even it belongs to the chat list.
*/
    chat_lists: ChatList[];
    /**
Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can't change message
sender.
*/
    message_sender_id: MessageSender;
    /**
Block list to which the chat is added; may be null if none.
*/
    block_list: BlockList;
    /**
True, if chat content can't be saved locally, forwarded, or copied.
*/
    has_protected_content?: boolean;
    /**
True, if translation of all messages in the chat must be suggested to the user.
*/
    is_translatable?: boolean;
    /**
True, if the chat is marked as unread.
*/
    is_marked_as_unread?: boolean;
    /**
True, if the chat is a forum supergroup that must be shown in the "View as topics" mode, or Saved Messages chat that
must be shown in the "View as chats".
*/
    view_as_topics?: boolean;
    /**
True, if the chat has scheduled messages.
*/
    has_scheduled_messages?: boolean;
    /**
True, if the chat messages can be deleted only for the current user while other users will continue to see the messages.
*/
    can_be_deleted_only_for_self?: boolean;
    /**
True, if the chat messages can be deleted for all users.
*/
    can_be_deleted_for_all_users?: boolean;
    /**
True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto.
*/
    can_be_reported?: boolean;
    /**
Default value of the disable_notification parameter, used when a message is sent to the chat.
*/
    default_disable_notification?: boolean;
    /**
Number of unread messages in the chat.
*/
    unread_count: number;
    /**
Identifier of the last read incoming message.
*/
    last_read_inbox_message_id: number;
    /**
Identifier of the last read outgoing message.
*/
    last_read_outbox_message_id: number;
    /**
Number of unread messages with a mention/reply in the chat.
*/
    unread_mention_count: number;
    /**
Number of messages with unread reactions in the chat.
*/
    unread_reaction_count: number;
    /**
Notification settings for the chat.
*/
    notification_settings: ChatNotificationSettings;
    /**
Types of reaction, available in the chat.
*/
    available_reactions: ChatAvailableReactions;
    /**
Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer
in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send
date.
*/
    message_auto_delete_time: number;
    /**
Emoji status to be shown along with chat title; may be null.
*/
    emoji_status: EmojiStatus;
    /**
Background set for the chat; may be null if none.
*/
    background: ChatBackground;
    /**
If non-empty, name of a theme, set for the chat.
*/
    theme_name: string;
    /**
Information about actions which must be possible to do through the chat action bar; may be null if none.
*/
    action_bar: ChatActionBar;
    /**
Information about bar for managing a business bot in the chat; may be null if none.
*/
    business_bot_manage_bar: BusinessBotManageBar;
    /**
Information about video chat of the chat.
*/
    video_chat: VideoChat;
    /**
Information about pending join requests; may be null if none.
*/
    pending_join_requests: ChatJoinRequestsInfo;
    /**
Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the
chat.
*/
    reply_markup_message_id: number;
    /**
A draft of a message in the chat; may be null if none.
*/
    draft_message: DraftMessage;
    /**
Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification
settings can be stored here.) Persistent if the message database is used.
*/
    client_data: string;
}
/**
Represents a list of chats.
*/
export interface Chats {
    '@type': 'chats';
    /**
Approximate total number of chats found.
*/
    total_count: number;
    /**
List of chat identifiers.
*/
    chat_ids: number[];
}
/**
Contains information about a user that has failed to be added to a chat.
*/
export interface FailedToAddMember {
    '@type': 'failedToAddMember';
    /**
User identifier.
*/
    user_id: number;
    /**
True, if subscription to Telegram Premium would have allowed to add the user to the chat.
*/
    premium_would_allow_invite?: boolean;
    /**
True, if subscription to Telegram Premium is required to send the user chat invite link.
*/
    premium_required_to_send_messages?: boolean;
}
/**
Represents a list of users that has failed to be added to a chat.
*/
export interface FailedToAddMembers {
    '@type': 'failedToAddMembers';
    /**
Information about users that weren't added to the chat.
*/
    failed_to_add_members: FailedToAddMember[];
}
/**
Contains information about a newly created basic group chat.
*/
export interface CreatedBasicGroupChat {
    '@type': 'createdBasicGroupChat';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Information about failed to add members.
*/
    failed_to_add_members: FailedToAddMembers;
}
/**
Describes type of public chat.
Subtype of {@link PublicChatType}.
*/
export interface PublicChatTypeHasUsername {
    '@type': 'publicChatTypeHasUsername';
}
/**
The chat is public, because it is a location-based supergroup.
Subtype of {@link PublicChatType}.
*/
export interface PublicChatTypeIsLocationBased {
    '@type': 'publicChatTypeIsLocationBased';
}
/**
Contains basic information about another user that started a chat with the current user.
*/
export interface AccountInfo {
    '@type': 'accountInfo';
    /**
Month when the user was registered in Telegram; 0-12; may be 0 if unknown.
*/
    registration_month: number;
    /**
Year when the user was registered in Telegram; 0-9999; may be 0 if unknown.
*/
    registration_year: number;
    /**
A two-letter ISO 3166-1 alpha-2 country code based on the phone number of the user; may be empty if unknown.
*/
    phone_number_country_code: string;
    /**
Point in time (Unix timestamp) when the user changed name last time; 0 if unknown.
*/
    last_name_change_date: number;
    /**
Point in time (Unix timestamp) when the user changed photo last time; 0 if unknown.
*/
    last_photo_change_date: number;
}
/**
Describes actions which must be possible to do through a chat action bar.
Subtype of {@link ChatActionBar}.
*/
export interface ChatActionBarReportSpam {
    '@type': 'chatActionBarReportSpam';
    /**
If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList
simultaneously with setting chat notification settings to default using setChatNotificationSettings.
*/
    can_unarchive?: boolean;
}
/**
The chat is a recently created group chat to which new members can be invited.
Subtype of {@link ChatActionBar}.
*/
export interface ChatActionBarInviteMembers {
    '@type': 'chatActionBarInviteMembers';
}
/**
The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be
blocked using the method setMessageSenderBlockList, or the other user can be added to the contact list using the method
addContact. If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must
be shown.
Subtype of {@link ChatActionBar}.
*/
export interface ChatActionBarReportAddBlock {
    '@type': 'chatActionBarReportAddBlock';
    /**
If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList
simultaneously with setting chat notification settings to default using setChatNotificationSettings.
*/
    can_unarchive?: boolean;
    /**
Basic information about the other user in the chat; may be null if unknown.
*/
    account_info: AccountInfo;
}
/**
The chat is a private or secret chat and the other user can be added to the contact list using the method addContact.
Subtype of {@link ChatActionBar}.
*/
export interface ChatActionBarAddContact {
    '@type': 'chatActionBarAddContact';
}
/**
The chat is a private or secret chat with a mutual contact and the user's phone number can be shared with the other user
using the method sharePhoneNumber.
Subtype of {@link ChatActionBar}.
*/
export interface ChatActionBarSharePhoneNumber {
    '@type': 'chatActionBarSharePhoneNumber';
}
/**
The chat is a private chat with an administrator of a chat to which the user sent join request.
Subtype of {@link ChatActionBar}.
*/
export interface ChatActionBarJoinRequest {
    '@type': 'chatActionBarJoinRequest';
    /**
Title of the chat to which the join request was sent.
*/
    title: string;
    /**
True, if the join request was sent to a channel chat.
*/
    is_channel?: boolean;
    /**
Point in time (Unix timestamp) when the join request was sent.
*/
    request_date: number;
}
/**
Describes a keyboard button type.
Subtype of {@link KeyboardButtonType}.
*/
export interface KeyboardButtonTypeText {
    '@type': 'keyboardButtonTypeText';
}
/**
A button that sends the user's phone number when pressed; available only in private chats.
Subtype of {@link KeyboardButtonType}.
*/
export interface KeyboardButtonTypeRequestPhoneNumber {
    '@type': 'keyboardButtonTypeRequestPhoneNumber';
}
/**
A button that sends the user's location when pressed; available only in private chats.
Subtype of {@link KeyboardButtonType}.
*/
export interface KeyboardButtonTypeRequestLocation {
    '@type': 'keyboardButtonTypeRequestLocation';
}
/**
A button that allows the user to create and send a poll when pressed; available only in private chats.
Subtype of {@link KeyboardButtonType}.
*/
export interface KeyboardButtonTypeRequestPoll {
    '@type': 'keyboardButtonTypeRequestPoll';
    /**
If true, only regular polls must be allowed to create.
*/
    force_regular?: boolean;
    /**
If true, only polls in quiz mode must be allowed to create.
*/
    force_quiz?: boolean;
}
/**
A button that requests users to be shared by the current user; available only in private chats. Use the method
shareUsersWithBot to complete the request.
Subtype of {@link KeyboardButtonType}.
*/
export interface KeyboardButtonTypeRequestUsers {
    '@type': 'keyboardButtonTypeRequestUsers';
    /**
Unique button identifier.
*/
    id: number;
    /**
True, if the shared users must or must not be bots.
*/
    restrict_user_is_bot?: boolean;
    /**
True, if the shared users must be bots; otherwise, the shared users must not be bots. Ignored if restrict_user_is_bot is
false.
*/
    user_is_bot?: boolean;
    /**
True, if the shared users must or must not be Telegram Premium users.
*/
    restrict_user_is_premium?: boolean;
    /**
True, if the shared users must be Telegram Premium users; otherwise, the shared users must not be Telegram Premium
users. Ignored if restrict_user_is_premium is false.
*/
    user_is_premium?: boolean;
    /**
The maximum number of users to share.
*/
    max_quantity: number;
    /**
Pass true to request name of the users; bots only.
*/
    request_name?: boolean;
    /**
Pass true to request username of the users; bots only.
*/
    request_username?: boolean;
    /**
Pass true to request photo of the users; bots only.
*/
    request_photo?: boolean;
}
/**
A button that requests a chat to be shared by the current user; available only in private chats. Use the method
shareChatWithBot to complete the request.
Subtype of {@link KeyboardButtonType}.
*/
export interface KeyboardButtonTypeRequestChat {
    '@type': 'keyboardButtonTypeRequestChat';
    /**
Unique button identifier.
*/
    id: number;
    /**
True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared.
*/
    chat_is_channel?: boolean;
    /**
True, if the chat must or must not be a forum supergroup.
*/
    restrict_chat_is_forum?: boolean;
    /**
True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if
restrict_chat_is_forum is false.
*/
    chat_is_forum?: boolean;
    /**
True, if the chat must or must not have a username.
*/
    restrict_chat_has_username?: boolean;
    /**
True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if
restrict_chat_has_username is false.
*/
    chat_has_username?: boolean;
    /**
True, if the chat must be created by the current user.
*/
    chat_is_created?: boolean;
    /**
Expected user administrator rights in the chat; may be null if they aren't restricted.
*/
    user_administrator_rights: ChatAdministratorRights;
    /**
Expected bot administrator rights in the chat; may be null if they aren't restricted.
*/
    bot_administrator_rights: ChatAdministratorRights;
    /**
True, if the bot must be a member of the chat; for basic group and supergroup chats only.
*/
    bot_is_member?: boolean;
    /**
Pass true to request title of the chat; bots only.
*/
    request_title?: boolean;
    /**
Pass true to request username of the chat; bots only.
*/
    request_username?: boolean;
    /**
Pass true to request photo of the chat; bots only.
*/
    request_photo?: boolean;
}
/**
A button that opens a Web App by calling getWebAppUrl.
Subtype of {@link KeyboardButtonType}.
*/
export interface KeyboardButtonTypeWebApp {
    '@type': 'keyboardButtonTypeWebApp';
    /**
An HTTP URL to pass to getWebAppUrl.
*/
    url: string;
}
/**
Represents a single button in a bot keyboard.
*/
export interface KeyboardButton {
    '@type': 'keyboardButton';
    /**
Text of the button.
*/
    text: string;
    /**
Type of the button.
*/
    type: KeyboardButtonType;
}
/**
Describes the type of inline keyboard button.
Subtype of {@link InlineKeyboardButtonType}.
*/
export interface InlineKeyboardButtonTypeUrl {
    '@type': 'inlineKeyboardButtonTypeUrl';
    /**
HTTP or tg:// URL to open. If the link is of the type internalLinkTypeWebApp, then the button must be marked as a Web
App button.
*/
    url: string;
}
/**
A button that opens a specified URL and automatically authorize the current user by calling getLoginUrlInfo.
Subtype of {@link InlineKeyboardButtonType}.
*/
export interface InlineKeyboardButtonTypeLoginUrl {
    '@type': 'inlineKeyboardButtonTypeLoginUrl';
    /**
An HTTP URL to pass to getLoginUrlInfo.
*/
    url: string;
    /**
Unique button identifier.
*/
    id: number;
    /**
If non-empty, new text of the button in forwarded messages.
*/
    forward_text: string;
}
/**
A button that opens a Web App by calling openWebApp.
Subtype of {@link InlineKeyboardButtonType}.
*/
export interface InlineKeyboardButtonTypeWebApp {
    '@type': 'inlineKeyboardButtonTypeWebApp';
    /**
An HTTP URL to pass to openWebApp.
*/
    url: string;
}
/**
A button that sends a callback query to a bot.
Subtype of {@link InlineKeyboardButtonType}.
*/
export interface InlineKeyboardButtonTypeCallback {
    '@type': 'inlineKeyboardButtonTypeCallback';
    /**
Data to be sent to the bot via a callback query.
*/
    data: string;
}
/**
A button that asks for the 2-step verification password of the current user and then sends a callback query to a bot.
Subtype of {@link InlineKeyboardButtonType}.
*/
export interface InlineKeyboardButtonTypeCallbackWithPassword {
    '@type': 'inlineKeyboardButtonTypeCallbackWithPassword';
    /**
Data to be sent to the bot via a callback query.
*/
    data: string;
}
/**
A button with a game that sends a callback query to a bot. This button must be in the first column and row of the
keyboard and can be attached only to a message with content of the type messageGame.
Subtype of {@link InlineKeyboardButtonType}.
*/
export interface InlineKeyboardButtonTypeCallbackGame {
    '@type': 'inlineKeyboardButtonTypeCallbackGame';
}
/**
A button that forces an inline query to the bot to be inserted in the input field.
Subtype of {@link InlineKeyboardButtonType}.
*/
export interface InlineKeyboardButtonTypeSwitchInline {
    '@type': 'inlineKeyboardButtonTypeSwitchInline';
    /**
Inline query to be sent to the bot.
*/
    query: string;
    /**
Target chat from which to send the inline query.
*/
    target_chat: TargetChat;
}
/**
A button to buy something. This button must be in the first column and row of the keyboard and can be attached only to a
message with content of the type messageInvoice.
Subtype of {@link InlineKeyboardButtonType}.
*/
export interface InlineKeyboardButtonTypeBuy {
    '@type': 'inlineKeyboardButtonTypeBuy';
}
/**
A button with a user reference to be handled in the same way as textEntityTypeMentionName entities.
Subtype of {@link InlineKeyboardButtonType}.
*/
export interface InlineKeyboardButtonTypeUser {
    '@type': 'inlineKeyboardButtonTypeUser';
    /**
User identifier.
*/
    user_id: number;
}
/**
A button that copies specified text to clipboard.
Subtype of {@link InlineKeyboardButtonType}.
*/
export interface InlineKeyboardButtonTypeCopyText {
    '@type': 'inlineKeyboardButtonTypeCopyText';
    /**
The text to copy to clipboard.
*/
    text: string;
}
/**
Represents a single button in an inline keyboard.
*/
export interface InlineKeyboardButton {
    '@type': 'inlineKeyboardButton';
    /**
Text of the button.
*/
    text: string;
    /**
Type of the button.
*/
    type: InlineKeyboardButtonType;
}
/**
Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots.
Subtype of {@link ReplyMarkup}.
*/
export interface ReplyMarkupRemoveKeyboard {
    '@type': 'replyMarkupRemoveKeyboard';
    /**
True, if the keyboard is removed only for the mentioned users or the target user of a reply.
*/
    is_personal?: boolean;
}
/**
Instructs application to force a reply to this message.
Subtype of {@link ReplyMarkup}.
*/
export interface ReplyMarkupForceReply {
    '@type': 'replyMarkupForceReply';
    /**
True, if a forced reply must automatically be shown to the current user. For outgoing messages, specify true to show the
forced reply only for the mentioned users and for the target user of a reply.
*/
    is_personal?: boolean;
    /**
If non-empty, the placeholder to be shown in the input field when the reply is active; 0-64 characters.
*/
    input_field_placeholder: string;
}
/**
Contains a custom keyboard layout to quickly reply to bots.
Subtype of {@link ReplyMarkup}.
*/
export interface ReplyMarkupShowKeyboard {
    '@type': 'replyMarkupShowKeyboard';
    /**
A list of rows of bot keyboard buttons.
*/
    rows: KeyboardButton[][];
    /**
True, if the keyboard is expected to always be shown when the ordinary keyboard is hidden.
*/
    is_persistent?: boolean;
    /**
True, if the application needs to resize the keyboard vertically.
*/
    resize_keyboard?: boolean;
    /**
True, if the application needs to hide the keyboard after use.
*/
    one_time?: boolean;
    /**
True, if the keyboard must automatically be shown to the current user. For outgoing messages, specify true to show the
keyboard only for the mentioned users and for the target user of a reply.
*/
    is_personal?: boolean;
    /**
If non-empty, the placeholder to be shown in the input field when the keyboard is active; 0-64 characters.
*/
    input_field_placeholder: string;
}
/**
Contains an inline keyboard layout.
Subtype of {@link ReplyMarkup}.
*/
export interface ReplyMarkupInlineKeyboard {
    '@type': 'replyMarkupInlineKeyboard';
    /**
A list of rows of inline keyboard buttons.
*/
    rows: InlineKeyboardButton[][];
}
/**
Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl.
Subtype of {@link LoginUrlInfo}.
*/
export interface LoginUrlInfoOpen {
    '@type': 'loginUrlInfoOpen';
    /**
The URL to open.
*/
    url: string;
    /**
True, if there is no need to show an ordinary open URL confirmation.
*/
    skip_confirmation?: boolean;
}
/**
An authorization confirmation dialog needs to be shown to the user.
Subtype of {@link LoginUrlInfo}.
*/
export interface LoginUrlInfoRequestConfirmation {
    '@type': 'loginUrlInfoRequestConfirmation';
    /**
An HTTP URL to be opened.
*/
    url: string;
    /**
A domain of the URL.
*/
    domain: string;
    /**
User identifier of a bot linked with the website.
*/
    bot_user_id: number;
    /**
True, if the user must be asked for the permission to the bot to send them messages.
*/
    request_write_access?: boolean;
}
/**
Contains parameters of the application theme.
*/
export interface ThemeParameters {
    '@type': 'themeParameters';
    /**
A color of the background in the RGB format.
*/
    background_color: number;
    /**
A secondary color for the background in the RGB format.
*/
    secondary_background_color: number;
    /**
A color of the header background in the RGB format.
*/
    header_background_color: number;
    /**
A color of the bottom bar background in the RGB format.
*/
    bottom_bar_background_color: number;
    /**
A color of the section background in the RGB format.
*/
    section_background_color: number;
    /**
A color of the section separator in the RGB format.
*/
    section_separator_color: number;
    /**
A color of text in the RGB format.
*/
    text_color: number;
    /**
An accent color of the text in the RGB format.
*/
    accent_text_color: number;
    /**
A color of text on the section headers in the RGB format.
*/
    section_header_text_color: number;
    /**
A color of the subtitle text in the RGB format.
*/
    subtitle_text_color: number;
    /**
A color of the text for destructive actions in the RGB format.
*/
    destructive_text_color: number;
    /**
A color of hints in the RGB format.
*/
    hint_color: number;
    /**
A color of links in the RGB format.
*/
    link_color: number;
    /**
A color of the buttons in the RGB format.
*/
    button_color: number;
    /**
A color of text on the buttons in the RGB format.
*/
    button_text_color: number;
}
/**
Describes mode in which a Web App is opened.
Subtype of {@link WebAppOpenMode}.
*/
export interface WebAppOpenModeCompact {
    '@type': 'webAppOpenModeCompact';
}
/**
The Web App is opened in the full-size mode.
Subtype of {@link WebAppOpenMode}.
*/
export interface WebAppOpenModeFullSize {
    '@type': 'webAppOpenModeFullSize';
}
/**
The Web App is opened in the full-screen mode.
Subtype of {@link WebAppOpenMode}.
*/
export interface WebAppOpenModeFullScreen {
    '@type': 'webAppOpenModeFullScreen';
}
/**
Contains information about a Web App found by its short name.
*/
export interface FoundWebApp {
    '@type': 'foundWebApp';
    /**
The Web App.
*/
    web_app: WebApp;
    /**
True, if the user must be asked for the permission to the bot to send them messages.
*/
    request_write_access?: boolean;
    /**
True, if there is no need to show an ordinary open URL confirmation before opening the Web App. The field must be
ignored and confirmation must be shown anyway if the Web App link was hidden.
*/
    skip_confirmation?: boolean;
}
/**
Contains information about a Web App.
*/
export interface WebAppInfo {
    '@type': 'webAppInfo';
    /**
Unique identifier for the Web App launch.
*/
    launch_id: string;
    /**
A Web App URL to open in a web view.
*/
    url: string;
}
/**
Contains information about the main Web App of a bot.
*/
export interface MainWebApp {
    '@type': 'mainWebApp';
    /**
URL of the Web App to open.
*/
    url: string;
    /**
The mode in which the Web App must be opened.
*/
    mode: WebAppOpenMode;
}
/**
Options to be used when a Web App is opened.
*/
export interface WebAppOpenParameters {
    '@type': 'webAppOpenParameters';
    /**
Preferred Web App theme; pass null to use the default theme.
*/
    theme: ThemeParameters;
    /**
Short name of the current application; 0-64 English letters, digits, and underscores.
*/
    application_name: string;
    /**
The mode in which the Web App is opened; pass null to open in webAppOpenModeFullSize.
*/
    mode: WebAppOpenMode;
}
/**
Contains information about a message thread.
*/
export interface MessageThreadInfo {
    '@type': 'messageThreadInfo';
    /**
Identifier of the chat to which the message thread belongs.
*/
    chat_id: number;
    /**
Message thread identifier, unique within the chat.
*/
    message_thread_id: number;
    /**
Information about the message thread; may be null for forum topic threads.
*/
    reply_info: MessageReplyInfo;
    /**
Approximate number of unread messages in the message thread.
*/
    unread_message_count: number;
    /**
The messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of
decreasing message_id).
*/
    messages: Message[];
    /**
A draft of a message in the message thread; may be null if none.
*/
    draft_message: DraftMessage;
}
/**
Describes type of Saved Messages topic.
Subtype of {@link SavedMessagesTopicType}.
*/
export interface SavedMessagesTopicTypeMyNotes {
    '@type': 'savedMessagesTopicTypeMyNotes';
}
/**
Topic containing messages forwarded from a user with hidden privacy.
Subtype of {@link SavedMessagesTopicType}.
*/
export interface SavedMessagesTopicTypeAuthorHidden {
    '@type': 'savedMessagesTopicTypeAuthorHidden';
}
/**
Topic containing messages forwarded from a specific chat.
Subtype of {@link SavedMessagesTopicType}.
*/
export interface SavedMessagesTopicTypeSavedFromChat {
    '@type': 'savedMessagesTopicTypeSavedFromChat';
    /**
Identifier of the chat.
*/
    chat_id: number;
}
/**
Contains information about a Saved Messages topic.
*/
export interface SavedMessagesTopic {
    '@type': 'savedMessagesTopic';
    /**
Unique topic identifier.
*/
    id: number;
    /**
Type of the topic.
*/
    type: SavedMessagesTopicType;
    /**
True, if the topic is pinned.
*/
    is_pinned?: boolean;
    /**
A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending
order.
*/
    order: string;
    /**
Last message in the topic; may be null if none or unknown.
*/
    last_message: Message;
    /**
A draft of a message in the topic; may be null if none.
*/
    draft_message: DraftMessage;
}
/**
Describes a forum topic icon.
*/
export interface ForumTopicIcon {
    '@type': 'forumTopicIcon';
    /**
Color of the topic icon in RGB format.
*/
    color: number;
    /**
Unique identifier of the custom emoji shown on the topic icon; 0 if none.
*/
    custom_emoji_id: string;
}
/**
Contains basic information about a forum topic.
*/
export interface ForumTopicInfo {
    '@type': 'forumTopicInfo';
    /**
Message thread identifier of the topic.
*/
    message_thread_id: number;
    /**
Name of the topic.
*/
    name: string;
    /**
Icon of the topic.
*/
    icon: ForumTopicIcon;
    /**
Point in time (Unix timestamp) when the topic was created.
*/
    creation_date: number;
    /**
Identifier of the creator of the topic.
*/
    creator_id: MessageSender;
    /**
True, if the topic is the General topic list.
*/
    is_general?: boolean;
    /**
True, if the topic was created by the current user.
*/
    is_outgoing?: boolean;
    /**
True, if the topic is closed.
*/
    is_closed?: boolean;
    /**
True, if the topic is hidden above the topic list and closed; for General topic only.
*/
    is_hidden?: boolean;
}
/**
Describes a forum topic.
*/
export interface ForumTopic {
    '@type': 'forumTopic';
    /**
Basic information about the topic.
*/
    info: ForumTopicInfo;
    /**
Last message in the topic; may be null if unknown.
*/
    last_message: Message;
    /**
True, if the topic is pinned in the topic list.
*/
    is_pinned?: boolean;
    /**
Number of unread messages in the topic.
*/
    unread_count: number;
    /**
Identifier of the last read incoming message.
*/
    last_read_inbox_message_id: number;
    /**
Identifier of the last read outgoing message.
*/
    last_read_outbox_message_id: number;
    /**
Number of unread messages with a mention/reply in the topic.
*/
    unread_mention_count: number;
    /**
Number of messages with unread reactions in the topic.
*/
    unread_reaction_count: number;
    /**
Notification settings for the topic.
*/
    notification_settings: ChatNotificationSettings;
    /**
A draft of a message in the topic; may be null if none.
*/
    draft_message: DraftMessage;
}
/**
Describes a list of forum topics.
*/
export interface ForumTopics {
    '@type': 'forumTopics';
    /**
Approximate total number of forum topics found.
*/
    total_count: number;
    /**
List of forum topics.
*/
    topics: ForumTopic[];
    /**
Offset date for the next getForumTopics request.
*/
    next_offset_date: number;
    /**
Offset message identifier for the next getForumTopics request.
*/
    next_offset_message_id: number;
    /**
Offset message thread identifier for the next getForumTopics request.
*/
    next_offset_message_thread_id: number;
}
/**
Options to be used for generation of a link preview.
*/
export interface LinkPreviewOptions {
    '@type': 'linkPreviewOptions';
    /**
True, if link preview must be disabled.
*/
    is_disabled?: boolean;
    /**
URL to use for link preview. If empty, then the first URL found in the message text will be used.
*/
    url: string;
    /**
True, if shown media preview must be small; ignored in secret chats or if the URL isn't explicitly specified.
*/
    force_small_media?: boolean;
    /**
True, if shown media preview must be large; ignored in secret chats or if the URL isn't explicitly specified.
*/
    force_large_media?: boolean;
    /**
True, if link preview must be shown above message text; otherwise, the link preview will be shown below the message
text; ignored in secret chats.
*/
    show_above_text?: boolean;
}
/**
Contains information about a user shared with a bot.
*/
export interface SharedUser {
    '@type': 'sharedUser';
    /**
User identifier.
*/
    user_id: number;
    /**
First name of the user; for bots only.
*/
    first_name: string;
    /**
Last name of the user; for bots only.
*/
    last_name: string;
    /**
Username of the user; for bots only.
*/
    username: string;
    /**
Profile photo of the user; for bots only; may be null.
*/
    photo: Photo;
}
/**
Contains information about a chat shared with a bot.
*/
export interface SharedChat {
    '@type': 'sharedChat';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Title of the chat; for bots only.
*/
    title: string;
    /**
Username of the chat; for bots only.
*/
    username: string;
    /**
Photo of the chat; for bots only; may be null.
*/
    photo: Photo;
}
/**
Describes theme settings.
*/
export interface ThemeSettings {
    '@type': 'themeSettings';
    /**
Theme accent color in ARGB format.
*/
    accent_color: number;
    /**
The background to be used in chats; may be null.
*/
    background: Background;
    /**
The fill to be used as a background for outgoing messages.
*/
    outgoing_message_fill: BackgroundFill;
    /**
If true, the freeform gradient fill needs to be animated on every sent message.
*/
    animate_outgoing_message_fill?: boolean;
    /**
Accent color of outgoing messages in ARGB format.
*/
    outgoing_message_accent_color: number;
}
/**
Describes a formatted text object.
Subtype of {@link RichText}.
*/
export interface RichTextPlain {
    '@type': 'richTextPlain';
    /**
Text.
*/
    text: string;
}
/**
A bold rich text.
Subtype of {@link RichText}.
*/
export interface RichTextBold {
    '@type': 'richTextBold';
    /**
Text.
*/
    text: RichText;
}
/**
An italicized rich text.
Subtype of {@link RichText}.
*/
export interface RichTextItalic {
    '@type': 'richTextItalic';
    /**
Text.
*/
    text: RichText;
}
/**
An underlined rich text.
Subtype of {@link RichText}.
*/
export interface RichTextUnderline {
    '@type': 'richTextUnderline';
    /**
Text.
*/
    text: RichText;
}
/**
A strikethrough rich text.
Subtype of {@link RichText}.
*/
export interface RichTextStrikethrough {
    '@type': 'richTextStrikethrough';
    /**
Text.
*/
    text: RichText;
}
/**
A fixed-width rich text.
Subtype of {@link RichText}.
*/
export interface RichTextFixed {
    '@type': 'richTextFixed';
    /**
Text.
*/
    text: RichText;
}
/**
A rich text URL link.
Subtype of {@link RichText}.
*/
export interface RichTextUrl {
    '@type': 'richTextUrl';
    /**
Text.
*/
    text: RichText;
    /**
URL.
*/
    url: string;
    /**
True, if the URL has cached instant view server-side.
*/
    is_cached?: boolean;
}
/**
A rich text email link.
Subtype of {@link RichText}.
*/
export interface RichTextEmailAddress {
    '@type': 'richTextEmailAddress';
    /**
Text.
*/
    text: RichText;
    /**
Email address.
*/
    email_address: string;
}
/**
A subscript rich text.
Subtype of {@link RichText}.
*/
export interface RichTextSubscript {
    '@type': 'richTextSubscript';
    /**
Text.
*/
    text: RichText;
}
/**
A superscript rich text.
Subtype of {@link RichText}.
*/
export interface RichTextSuperscript {
    '@type': 'richTextSuperscript';
    /**
Text.
*/
    text: RichText;
}
/**
A marked rich text.
Subtype of {@link RichText}.
*/
export interface RichTextMarked {
    '@type': 'richTextMarked';
    /**
Text.
*/
    text: RichText;
}
/**
A rich text phone number.
Subtype of {@link RichText}.
*/
export interface RichTextPhoneNumber {
    '@type': 'richTextPhoneNumber';
    /**
Text.
*/
    text: RichText;
    /**
Phone number.
*/
    phone_number: string;
}
/**
A small image inside the text.
Subtype of {@link RichText}.
*/
export interface RichTextIcon {
    '@type': 'richTextIcon';
    /**
The image represented as a document. The image can be in GIF, JPEG or PNG format.
*/
    document: Document;
    /**
Width of a bounding box in which the image must be shown; 0 if unknown.
*/
    width: number;
    /**
Height of a bounding box in which the image must be shown; 0 if unknown.
*/
    height: number;
}
/**
A reference to a richTexts object on the same page.
Subtype of {@link RichText}.
*/
export interface RichTextReference {
    '@type': 'richTextReference';
    /**
The text.
*/
    text: RichText;
    /**
The name of a richTextAnchor object, which is the first element of the target richTexts object.
*/
    anchor_name: string;
    /**
An HTTP URL, opening the reference.
*/
    url: string;
}
/**
An anchor.
Subtype of {@link RichText}.
*/
export interface RichTextAnchor {
    '@type': 'richTextAnchor';
    /**
Anchor name.
*/
    name: string;
}
/**
A link to an anchor on the same page.
Subtype of {@link RichText}.
*/
export interface RichTextAnchorLink {
    '@type': 'richTextAnchorLink';
    /**
The link text.
*/
    text: RichText;
    /**
The anchor name. If the name is empty, the link must bring back to top.
*/
    anchor_name: string;
    /**
An HTTP URL, opening the anchor.
*/
    url: string;
}
/**
A concatenation of rich texts.
Subtype of {@link RichText}.
*/
export interface RichTexts {
    '@type': 'richTexts';
    /**
Texts.
*/
    texts: RichText[];
}
/**
Contains a caption of another block.
*/
export interface PageBlockCaption {
    '@type': 'pageBlockCaption';
    /**
Content of the caption.
*/
    text: RichText;
    /**
Block credit (like HTML tag <cite>).
*/
    credit: RichText;
}
/**
Describes an item of a list page block.
*/
export interface PageBlockListItem {
    '@type': 'pageBlockListItem';
    /**
Item label.
*/
    label: string;
    /**
Item blocks.
*/
    page_blocks: PageBlock[];
}
/**
Describes a horizontal alignment of a table cell content.
Subtype of {@link PageBlockHorizontalAlignment}.
*/
export interface PageBlockHorizontalAlignmentLeft {
    '@type': 'pageBlockHorizontalAlignmentLeft';
}
/**
The content must be center-aligned.
Subtype of {@link PageBlockHorizontalAlignment}.
*/
export interface PageBlockHorizontalAlignmentCenter {
    '@type': 'pageBlockHorizontalAlignmentCenter';
}
/**
The content must be right-aligned.
Subtype of {@link PageBlockHorizontalAlignment}.
*/
export interface PageBlockHorizontalAlignmentRight {
    '@type': 'pageBlockHorizontalAlignmentRight';
}
/**
Describes a Vertical alignment of a table cell content.
Subtype of {@link PageBlockVerticalAlignment}.
*/
export interface PageBlockVerticalAlignmentTop {
    '@type': 'pageBlockVerticalAlignmentTop';
}
/**
The content must be middle-aligned.
Subtype of {@link PageBlockVerticalAlignment}.
*/
export interface PageBlockVerticalAlignmentMiddle {
    '@type': 'pageBlockVerticalAlignmentMiddle';
}
/**
The content must be bottom-aligned.
Subtype of {@link PageBlockVerticalAlignment}.
*/
export interface PageBlockVerticalAlignmentBottom {
    '@type': 'pageBlockVerticalAlignmentBottom';
}
/**
Represents a cell of a table.
*/
export interface PageBlockTableCell {
    '@type': 'pageBlockTableCell';
    /**
Cell text; may be null. If the text is null, then the cell must be invisible.
*/
    text: RichText;
    /**
True, if it is a header cell.
*/
    is_header?: boolean;
    /**
The number of columns the cell spans.
*/
    colspan: number;
    /**
The number of rows the cell spans.
*/
    rowspan: number;
    /**
Horizontal cell content alignment.
*/
    align: PageBlockHorizontalAlignment;
    /**
Vertical cell content alignment.
*/
    valign: PageBlockVerticalAlignment;
}
/**
Contains information about a related article.
*/
export interface PageBlockRelatedArticle {
    '@type': 'pageBlockRelatedArticle';
    /**
Related article URL.
*/
    url: string;
    /**
Article title; may be empty.
*/
    title: string;
    /**
Contains information about a related article.
*/
    description: string;
    /**
Article photo; may be null.
*/
    photo: Photo;
    /**
Article author; may be empty.
*/
    author: string;
    /**
Point in time (Unix timestamp) when the article was published; 0 if unknown.
*/
    publish_date: number;
}
/**
Describes a block of an instant view for a web page.
Subtype of {@link PageBlock}.
*/
export interface PageBlockTitle {
    '@type': 'pageBlockTitle';
    /**
Title.
*/
    title: RichText;
}
/**
The subtitle of a page.
Subtype of {@link PageBlock}.
*/
export interface PageBlockSubtitle {
    '@type': 'pageBlockSubtitle';
    /**
Subtitle.
*/
    subtitle: RichText;
}
/**
The author and publishing date of a page.
Subtype of {@link PageBlock}.
*/
export interface PageBlockAuthorDate {
    '@type': 'pageBlockAuthorDate';
    /**
Author.
*/
    author: RichText;
    /**
Point in time (Unix timestamp) when the article was published; 0 if unknown.
*/
    publish_date: number;
}
/**
A header.
Subtype of {@link PageBlock}.
*/
export interface PageBlockHeader {
    '@type': 'pageBlockHeader';
    /**
Header.
*/
    header: RichText;
}
/**
A subheader.
Subtype of {@link PageBlock}.
*/
export interface PageBlockSubheader {
    '@type': 'pageBlockSubheader';
    /**
Subheader.
*/
    subheader: RichText;
}
/**
A kicker.
Subtype of {@link PageBlock}.
*/
export interface PageBlockKicker {
    '@type': 'pageBlockKicker';
    /**
Kicker.
*/
    kicker: RichText;
}
/**
A text paragraph.
Subtype of {@link PageBlock}.
*/
export interface PageBlockParagraph {
    '@type': 'pageBlockParagraph';
    /**
Paragraph text.
*/
    text: RichText;
}
/**
A preformatted text paragraph.
Subtype of {@link PageBlock}.
*/
export interface PageBlockPreformatted {
    '@type': 'pageBlockPreformatted';
    /**
Paragraph text.
*/
    text: RichText;
    /**
Programming language for which the text needs to be formatted.
*/
    language: string;
}
/**
The footer of a page.
Subtype of {@link PageBlock}.
*/
export interface PageBlockFooter {
    '@type': 'pageBlockFooter';
    /**
Footer.
*/
    footer: RichText;
}
/**
An empty block separating a page.
Subtype of {@link PageBlock}.
*/
export interface PageBlockDivider {
    '@type': 'pageBlockDivider';
}
/**
An invisible anchor on a page, which can be used in a URL to open the page from the specified anchor.
Subtype of {@link PageBlock}.
*/
export interface PageBlockAnchor {
    '@type': 'pageBlockAnchor';
    /**
Name of the anchor.
*/
    name: string;
}
/**
A list of data blocks.
Subtype of {@link PageBlock}.
*/
export interface PageBlockList {
    '@type': 'pageBlockList';
    /**
The items of the list.
*/
    items: PageBlockListItem[];
}
/**
A block quote.
Subtype of {@link PageBlock}.
*/
export interface PageBlockBlockQuote {
    '@type': 'pageBlockBlockQuote';
    /**
Quote text.
*/
    text: RichText;
    /**
Quote credit.
*/
    credit: RichText;
}
/**
A pull quote.
Subtype of {@link PageBlock}.
*/
export interface PageBlockPullQuote {
    '@type': 'pageBlockPullQuote';
    /**
Quote text.
*/
    text: RichText;
    /**
Quote credit.
*/
    credit: RichText;
}
/**
An animation.
Subtype of {@link PageBlock}.
*/
export interface PageBlockAnimation {
    '@type': 'pageBlockAnimation';
    /**
Animation file; may be null.
*/
    animation: Animation;
    /**
Animation caption.
*/
    caption: PageBlockCaption;
    /**
True, if the animation must be played automatically.
*/
    need_autoplay?: boolean;
}
/**
An audio file.
Subtype of {@link PageBlock}.
*/
export interface PageBlockAudio {
    '@type': 'pageBlockAudio';
    /**
Audio file; may be null.
*/
    audio: Audio;
    /**
Audio file caption.
*/
    caption: PageBlockCaption;
}
/**
A photo.
Subtype of {@link PageBlock}.
*/
export interface PageBlockPhoto {
    '@type': 'pageBlockPhoto';
    /**
Photo file; may be null.
*/
    photo: Photo;
    /**
Photo caption.
*/
    caption: PageBlockCaption;
    /**
URL that needs to be opened when the photo is clicked.
*/
    url: string;
}
/**
A video.
Subtype of {@link PageBlock}.
*/
export interface PageBlockVideo {
    '@type': 'pageBlockVideo';
    /**
Video file; may be null.
*/
    video: Video;
    /**
Video caption.
*/
    caption: PageBlockCaption;
    /**
True, if the video must be played automatically.
*/
    need_autoplay?: boolean;
    /**
True, if the video must be looped.
*/
    is_looped?: boolean;
}
/**
A voice note.
Subtype of {@link PageBlock}.
*/
export interface PageBlockVoiceNote {
    '@type': 'pageBlockVoiceNote';
    /**
Voice note; may be null.
*/
    voice_note: VoiceNote;
    /**
Voice note caption.
*/
    caption: PageBlockCaption;
}
/**
A page cover.
Subtype of {@link PageBlock}.
*/
export interface PageBlockCover {
    '@type': 'pageBlockCover';
    /**
Cover.
*/
    cover: PageBlock;
}
/**
An embedded web page.
Subtype of {@link PageBlock}.
*/
export interface PageBlockEmbedded {
    '@type': 'pageBlockEmbedded';
    /**
URL of the embedded page, if available.
*/
    url: string;
    /**
HTML-markup of the embedded page.
*/
    html: string;
    /**
Poster photo, if available; may be null.
*/
    poster_photo: Photo;
    /**
Block width; 0 if unknown.
*/
    width: number;
    /**
Block height; 0 if unknown.
*/
    height: number;
    /**
Block caption.
*/
    caption: PageBlockCaption;
    /**
True, if the block must be full width.
*/
    is_full_width?: boolean;
    /**
True, if scrolling needs to be allowed.
*/
    allow_scrolling?: boolean;
}
/**
An embedded post.
Subtype of {@link PageBlock}.
*/
export interface PageBlockEmbeddedPost {
    '@type': 'pageBlockEmbeddedPost';
    /**
URL of the embedded post.
*/
    url: string;
    /**
Post author.
*/
    author: string;
    /**
Post author photo; may be null.
*/
    author_photo: Photo;
    /**
Point in time (Unix timestamp) when the post was created; 0 if unknown.
*/
    date: number;
    /**
Post content.
*/
    page_blocks: PageBlock[];
    /**
Post caption.
*/
    caption: PageBlockCaption;
}
/**
A collage.
Subtype of {@link PageBlock}.
*/
export interface PageBlockCollage {
    '@type': 'pageBlockCollage';
    /**
Collage item contents.
*/
    page_blocks: PageBlock[];
    /**
Block caption.
*/
    caption: PageBlockCaption;
}
/**
A slideshow.
Subtype of {@link PageBlock}.
*/
export interface PageBlockSlideshow {
    '@type': 'pageBlockSlideshow';
    /**
Slideshow item contents.
*/
    page_blocks: PageBlock[];
    /**
Block caption.
*/
    caption: PageBlockCaption;
}
/**
A link to a chat.
Subtype of {@link PageBlock}.
*/
export interface PageBlockChatLink {
    '@type': 'pageBlockChatLink';
    /**
Chat title.
*/
    title: string;
    /**
Chat photo; may be null.
*/
    photo: ChatPhotoInfo;
    /**
Identifier of the accent color for chat title and background of chat photo.
*/
    accent_color_id: number;
    /**
Chat username by which all other information about the chat can be resolved.
*/
    username: string;
}
/**
A table.
Subtype of {@link PageBlock}.
*/
export interface PageBlockTable {
    '@type': 'pageBlockTable';
    /**
Table caption.
*/
    caption: RichText;
    /**
Table cells.
*/
    cells: PageBlockTableCell[][];
    /**
True, if the table is bordered.
*/
    is_bordered?: boolean;
    /**
True, if the table is striped.
*/
    is_striped?: boolean;
}
/**
A collapsible block.
Subtype of {@link PageBlock}.
*/
export interface PageBlockDetails {
    '@type': 'pageBlockDetails';
    /**
Always visible heading for the block.
*/
    header: RichText;
    /**
Block contents.
*/
    page_blocks: PageBlock[];
    /**
True, if the block is open by default.
*/
    is_open?: boolean;
}
/**
Related articles.
Subtype of {@link PageBlock}.
*/
export interface PageBlockRelatedArticles {
    '@type': 'pageBlockRelatedArticles';
    /**
Block header.
*/
    header: RichText;
    /**
List of related articles.
*/
    articles: PageBlockRelatedArticle[];
}
/**
A map.
Subtype of {@link PageBlock}.
*/
export interface PageBlockMap {
    '@type': 'pageBlockMap';
    /**
Location of the map center.
*/
    location: Location;
    /**
Map zoom level.
*/
    zoom: number;
    /**
Map width.
*/
    width: number;
    /**
Map height.
*/
    height: number;
    /**
Block caption.
*/
    caption: PageBlockCaption;
}
/**
Describes an instant view page for a web page.
*/
export interface WebPageInstantView {
    '@type': 'webPageInstantView';
    /**
Content of the instant view page.
*/
    page_blocks: PageBlock[];
    /**
Number of the instant view views; 0 if unknown.
*/
    view_count: number;
    /**
Version of the instant view; currently, can be 1 or 2.
*/
    version: number;
    /**
True, if the instant view must be shown from right to left.
*/
    is_rtl?: boolean;
    /**
True, if the instant view contains the full page. A network request might be needed to get the full instant view.
*/
    is_full?: boolean;
    /**
An internal link to be opened to leave feedback about the instant view.
*/
    feedback_link: InternalLinkType;
}
/**
Describes a media from a link preview album.
Subtype of {@link LinkPreviewAlbumMedia}.
*/
export interface LinkPreviewAlbumMediaPhoto {
    '@type': 'linkPreviewAlbumMediaPhoto';
    /**
Photo description.
*/
    photo: Photo;
}
/**
The media is a video.
Subtype of {@link LinkPreviewAlbumMedia}.
*/
export interface LinkPreviewAlbumMediaVideo {
    '@type': 'linkPreviewAlbumMediaVideo';
    /**
Video description.
*/
    video: Video;
}
/**
Describes type of link preview.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeAlbum {
    '@type': 'linkPreviewTypeAlbum';
    /**
The list of album media.
*/
    media: LinkPreviewAlbumMedia[];
    /**
Album caption.
*/
    caption: string;
}
/**
The link is a link to an animation.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeAnimation {
    '@type': 'linkPreviewTypeAnimation';
    /**
The animation.
*/
    animation: Animation;
}
/**
The link is a link to an app at App Store or Google Play.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeApp {
    '@type': 'linkPreviewTypeApp';
    /**
Photo for the app.
*/
    photo: Photo;
}
/**
The link is a link to a web site.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeArticle {
    '@type': 'linkPreviewTypeArticle';
    /**
Article's main photo; may be null.
*/
    photo: Photo;
}
/**
The link is a link to an audio.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeAudio {
    '@type': 'linkPreviewTypeAudio';
    /**
The audio description.
*/
    audio: Audio;
}
/**
The link is a link to a background. Link preview title and description are available only for filled backgrounds.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeBackground {
    '@type': 'linkPreviewTypeBackground';
    /**
Document with the background; may be null for filled backgrounds.
*/
    document: Document;
    /**
Type of the background; may be null if unknown.
*/
    background_type: BackgroundType;
}
/**
The link is a link to boost a channel chat.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeChannelBoost {
    '@type': 'linkPreviewTypeChannelBoost';
    /**
Photo of the chat; may be null.
*/
    photo: ChatPhoto;
}
/**
The link is a link to a chat.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeChat {
    '@type': 'linkPreviewTypeChat';
    /**
Type of the chat.
*/
    type: InviteLinkChatType;
    /**
Photo of the chat; may be null.
*/
    photo: ChatPhoto;
    /**
True, if the link only creates join request.
*/
    creates_join_request?: boolean;
}
/**
The link is a link to a general file.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeDocument {
    '@type': 'linkPreviewTypeDocument';
    /**
The document description.
*/
    document: Document;
}
/**
The link is a link to an animation player.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeEmbeddedAnimationPlayer {
    '@type': 'linkPreviewTypeEmbeddedAnimationPlayer';
    /**
URL of the external animation player.
*/
    url: string;
    /**
Thumbnail of the animation; may be null if unknown.
*/
    thumbnail: Photo;
    /**
Duration of the animation, in seconds.
*/
    duration: number;
    /**
Expected width of the embedded player.
*/
    width: number;
    /**
Expected height of the embedded player.
*/
    height: number;
}
/**
The link is a link to an audio player.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeEmbeddedAudioPlayer {
    '@type': 'linkPreviewTypeEmbeddedAudioPlayer';
    /**
URL of the external audio player.
*/
    url: string;
    /**
Thumbnail of the audio; may be null if unknown.
*/
    thumbnail: Photo;
    /**
Duration of the audio, in seconds.
*/
    duration: number;
    /**
Expected width of the embedded player.
*/
    width: number;
    /**
Expected height of the embedded player.
*/
    height: number;
}
/**
The link is a link to a video player.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeEmbeddedVideoPlayer {
    '@type': 'linkPreviewTypeEmbeddedVideoPlayer';
    /**
URL of the external video player.
*/
    url: string;
    /**
Thumbnail of the video; may be null if unknown.
*/
    thumbnail: Photo;
    /**
Duration of the video, in seconds.
*/
    duration: number;
    /**
Expected width of the embedded player.
*/
    width: number;
    /**
Expected height of the embedded player.
*/
    height: number;
}
/**
The link is a link to an audio file.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeExternalAudio {
    '@type': 'linkPreviewTypeExternalAudio';
    /**
URL of the audio file.
*/
    url: string;
    /**
MIME type of the audio file.
*/
    mime_type: string;
    /**
Duration of the audio, in seconds; 0 if unknown.
*/
    duration: number;
}
/**
The link is a link to a video file.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeExternalVideo {
    '@type': 'linkPreviewTypeExternalVideo';
    /**
URL of the video file.
*/
    url: string;
    /**
MIME type of the video file.
*/
    mime_type: string;
    /**
Expected width of the video preview; 0 if unknown.
*/
    width: number;
    /**
Expected height of the video preview; 0 if unknown.
*/
    height: number;
    /**
Duration of the video, in seconds; 0 if unknown.
*/
    duration: number;
}
/**
The link is a link to an invoice.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeInvoice {
    '@type': 'linkPreviewTypeInvoice';
}
/**
The link is a link to a text or a poll Telegram message.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeMessage {
    '@type': 'linkPreviewTypeMessage';
}
/**
The link is a link to a photo.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypePhoto {
    '@type': 'linkPreviewTypePhoto';
    /**
The photo.
*/
    photo: Photo;
}
/**
The link is a link to a Telegram Premium gift code.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypePremiumGiftCode {
    '@type': 'linkPreviewTypePremiumGiftCode';
}
/**
The link is a link to a shareable chat folder.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeShareableChatFolder {
    '@type': 'linkPreviewTypeShareableChatFolder';
}
/**
The link is a link to a sticker.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeSticker {
    '@type': 'linkPreviewTypeSticker';
    /**
The sticker. It can be an arbitrary WEBP image and can have dimensions bigger than 512.
*/
    sticker: Sticker;
}
/**
The link is a link to a sticker set.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeStickerSet {
    '@type': 'linkPreviewTypeStickerSet';
    /**
Up to 4 stickers from the sticker set.
*/
    stickers: Sticker[];
}
/**
The link is a link to a story. Link preview description is unavailable.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeStory {
    '@type': 'linkPreviewTypeStory';
    /**
The identifier of the chat that posted the story.
*/
    story_sender_chat_id: number;
    /**
Story identifier.
*/
    story_id: number;
}
/**
The link is a link to boost a supergroup chat.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeSupergroupBoost {
    '@type': 'linkPreviewTypeSupergroupBoost';
    /**
Photo of the chat; may be null.
*/
    photo: ChatPhoto;
}
/**
The link is a link to a cloud theme. TDLib has no theme support yet.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeTheme {
    '@type': 'linkPreviewTypeTheme';
    /**
The list of files with theme description.
*/
    documents: Document[];
    /**
Settings for the cloud theme; may be null if unknown.
*/
    settings: ThemeSettings;
}
/**
The link preview type is unsupported yet.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeUnsupported {
    '@type': 'linkPreviewTypeUnsupported';
}
/**
The link is a link to an upgraded gift.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeUpgradedGift {
    '@type': 'linkPreviewTypeUpgradedGift';
    /**
The gift.
*/
    gift: UpgradedGift;
}
/**
The link is a link to a user.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeUser {
    '@type': 'linkPreviewTypeUser';
    /**
Photo of the user; may be null if none.
*/
    photo: ChatPhoto;
    /**
True, if the user is a bot.
*/
    is_bot?: boolean;
}
/**
The link is a link to a video.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeVideo {
    '@type': 'linkPreviewTypeVideo';
    /**
The video description.
*/
    video: Video;
    /**
Cover of the video; may be null if none.
*/
    cover: Photo;
    /**
Timestamp from which the video playing must start, in seconds.
*/
    start_timestamp: number;
}
/**
The link is a link to a video chat.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeVideoChat {
    '@type': 'linkPreviewTypeVideoChat';
    /**
Photo of the chat with the video chat; may be null if none.
*/
    photo: ChatPhoto;
    /**
True, if the video chat is expected to be a live stream in a channel or a broadcast group.
*/
    is_live_stream?: boolean;
}
/**
The link is a link to a video note message.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeVideoNote {
    '@type': 'linkPreviewTypeVideoNote';
    /**
The video note.
*/
    video_note: VideoNote;
}
/**
The link is a link to a voice note message.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeVoiceNote {
    '@type': 'linkPreviewTypeVoiceNote';
    /**
The voice note.
*/
    voice_note: VoiceNote;
}
/**
The link is a link to a Web App.
Subtype of {@link LinkPreviewType}.
*/
export interface LinkPreviewTypeWebApp {
    '@type': 'linkPreviewTypeWebApp';
    /**
Web App photo; may be null if none.
*/
    photo: Photo;
}
/**
Describes a link preview.
*/
export interface LinkPreview {
    '@type': 'linkPreview';
    /**
Original URL of the link.
*/
    url: string;
    /**
URL to display.
*/
    display_url: string;
    /**
Short name of the site (e.g., Google Docs, App Store).
*/
    site_name: string;
    /**
Title of the content.
*/
    title: string;
    /**
Describes a link preview.
*/
    description: FormattedText;
    /**
Author of the content.
*/
    author: string;
    /**
Type of the link preview.
*/
    type: LinkPreviewType;
    /**
True, if size of media in the preview can be changed.
*/
    has_large_media?: boolean;
    /**
True, if large media preview must be shown; otherwise, the media preview must be shown small and only the first frame
must be shown for videos.
*/
    show_large_media?: boolean;
    /**
True, if media must be shown above link preview description; otherwise, the media must be shown below the description.
*/
    show_media_above_description?: boolean;
    /**
True, if there is no need to show an ordinary open URL confirmation, when opening the URL from the preview, because the
URL is shown in the message text in clear.
*/
    skip_confirmation?: boolean;
    /**
True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message
text.
*/
    show_above_text?: boolean;
    /**
Version of instant view (currently, can be 1 or 2) for the web page; 0 if none.
*/
    instant_view_version: number;
}
/**
Contains information about a country.
*/
export interface CountryInfo {
    '@type': 'countryInfo';
    /**
A two-letter ISO 3166-1 alpha-2 country code.
*/
    country_code: string;
    /**
Native name of the country.
*/
    name: string;
    /**
English name of the country.
*/
    english_name: string;
    /**
True, if the country must be hidden from the list of all countries.
*/
    is_hidden?: boolean;
    /**
List of country calling codes.
*/
    calling_codes: string[];
}
/**
Contains information about countries.
*/
export interface Countries {
    '@type': 'countries';
    /**
The list of countries.
*/
    countries: CountryInfo[];
}
/**
Contains information about a phone number.
*/
export interface PhoneNumberInfo {
    '@type': 'phoneNumberInfo';
    /**
Information about the country to which the phone number belongs; may be null.
*/
    country: CountryInfo;
    /**
The part of the phone number denoting country calling code or its part.
*/
    country_calling_code: string;
    /**
The phone number without country calling code formatted accordingly to local rules. Expected digits are returned as '-',
but even more digits might be entered by the user.
*/
    formatted_phone_number: string;
    /**
True, if the phone number was bought at https://fragment.com and isn't tied to a SIM card. Information about the phone
number can be received using getCollectibleItemInfo.
*/
    is_anonymous?: boolean;
}
/**
Describes a collectible item that can be purchased at https://fragment.com.
Subtype of {@link CollectibleItemType}.
*/
export interface CollectibleItemTypeUsername {
    '@type': 'collectibleItemTypeUsername';
    /**
The username.
*/
    username: string;
}
/**
A phone number.
Subtype of {@link CollectibleItemType}.
*/
export interface CollectibleItemTypePhoneNumber {
    '@type': 'collectibleItemTypePhoneNumber';
    /**
The phone number.
*/
    phone_number: string;
}
/**
Contains information about a collectible item and its last purchase.
*/
export interface CollectibleItemInfo {
    '@type': 'collectibleItemInfo';
    /**
Point in time (Unix timestamp) when the item was purchased.
*/
    purchase_date: number;
    /**
Currency for the paid amount.
*/
    currency: string;
    /**
The paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
Cryptocurrency used to pay for the item.
*/
    cryptocurrency: string;
    /**
The paid amount, in the smallest units of the cryptocurrency.
*/
    cryptocurrency_amount: string;
    /**
Individual URL for the item on https://fragment.com.
*/
    url: string;
}
/**
Describes an action associated with a bank card number.
*/
export interface BankCardActionOpenUrl {
    '@type': 'bankCardActionOpenUrl';
    /**
Action text.
*/
    text: string;
    /**
The URL to be opened.
*/
    url: string;
}
/**
Information about a bank card.
*/
export interface BankCardInfo {
    '@type': 'bankCardInfo';
    /**
Title of the bank card description.
*/
    title: string;
    /**
Actions that can be done with the bank card number.
*/
    actions: BankCardActionOpenUrl[];
}
/**
Describes an address.
*/
export interface Address {
    '@type': 'address';
    /**
A two-letter ISO 3166-1 alpha-2 country code.
*/
    country_code: string;
    /**
State, if applicable.
*/
    state: string;
    /**
City.
*/
    city: string;
    /**
First line of the address.
*/
    street_line1: string;
    /**
Second line of the address.
*/
    street_line2: string;
    /**
Address postal code.
*/
    postal_code: string;
}
/**
Describes an address of a location.
*/
export interface LocationAddress {
    '@type': 'locationAddress';
    /**
A two-letter ISO 3166-1 alpha-2 country code.
*/
    country_code: string;
    /**
State, if applicable; empty if unknown.
*/
    state: string;
    /**
City; empty if unknown.
*/
    city: string;
    /**
The address; empty if unknown.
*/
    street: string;
}
/**
Portion of the price of a product (e.g., "delivery cost", "tax amount").
*/
export interface LabeledPricePart {
    '@type': 'labeledPricePart';
    /**
Label for this portion of the product price.
*/
    label: string;
    /**
Currency amount in the smallest units of the currency.
*/
    amount: number;
}
/**
Product invoice.
*/
export interface Invoice {
    '@type': 'invoice';
    /**
ISO 4217 currency code.
*/
    currency: string;
    /**
A list of objects used to calculate the total price of the product.
*/
    price_parts: LabeledPricePart[];
    /**
The number of seconds between consecutive Telegram Star debiting for subscription invoices; 0 if the invoice doesn't
create subscription.
*/
    subscription_period: number;
    /**
The maximum allowed amount of tip in the smallest units of the currency.
*/
    max_tip_amount: number;
    /**
Suggested amounts of tip in the smallest units of the currency.
*/
    suggested_tip_amounts: number[];
    /**
An HTTP URL with terms of service for recurring payments. If non-empty, the invoice payment will result in recurring
payments and the user must accept the terms of service before allowed to pay.
*/
    recurring_payment_terms_of_service_url: string;
    /**
An HTTP URL with terms of service for non-recurring payments. If non-empty, then the user must accept the terms of
service before allowed to pay.
*/
    terms_of_service_url: string;
    /**
True, if the payment is a test payment.
*/
    is_test?: boolean;
    /**
True, if the user's name is needed for payment.
*/
    need_name?: boolean;
    /**
True, if the user's phone number is needed for payment.
*/
    need_phone_number?: boolean;
    /**
True, if the user's email address is needed for payment.
*/
    need_email_address?: boolean;
    /**
True, if the user's shipping address is needed for payment.
*/
    need_shipping_address?: boolean;
    /**
True, if the user's phone number will be sent to the provider.
*/
    send_phone_number_to_provider?: boolean;
    /**
True, if the user's email address will be sent to the provider.
*/
    send_email_address_to_provider?: boolean;
    /**
True, if the total price depends on the shipping method.
*/
    is_flexible?: boolean;
}
/**
Order information.
*/
export interface OrderInfo {
    '@type': 'orderInfo';
    /**
Name of the user.
*/
    name: string;
    /**
Phone number of the user.
*/
    phone_number: string;
    /**
Email address of the user.
*/
    email_address: string;
    /**
Shipping address for this order; may be null.
*/
    shipping_address: Address;
}
/**
One shipping option.
*/
export interface ShippingOption {
    '@type': 'shippingOption';
    /**
Shipping option identifier.
*/
    id: string;
    /**
Option title.
*/
    title: string;
    /**
A list of objects used to calculate the total shipping costs.
*/
    price_parts: LabeledPricePart[];
}
/**
Contains information about saved payment credentials.
*/
export interface SavedCredentials {
    '@type': 'savedCredentials';
    /**
Unique identifier of the saved credentials.
*/
    id: string;
    /**
Title of the saved credentials.
*/
    title: string;
}
/**
Contains information about the payment method chosen by the user.
Subtype of {@link InputCredentials}.
*/
export interface InputCredentialsSaved {
    '@type': 'inputCredentialsSaved';
    /**
Identifier of the saved credentials.
*/
    saved_credentials_id: string;
}
/**
Applies if a user enters new credentials on a payment provider website.
Subtype of {@link InputCredentials}.
*/
export interface InputCredentialsNew {
    '@type': 'inputCredentialsNew';
    /**
JSON-encoded data with the credential identifier from the payment provider.
*/
    data: string;
    /**
True, if the credential identifier can be saved on the server side.
*/
    allow_save?: boolean;
}
/**
Applies if a user enters new credentials using Apple Pay.
Subtype of {@link InputCredentials}.
*/
export interface InputCredentialsApplePay {
    '@type': 'inputCredentialsApplePay';
    /**
JSON-encoded data with the credential identifier.
*/
    data: string;
}
/**
Applies if a user enters new credentials using Google Pay.
Subtype of {@link InputCredentials}.
*/
export interface InputCredentialsGooglePay {
    '@type': 'inputCredentialsGooglePay';
    /**
JSON-encoded data with the credential identifier.
*/
    data: string;
}
/**
Contains information about a payment provider.
Subtype of {@link PaymentProvider}.
*/
export interface PaymentProviderSmartGlocal {
    '@type': 'paymentProviderSmartGlocal';
    /**
Public payment token.
*/
    public_token: string;
    /**
URL for sending card tokenization requests.
*/
    tokenize_url: string;
}
/**
Stripe payment provider.
Subtype of {@link PaymentProvider}.
*/
export interface PaymentProviderStripe {
    '@type': 'paymentProviderStripe';
    /**
Stripe API publishable key.
*/
    publishable_key: string;
    /**
True, if the user country must be provided.
*/
    need_country?: boolean;
    /**
True, if the user ZIP/postal code must be provided.
*/
    need_postal_code?: boolean;
    /**
True, if the cardholder name must be provided.
*/
    need_cardholder_name?: boolean;
}
/**
Some other payment provider, for which a web payment form must be shown.
Subtype of {@link PaymentProvider}.
*/
export interface PaymentProviderOther {
    '@type': 'paymentProviderOther';
    /**
Payment form URL.
*/
    url: string;
}
/**
Describes an additional payment option.
*/
export interface PaymentOption {
    '@type': 'paymentOption';
    /**
Title for the payment option.
*/
    title: string;
    /**
Payment form URL to be opened in a web view.
*/
    url: string;
}
/**
Describes type of payment form.
Subtype of {@link PaymentFormType}.
*/
export interface PaymentFormTypeRegular {
    '@type': 'paymentFormTypeRegular';
    /**
Full information about the invoice.
*/
    invoice: Invoice;
    /**
User identifier of the payment provider bot.
*/
    payment_provider_user_id: number;
    /**
Information about the payment provider.
*/
    payment_provider: PaymentProvider;
    /**
The list of additional payment options.
*/
    additional_payment_options: PaymentOption[];
    /**
Saved server-side order information; may be null.
*/
    saved_order_info: OrderInfo;
    /**
The list of saved payment credentials.
*/
    saved_credentials: SavedCredentials[];
    /**
True, if the user can choose to save credentials.
*/
    can_save_credentials?: boolean;
    /**
True, if the user will be able to save credentials, if sets up a 2-step verification password.
*/
    need_password?: boolean;
}
/**
The payment form is for a payment in Telegram Stars.
Subtype of {@link PaymentFormType}.
*/
export interface PaymentFormTypeStars {
    '@type': 'paymentFormTypeStars';
    /**
Number of Telegram Stars that will be paid.
*/
    star_count: number;
}
/**
The payment form is for a payment in Telegram Stars for subscription.
Subtype of {@link PaymentFormType}.
*/
export interface PaymentFormTypeStarSubscription {
    '@type': 'paymentFormTypeStarSubscription';
    /**
Information about subscription plan.
*/
    pricing: StarSubscriptionPricing;
}
/**
Contains information about an invoice payment form.
*/
export interface PaymentForm {
    '@type': 'paymentForm';
    /**
The payment form identifier.
*/
    id: string;
    /**
Type of the payment form.
*/
    type: PaymentFormType;
    /**
User identifier of the seller bot.
*/
    seller_bot_user_id: number;
    /**
Information about the product.
*/
    product_info: ProductInfo;
}
/**
Contains a temporary identifier of validated order information, which is stored for one hour, and the available shipping
options.
*/
export interface ValidatedOrderInfo {
    '@type': 'validatedOrderInfo';
    /**
Temporary identifier of the order information.
*/
    order_info_id: string;
    /**
Available shipping options.
*/
    shipping_options: ShippingOption[];
}
/**
Contains the result of a payment request.
*/
export interface PaymentResult {
    '@type': 'paymentResult';
    /**
True, if the payment request was successful; otherwise, the verification_url will be non-empty.
*/
    success?: boolean;
    /**
URL for additional payment credentials verification.
*/
    verification_url: string;
}
/**
Describes type of successful payment.
Subtype of {@link PaymentReceiptType}.
*/
export interface PaymentReceiptTypeRegular {
    '@type': 'paymentReceiptTypeRegular';
    /**
User identifier of the payment provider bot.
*/
    payment_provider_user_id: number;
    /**
Information about the invoice.
*/
    invoice: Invoice;
    /**
Order information; may be null.
*/
    order_info: OrderInfo;
    /**
Chosen shipping option; may be null.
*/
    shipping_option: ShippingOption;
    /**
Title of the saved credentials chosen by the buyer.
*/
    credentials_title: string;
    /**
The amount of tip chosen by the buyer in the smallest units of the currency.
*/
    tip_amount: number;
}
/**
The payment was done using Telegram Stars.
Subtype of {@link PaymentReceiptType}.
*/
export interface PaymentReceiptTypeStars {
    '@type': 'paymentReceiptTypeStars';
    /**
Number of Telegram Stars that were paid.
*/
    star_count: number;
    /**
Unique identifier of the transaction that can be used to dispute it.
*/
    transaction_id: string;
}
/**
Contains information about a successful payment.
*/
export interface PaymentReceipt {
    '@type': 'paymentReceipt';
    /**
Information about the product.
*/
    product_info: ProductInfo;
    /**
Point in time (Unix timestamp) when the payment was made.
*/
    date: number;
    /**
User identifier of the seller bot.
*/
    seller_bot_user_id: number;
    /**
Type of the payment receipt.
*/
    type: PaymentReceiptType;
}
/**
Describes an invoice to process.
Subtype of {@link InputInvoice}.
*/
export interface InputInvoiceMessage {
    '@type': 'inputInvoiceMessage';
    /**
Chat identifier of the message.
*/
    chat_id: number;
    /**
Message identifier. Use messageProperties.can_be_paid to check whether the message can be used in the method.
*/
    message_id: number;
}
/**
An invoice from a link of the type internalLinkTypeInvoice.
Subtype of {@link InputInvoice}.
*/
export interface InputInvoiceName {
    '@type': 'inputInvoiceName';
    /**
Name of the invoice.
*/
    name: string;
}
/**
An invoice for a payment toward Telegram; must not be used in the in-store apps.
Subtype of {@link InputInvoice}.
*/
export interface InputInvoiceTelegram {
    '@type': 'inputInvoiceTelegram';
    /**
Transaction purpose.
*/
    purpose: TelegramPaymentPurpose;
}
/**
Describes a paid media.
Subtype of {@link PaidMedia}.
*/
export interface PaidMediaPreview {
    '@type': 'paidMediaPreview';
    /**
Media width; 0 if unknown.
*/
    width: number;
    /**
Media height; 0 if unknown.
*/
    height: number;
    /**
Media duration, in seconds; 0 if unknown.
*/
    duration: number;
    /**
Media minithumbnail; may be null.
*/
    minithumbnail: Minithumbnail;
}
/**
The media is a photo.
Subtype of {@link PaidMedia}.
*/
export interface PaidMediaPhoto {
    '@type': 'paidMediaPhoto';
    /**
The photo.
*/
    photo: Photo;
}
/**
The media is a video.
Subtype of {@link PaidMedia}.
*/
export interface PaidMediaVideo {
    '@type': 'paidMediaVideo';
    /**
The video.
*/
    video: Video;
    /**
Cover of the video; may be null if none.
*/
    cover: Photo;
    /**
Timestamp from which the video playing must start, in seconds.
*/
    start_timestamp: number;
}
/**
The media is unsupported.
Subtype of {@link PaidMedia}.
*/
export interface PaidMediaUnsupported {
    '@type': 'paidMediaUnsupported';
}
/**
Describes parameters of a giveaway.
*/
export interface GiveawayParameters {
    '@type': 'giveawayParameters';
    /**
Identifier of the supergroup or channel chat, which will be automatically boosted by the winners of the giveaway for
duration of the Telegram Premium subscription, or for the specified time. If the chat is a channel, then
can_post_messages right is required in the channel, otherwise, the user must be an administrator in the supergroup.
*/
    boosted_chat_id: number;
    /**
Identifiers of other supergroup or channel chats that must be subscribed by the users to be eligible for the giveaway.
There can be up to getOption("giveaway_additional_chat_count_max") additional chats.
*/
    additional_chat_ids: number[];
    /**
Point in time (Unix timestamp) when the giveaway is expected to be performed; must be
60-getOption("giveaway_duration_max") seconds in the future in scheduled giveaways.
*/
    winners_selection_date: number;
    /**
True, if only new members of the chats will be eligible for the giveaway.
*/
    only_new_members?: boolean;
    /**
True, if the list of winners of the giveaway will be available to everyone.
*/
    has_public_winners?: boolean;
    /**
The list of two-letter ISO 3166-1 alpha-2 codes of countries, users from which will be eligible for the giveaway. If
empty, then all users can participate in the giveaway. There can be up to getOption("giveaway_country_count_max") chosen
countries. Users with phone number that was bought at https://fragment.com can participate in any giveaway and the
country code "FT" must not be specified in the list.
*/
    country_codes: string[];
    /**
Additional description of the giveaway prize; 0-128 characters.
*/
    prize_description: string;
}
/**
File with the date it was uploaded.
*/
export interface DatedFile {
    '@type': 'datedFile';
    /**
The file.
*/
    file: File;
    /**
Point in time (Unix timestamp) when the file was uploaded.
*/
    date: number;
}
/**
Contains the type of Telegram Passport element.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypePersonalDetails {
    '@type': 'passportElementTypePersonalDetails';
}
/**
A Telegram Passport element containing the user's passport.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypePassport {
    '@type': 'passportElementTypePassport';
}
/**
A Telegram Passport element containing the user's driver license.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypeDriverLicense {
    '@type': 'passportElementTypeDriverLicense';
}
/**
A Telegram Passport element containing the user's identity card.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypeIdentityCard {
    '@type': 'passportElementTypeIdentityCard';
}
/**
A Telegram Passport element containing the user's internal passport.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypeInternalPassport {
    '@type': 'passportElementTypeInternalPassport';
}
/**
A Telegram Passport element containing the user's address.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypeAddress {
    '@type': 'passportElementTypeAddress';
}
/**
A Telegram Passport element containing the user's utility bill.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypeUtilityBill {
    '@type': 'passportElementTypeUtilityBill';
}
/**
A Telegram Passport element containing the user's bank statement.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypeBankStatement {
    '@type': 'passportElementTypeBankStatement';
}
/**
A Telegram Passport element containing the user's rental agreement.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypeRentalAgreement {
    '@type': 'passportElementTypeRentalAgreement';
}
/**
A Telegram Passport element containing the registration page of the user's passport.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypePassportRegistration {
    '@type': 'passportElementTypePassportRegistration';
}
/**
A Telegram Passport element containing the user's temporary registration.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypeTemporaryRegistration {
    '@type': 'passportElementTypeTemporaryRegistration';
}
/**
A Telegram Passport element containing the user's phone number.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypePhoneNumber {
    '@type': 'passportElementTypePhoneNumber';
}
/**
A Telegram Passport element containing the user's email address.
Subtype of {@link PassportElementType}.
*/
export interface PassportElementTypeEmailAddress {
    '@type': 'passportElementTypeEmailAddress';
}
/**
Represents a date according to the Gregorian calendar.
*/
export interface Date {
    '@type': 'date';
    /**
Day of the month; 1-31.
*/
    day: number;
    /**
Month; 1-12.
*/
    month: number;
    /**
Year; 1-9999.
*/
    year: number;
}
/**
Contains the user's personal details.
*/
export interface PersonalDetails {
    '@type': 'personalDetails';
    /**
First name of the user written in English; 1-255 characters.
*/
    first_name: string;
    /**
Middle name of the user written in English; 0-255 characters.
*/
    middle_name: string;
    /**
Last name of the user written in English; 1-255 characters.
*/
    last_name: string;
    /**
Native first name of the user; 1-255 characters.
*/
    native_first_name: string;
    /**
Native middle name of the user; 0-255 characters.
*/
    native_middle_name: string;
    /**
Native last name of the user; 1-255 characters.
*/
    native_last_name: string;
    /**
Birthdate of the user.
*/
    birthdate: Date;
    /**
Gender of the user, "male" or "female".
*/
    gender: string;
    /**
A two-letter ISO 3166-1 alpha-2 country code of the user's country.
*/
    country_code: string;
    /**
A two-letter ISO 3166-1 alpha-2 country code of the user's residence country.
*/
    residence_country_code: string;
}
/**
An identity document.
*/
export interface IdentityDocument {
    '@type': 'identityDocument';
    /**
Document number; 1-24 characters.
*/
    number: string;
    /**
Document expiration date; may be null if not applicable.
*/
    expiration_date: Date;
    /**
Front side of the document.
*/
    front_side: DatedFile;
    /**
Reverse side of the document; only for driver license and identity card; may be null.
*/
    reverse_side: DatedFile;
    /**
Selfie with the document; may be null.
*/
    selfie: DatedFile;
    /**
List of files containing a certified English translation of the document.
*/
    translation: DatedFile[];
}
/**
An identity document to be saved to Telegram Passport.
*/
export interface InputIdentityDocument {
    '@type': 'inputIdentityDocument';
    /**
Document number; 1-24 characters.
*/
    number: string;
    /**
Document expiration date; pass null if not applicable.
*/
    expiration_date: Date;
    /**
Front side of the document.
*/
    front_side: InputFile;
    /**
Reverse side of the document; only for driver license and identity card; pass null otherwise.
*/
    reverse_side: InputFile;
    /**
Selfie with the document; pass null if unavailable.
*/
    selfie: InputFile;
    /**
List of files containing a certified English translation of the document.
*/
    translation: InputFile[];
}
/**
A personal document, containing some information about a user.
*/
export interface PersonalDocument {
    '@type': 'personalDocument';
    /**
List of files containing the pages of the document.
*/
    files: DatedFile[];
    /**
List of files containing a certified English translation of the document.
*/
    translation: DatedFile[];
}
/**
A personal document to be saved to Telegram Passport.
*/
export interface InputPersonalDocument {
    '@type': 'inputPersonalDocument';
    /**
List of files containing the pages of the document.
*/
    files: InputFile[];
    /**
List of files containing a certified English translation of the document.
*/
    translation: InputFile[];
}
/**
Contains information about a Telegram Passport element.
Subtype of {@link PassportElement}.
*/
export interface PassportElementPersonalDetails {
    '@type': 'passportElementPersonalDetails';
    /**
Personal details of the user.
*/
    personal_details: PersonalDetails;
}
/**
A Telegram Passport element containing the user's passport.
Subtype of {@link PassportElement}.
*/
export interface PassportElementPassport {
    '@type': 'passportElementPassport';
    /**
Passport.
*/
    passport: IdentityDocument;
}
/**
A Telegram Passport element containing the user's driver license.
Subtype of {@link PassportElement}.
*/
export interface PassportElementDriverLicense {
    '@type': 'passportElementDriverLicense';
    /**
Driver license.
*/
    driver_license: IdentityDocument;
}
/**
A Telegram Passport element containing the user's identity card.
Subtype of {@link PassportElement}.
*/
export interface PassportElementIdentityCard {
    '@type': 'passportElementIdentityCard';
    /**
Identity card.
*/
    identity_card: IdentityDocument;
}
/**
A Telegram Passport element containing the user's internal passport.
Subtype of {@link PassportElement}.
*/
export interface PassportElementInternalPassport {
    '@type': 'passportElementInternalPassport';
    /**
Internal passport.
*/
    internal_passport: IdentityDocument;
}
/**
A Telegram Passport element containing the user's address.
Subtype of {@link PassportElement}.
*/
export interface PassportElementAddress {
    '@type': 'passportElementAddress';
    /**
Address.
*/
    address: Address;
}
/**
A Telegram Passport element containing the user's utility bill.
Subtype of {@link PassportElement}.
*/
export interface PassportElementUtilityBill {
    '@type': 'passportElementUtilityBill';
    /**
Utility bill.
*/
    utility_bill: PersonalDocument;
}
/**
A Telegram Passport element containing the user's bank statement.
Subtype of {@link PassportElement}.
*/
export interface PassportElementBankStatement {
    '@type': 'passportElementBankStatement';
    /**
Bank statement.
*/
    bank_statement: PersonalDocument;
}
/**
A Telegram Passport element containing the user's rental agreement.
Subtype of {@link PassportElement}.
*/
export interface PassportElementRentalAgreement {
    '@type': 'passportElementRentalAgreement';
    /**
Rental agreement.
*/
    rental_agreement: PersonalDocument;
}
/**
A Telegram Passport element containing the user's passport registration pages.
Subtype of {@link PassportElement}.
*/
export interface PassportElementPassportRegistration {
    '@type': 'passportElementPassportRegistration';
    /**
Passport registration pages.
*/
    passport_registration: PersonalDocument;
}
/**
A Telegram Passport element containing the user's temporary registration.
Subtype of {@link PassportElement}.
*/
export interface PassportElementTemporaryRegistration {
    '@type': 'passportElementTemporaryRegistration';
    /**
Temporary registration.
*/
    temporary_registration: PersonalDocument;
}
/**
A Telegram Passport element containing the user's phone number.
Subtype of {@link PassportElement}.
*/
export interface PassportElementPhoneNumber {
    '@type': 'passportElementPhoneNumber';
    /**
Phone number.
*/
    phone_number: string;
}
/**
A Telegram Passport element containing the user's email address.
Subtype of {@link PassportElement}.
*/
export interface PassportElementEmailAddress {
    '@type': 'passportElementEmailAddress';
    /**
Email address.
*/
    email_address: string;
}
/**
Contains information about a Telegram Passport element to be saved.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementPersonalDetails {
    '@type': 'inputPassportElementPersonalDetails';
    /**
Personal details of the user.
*/
    personal_details: PersonalDetails;
}
/**
A Telegram Passport element to be saved containing the user's passport.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementPassport {
    '@type': 'inputPassportElementPassport';
    /**
The passport to be saved.
*/
    passport: InputIdentityDocument;
}
/**
A Telegram Passport element to be saved containing the user's driver license.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementDriverLicense {
    '@type': 'inputPassportElementDriverLicense';
    /**
The driver license to be saved.
*/
    driver_license: InputIdentityDocument;
}
/**
A Telegram Passport element to be saved containing the user's identity card.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementIdentityCard {
    '@type': 'inputPassportElementIdentityCard';
    /**
The identity card to be saved.
*/
    identity_card: InputIdentityDocument;
}
/**
A Telegram Passport element to be saved containing the user's internal passport.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementInternalPassport {
    '@type': 'inputPassportElementInternalPassport';
    /**
The internal passport to be saved.
*/
    internal_passport: InputIdentityDocument;
}
/**
A Telegram Passport element to be saved containing the user's address.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementAddress {
    '@type': 'inputPassportElementAddress';
    /**
The address to be saved.
*/
    address: Address;
}
/**
A Telegram Passport element to be saved containing the user's utility bill.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementUtilityBill {
    '@type': 'inputPassportElementUtilityBill';
    /**
The utility bill to be saved.
*/
    utility_bill: InputPersonalDocument;
}
/**
A Telegram Passport element to be saved containing the user's bank statement.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementBankStatement {
    '@type': 'inputPassportElementBankStatement';
    /**
The bank statement to be saved.
*/
    bank_statement: InputPersonalDocument;
}
/**
A Telegram Passport element to be saved containing the user's rental agreement.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementRentalAgreement {
    '@type': 'inputPassportElementRentalAgreement';
    /**
The rental agreement to be saved.
*/
    rental_agreement: InputPersonalDocument;
}
/**
A Telegram Passport element to be saved containing the user's passport registration.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementPassportRegistration {
    '@type': 'inputPassportElementPassportRegistration';
    /**
The passport registration page to be saved.
*/
    passport_registration: InputPersonalDocument;
}
/**
A Telegram Passport element to be saved containing the user's temporary registration.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementTemporaryRegistration {
    '@type': 'inputPassportElementTemporaryRegistration';
    /**
The temporary registration document to be saved.
*/
    temporary_registration: InputPersonalDocument;
}
/**
A Telegram Passport element to be saved containing the user's phone number.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementPhoneNumber {
    '@type': 'inputPassportElementPhoneNumber';
    /**
The phone number to be saved.
*/
    phone_number: string;
}
/**
A Telegram Passport element to be saved containing the user's email address.
Subtype of {@link InputPassportElement}.
*/
export interface InputPassportElementEmailAddress {
    '@type': 'inputPassportElementEmailAddress';
    /**
The email address to be saved.
*/
    email_address: string;
}
/**
Contains information about saved Telegram Passport elements.
*/
export interface PassportElements {
    '@type': 'passportElements';
    /**
Telegram Passport elements.
*/
    elements: PassportElement[];
}
/**
Contains the description of an error in a Telegram Passport element.
Subtype of {@link PassportElementErrorSource}.
*/
export interface PassportElementErrorSourceUnspecified {
    '@type': 'passportElementErrorSourceUnspecified';
}
/**
One of the data fields contains an error. The error will be considered resolved when the value of the field changes.
Subtype of {@link PassportElementErrorSource}.
*/
export interface PassportElementErrorSourceDataField {
    '@type': 'passportElementErrorSourceDataField';
    /**
Field name.
*/
    field_name: string;
}
/**
The front side of the document contains an error. The error will be considered resolved when the file with the front
side changes.
Subtype of {@link PassportElementErrorSource}.
*/
export interface PassportElementErrorSourceFrontSide {
    '@type': 'passportElementErrorSourceFrontSide';
}
/**
The reverse side of the document contains an error. The error will be considered resolved when the file with the reverse
side changes.
Subtype of {@link PassportElementErrorSource}.
*/
export interface PassportElementErrorSourceReverseSide {
    '@type': 'passportElementErrorSourceReverseSide';
}
/**
The selfie with the document contains an error. The error will be considered resolved when the file with the selfie
changes.
Subtype of {@link PassportElementErrorSource}.
*/
export interface PassportElementErrorSourceSelfie {
    '@type': 'passportElementErrorSourceSelfie';
}
/**
One of files with the translation of the document contains an error. The error will be considered resolved when the file
changes.
Subtype of {@link PassportElementErrorSource}.
*/
export interface PassportElementErrorSourceTranslationFile {
    '@type': 'passportElementErrorSourceTranslationFile';
    /**
Index of a file with the error.
*/
    file_index: number;
}
/**
The translation of the document contains an error. The error will be considered resolved when the list of translation
files changes.
Subtype of {@link PassportElementErrorSource}.
*/
export interface PassportElementErrorSourceTranslationFiles {
    '@type': 'passportElementErrorSourceTranslationFiles';
}
/**
The file contains an error. The error will be considered resolved when the file changes.
Subtype of {@link PassportElementErrorSource}.
*/
export interface PassportElementErrorSourceFile {
    '@type': 'passportElementErrorSourceFile';
    /**
Index of a file with the error.
*/
    file_index: number;
}
/**
The list of attached files contains an error. The error will be considered resolved when the list of files changes.
Subtype of {@link PassportElementErrorSource}.
*/
export interface PassportElementErrorSourceFiles {
    '@type': 'passportElementErrorSourceFiles';
}
/**
Contains the description of an error in a Telegram Passport element.
*/
export interface PassportElementError {
    '@type': 'passportElementError';
    /**
Type of the Telegram Passport element which has the error.
*/
    type: PassportElementType;
    /**
Error message.
*/
    message: string;
    /**
Error source.
*/
    source: PassportElementErrorSource;
}
/**
Contains information about a Telegram Passport element that was requested by a service.
*/
export interface PassportSuitableElement {
    '@type': 'passportSuitableElement';
    /**
Type of the element.
*/
    type: PassportElementType;
    /**
True, if a selfie is required with the identity document.
*/
    is_selfie_required?: boolean;
    /**
True, if a certified English translation is required with the document.
*/
    is_translation_required?: boolean;
    /**
True, if personal details must include the user's name in the language of their country of residence.
*/
    is_native_name_required?: boolean;
}
/**
Contains a description of the required Telegram Passport element that was requested by a service.
*/
export interface PassportRequiredElement {
    '@type': 'passportRequiredElement';
    /**
List of Telegram Passport elements any of which is enough to provide.
*/
    suitable_elements: PassportSuitableElement[];
}
/**
Contains information about a Telegram Passport authorization form that was requested.
*/
export interface PassportAuthorizationForm {
    '@type': 'passportAuthorizationForm';
    /**
Unique identifier of the authorization form.
*/
    id: number;
    /**
Telegram Passport elements that must be provided to complete the form.
*/
    required_elements: PassportRequiredElement[];
    /**
URL for the privacy policy of the service; may be empty.
*/
    privacy_policy_url: string;
}
/**
Contains information about a Telegram Passport elements and corresponding errors.
*/
export interface PassportElementsWithErrors {
    '@type': 'passportElementsWithErrors';
    /**
Telegram Passport elements.
*/
    elements: PassportElement[];
    /**
Errors in the elements that are already available.
*/
    errors: PassportElementError[];
}
/**
Contains encrypted Telegram Passport data credentials.
*/
export interface EncryptedCredentials {
    '@type': 'encryptedCredentials';
    /**
The encrypted credentials.
*/
    data: string;
    /**
The decrypted data hash.
*/
    hash: string;
    /**
Secret for data decryption, encrypted with the service's public key.
*/
    secret: string;
}
/**
Contains information about an encrypted Telegram Passport element; for bots only.
*/
export interface EncryptedPassportElement {
    '@type': 'encryptedPassportElement';
    /**
Type of Telegram Passport element.
*/
    type: PassportElementType;
    /**
Encrypted JSON-encoded data about the user.
*/
    data: string;
    /**
The front side of an identity document.
*/
    front_side: DatedFile;
    /**
The reverse side of an identity document; may be null.
*/
    reverse_side: DatedFile;
    /**
Selfie with the document; may be null.
*/
    selfie: DatedFile;
    /**
List of files containing a certified English translation of the document.
*/
    translation: DatedFile[];
    /**
List of attached files.
*/
    files: DatedFile[];
    /**
Unencrypted data, phone number or email address.
*/
    value: string;
    /**
Hash of the entire element.
*/
    hash: string;
}
/**
Contains the description of an error in a Telegram Passport element; for bots only.
Subtype of {@link InputPassportElementErrorSource}.
*/
export interface InputPassportElementErrorSourceUnspecified {
    '@type': 'inputPassportElementErrorSourceUnspecified';
    /**
Current hash of the entire element.
*/
    element_hash: string;
}
/**
A data field contains an error. The error is considered resolved when the field's value changes.
Subtype of {@link InputPassportElementErrorSource}.
*/
export interface InputPassportElementErrorSourceDataField {
    '@type': 'inputPassportElementErrorSourceDataField';
    /**
Field name.
*/
    field_name: string;
    /**
Current data hash.
*/
    data_hash: string;
}
/**
The front side of the document contains an error. The error is considered resolved when the file with the front side of
the document changes.
Subtype of {@link InputPassportElementErrorSource}.
*/
export interface InputPassportElementErrorSourceFrontSide {
    '@type': 'inputPassportElementErrorSourceFrontSide';
    /**
Current hash of the file containing the front side.
*/
    file_hash: string;
}
/**
The reverse side of the document contains an error. The error is considered resolved when the file with the reverse side
of the document changes.
Subtype of {@link InputPassportElementErrorSource}.
*/
export interface InputPassportElementErrorSourceReverseSide {
    '@type': 'inputPassportElementErrorSourceReverseSide';
    /**
Current hash of the file containing the reverse side.
*/
    file_hash: string;
}
/**
The selfie contains an error. The error is considered resolved when the file with the selfie changes.
Subtype of {@link InputPassportElementErrorSource}.
*/
export interface InputPassportElementErrorSourceSelfie {
    '@type': 'inputPassportElementErrorSourceSelfie';
    /**
Current hash of the file containing the selfie.
*/
    file_hash: string;
}
/**
One of the files containing the translation of the document contains an error. The error is considered resolved when the
file with the translation changes.
Subtype of {@link InputPassportElementErrorSource}.
*/
export interface InputPassportElementErrorSourceTranslationFile {
    '@type': 'inputPassportElementErrorSourceTranslationFile';
    /**
Current hash of the file containing the translation.
*/
    file_hash: string;
}
/**
The translation of the document contains an error. The error is considered resolved when the list of files changes.
Subtype of {@link InputPassportElementErrorSource}.
*/
export interface InputPassportElementErrorSourceTranslationFiles {
    '@type': 'inputPassportElementErrorSourceTranslationFiles';
    /**
Current hashes of all files with the translation.
*/
    file_hashes: string[];
}
/**
The file contains an error. The error is considered resolved when the file changes.
Subtype of {@link InputPassportElementErrorSource}.
*/
export interface InputPassportElementErrorSourceFile {
    '@type': 'inputPassportElementErrorSourceFile';
    /**
Current hash of the file which has the error.
*/
    file_hash: string;
}
/**
The list of attached files contains an error. The error is considered resolved when the file list changes.
Subtype of {@link InputPassportElementErrorSource}.
*/
export interface InputPassportElementErrorSourceFiles {
    '@type': 'inputPassportElementErrorSourceFiles';
    /**
Current hashes of all attached files.
*/
    file_hashes: string[];
}
/**
Contains the description of an error in a Telegram Passport element; for bots only.
*/
export interface InputPassportElementError {
    '@type': 'inputPassportElementError';
    /**
Type of Telegram Passport element that has the error.
*/
    type: PassportElementType;
    /**
Error message.
*/
    message: string;
    /**
Error source.
*/
    source: InputPassportElementErrorSource;
}
/**
Contains the content of a message.
Subtype of {@link MessageContent}.
*/
export interface MessageText {
    '@type': 'messageText';
    /**
Text of the message.
*/
    text: FormattedText;
    /**
A link preview attached to the message; may be null.
*/
    link_preview: LinkPreview;
    /**
Options which were used for generation of the link preview; may be null if default options were used.
*/
    link_preview_options: LinkPreviewOptions;
}
/**
An animation message (GIF-style).
Subtype of {@link MessageContent}.
*/
export interface MessageAnimation {
    '@type': 'messageAnimation';
    /**
The animation description.
*/
    animation: Animation;
    /**
Animation caption.
*/
    caption: FormattedText;
    /**
True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation.
*/
    show_caption_above_media?: boolean;
    /**
True, if the animation preview must be covered by a spoiler animation.
*/
    has_spoiler?: boolean;
    /**
True, if the animation thumbnail must be blurred and the animation must be shown only while tapped.
*/
    is_secret?: boolean;
}
/**
An audio message.
Subtype of {@link MessageContent}.
*/
export interface MessageAudio {
    '@type': 'messageAudio';
    /**
The audio description.
*/
    audio: Audio;
    /**
Audio caption.
*/
    caption: FormattedText;
}
/**
A document message (general file).
Subtype of {@link MessageContent}.
*/
export interface MessageDocument {
    '@type': 'messageDocument';
    /**
The document description.
*/
    document: Document;
    /**
Document caption.
*/
    caption: FormattedText;
}
/**
A message with paid media.
Subtype of {@link MessageContent}.
*/
export interface MessagePaidMedia {
    '@type': 'messagePaidMedia';
    /**
Number of Telegram Stars needed to buy access to the media in the message.
*/
    star_count: number;
    /**
Information about the media.
*/
    media: PaidMedia[];
    /**
Media caption.
*/
    caption: FormattedText;
    /**
True, if the caption must be shown above the media; otherwise, the caption must be shown below the media.
*/
    show_caption_above_media?: boolean;
}
/**
A photo message.
Subtype of {@link MessageContent}.
*/
export interface MessagePhoto {
    '@type': 'messagePhoto';
    /**
The photo.
*/
    photo: Photo;
    /**
Photo caption.
*/
    caption: FormattedText;
    /**
True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo.
*/
    show_caption_above_media?: boolean;
    /**
True, if the photo preview must be covered by a spoiler animation.
*/
    has_spoiler?: boolean;
    /**
True, if the photo must be blurred and must be shown only while tapped.
*/
    is_secret?: boolean;
}
/**
A sticker message.
Subtype of {@link MessageContent}.
*/
export interface MessageSticker {
    '@type': 'messageSticker';
    /**
The sticker description.
*/
    sticker: Sticker;
    /**
True, if premium animation of the sticker must be played.
*/
    is_premium?: boolean;
}
/**
A video message.
Subtype of {@link MessageContent}.
*/
export interface MessageVideo {
    '@type': 'messageVideo';
    /**
The video description.
*/
    video: Video;
    /**
Alternative qualities of the video.
*/
    alternative_videos: AlternativeVideo[];
    /**
Cover of the video; may be null if none.
*/
    cover: Photo;
    /**
Timestamp from which the video playing must start, in seconds.
*/
    start_timestamp: number;
    /**
Video caption.
*/
    caption: FormattedText;
    /**
True, if the caption must be shown above the video; otherwise, the caption must be shown below the video.
*/
    show_caption_above_media?: boolean;
    /**
True, if the video preview must be covered by a spoiler animation.
*/
    has_spoiler?: boolean;
    /**
True, if the video thumbnail must be blurred and the video must be shown only while tapped.
*/
    is_secret?: boolean;
}
/**
A video note message.
Subtype of {@link MessageContent}.
*/
export interface MessageVideoNote {
    '@type': 'messageVideoNote';
    /**
The video note description.
*/
    video_note: VideoNote;
    /**
True, if at least one of the recipients has viewed the video note.
*/
    is_viewed?: boolean;
    /**
True, if the video note thumbnail must be blurred and the video note must be shown only while tapped.
*/
    is_secret?: boolean;
}
/**
A voice note message.
Subtype of {@link MessageContent}.
*/
export interface MessageVoiceNote {
    '@type': 'messageVoiceNote';
    /**
The voice note description.
*/
    voice_note: VoiceNote;
    /**
Voice note caption.
*/
    caption: FormattedText;
    /**
True, if at least one of the recipients has listened to the voice note.
*/
    is_listened?: boolean;
}
/**
A self-destructed photo message.
Subtype of {@link MessageContent}.
*/
export interface MessageExpiredPhoto {
    '@type': 'messageExpiredPhoto';
}
/**
A self-destructed video message.
Subtype of {@link MessageContent}.
*/
export interface MessageExpiredVideo {
    '@type': 'messageExpiredVideo';
}
/**
A self-destructed video note message.
Subtype of {@link MessageContent}.
*/
export interface MessageExpiredVideoNote {
    '@type': 'messageExpiredVideoNote';
}
/**
A self-destructed voice note message.
Subtype of {@link MessageContent}.
*/
export interface MessageExpiredVoiceNote {
    '@type': 'messageExpiredVoiceNote';
}
/**
A message with a location.
Subtype of {@link MessageContent}.
*/
export interface MessageLocation {
    '@type': 'messageLocation';
    /**
The location description.
*/
    location: Location;
    /**
Time relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location
can be updated forever.
*/
    live_period: number;
    /**
Left time for which the location can be updated, in seconds. If 0, then the location can't be updated anymore. The
update updateMessageContent is not sent when this field changes.
*/
    expires_in: number;
    /**
For live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown.
*/
    heading: number;
    /**
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the
notification is disabled. Available only to the message sender.
*/
    proximity_alert_radius: number;
}
/**
A message with information about a venue.
Subtype of {@link MessageContent}.
*/
export interface MessageVenue {
    '@type': 'messageVenue';
    /**
The venue description.
*/
    venue: Venue;
}
/**
A message with a user contact.
Subtype of {@link MessageContent}.
*/
export interface MessageContact {
    '@type': 'messageContact';
    /**
The contact description.
*/
    contact: Contact;
}
/**
A message with an animated emoji.
Subtype of {@link MessageContent}.
*/
export interface MessageAnimatedEmoji {
    '@type': 'messageAnimatedEmoji';
    /**
The animated emoji.
*/
    animated_emoji: AnimatedEmoji;
    /**
The corresponding emoji.
*/
    emoji: string;
}
/**
A dice message. The dice value is randomly generated by the server.
Subtype of {@link MessageContent}.
*/
export interface MessageDice {
    '@type': 'messageDice';
    /**
The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be
sent when the sticker became known.
*/
    initial_state: DiceStickers;
    /**
The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be
sent when the sticker became known.
*/
    final_state: DiceStickers;
    /**
Emoji on which the dice throw animation is based.
*/
    emoji: string;
    /**
The dice value. If the value is 0, the dice don't have final state yet.
*/
    value: number;
    /**
Number of frame after which a success animation like a shower of confetti needs to be shown on
updateMessageSendSucceeded.
*/
    success_animation_frame_number: number;
}
/**
A message with a game.
Subtype of {@link MessageContent}.
*/
export interface MessageGame {
    '@type': 'messageGame';
    /**
The game description.
*/
    game: Game;
}
/**
A message with a poll.
Subtype of {@link MessageContent}.
*/
export interface MessagePoll {
    '@type': 'messagePoll';
    /**
The poll description.
*/
    poll: Poll;
}
/**
A message with a forwarded story.
Subtype of {@link MessageContent}.
*/
export interface MessageStory {
    '@type': 'messageStory';
    /**
Identifier of the chat that posted the story.
*/
    story_sender_chat_id: number;
    /**
Story identifier.
*/
    story_id: number;
    /**
True, if the story was automatically forwarded because of a mention of the user.
*/
    via_mention?: boolean;
}
/**
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice.
Subtype of {@link MessageContent}.
*/
export interface MessageInvoice {
    '@type': 'messageInvoice';
    /**
Information about the product.
*/
    product_info: ProductInfo;
    /**
Currency for the product price.
*/
    currency: string;
    /**
Product total price in the smallest units of the currency.
*/
    total_amount: number;
    /**
Unique invoice bot start_parameter to be passed to getInternalLink.
*/
    start_parameter: string;
    /**
True, if the invoice is a test invoice.
*/
    is_test?: boolean;
    /**
True, if the shipping address must be specified.
*/
    need_shipping_address?: boolean;
    /**
The identifier of the message with the receipt, after the product has been purchased.
*/
    receipt_message_id: number;
    /**
Extended media attached to the invoice; may be null if none.
*/
    paid_media: PaidMedia;
    /**
Extended media caption; may be null if none.
*/
    paid_media_caption: FormattedText;
}
/**
A message with information about an ended call.
Subtype of {@link MessageContent}.
*/
export interface MessageCall {
    '@type': 'messageCall';
    /**
True, if the call was a video call.
*/
    is_video?: boolean;
    /**
Reason why the call was discarded.
*/
    discard_reason: CallDiscardReason;
    /**
Call duration, in seconds.
*/
    duration: number;
}
/**
A new video chat was scheduled.
Subtype of {@link MessageContent}.
*/
export interface MessageVideoChatScheduled {
    '@type': 'messageVideoChatScheduled';
    /**
Identifier of the video chat. The video chat can be received through the method getGroupCall.
*/
    group_call_id: number;
    /**
Point in time (Unix timestamp) when the group call is expected to be started by an administrator.
*/
    start_date: number;
}
/**
A newly created video chat.
Subtype of {@link MessageContent}.
*/
export interface MessageVideoChatStarted {
    '@type': 'messageVideoChatStarted';
    /**
Identifier of the video chat. The video chat can be received through the method getGroupCall.
*/
    group_call_id: number;
}
/**
A message with information about an ended video chat.
Subtype of {@link MessageContent}.
*/
export interface MessageVideoChatEnded {
    '@type': 'messageVideoChatEnded';
    /**
Call duration, in seconds.
*/
    duration: number;
}
/**
A message with information about an invitation to a video chat.
Subtype of {@link MessageContent}.
*/
export interface MessageInviteVideoChatParticipants {
    '@type': 'messageInviteVideoChatParticipants';
    /**
Identifier of the video chat. The video chat can be received through the method getGroupCall.
*/
    group_call_id: number;
    /**
Invited user identifiers.
*/
    user_ids: number[];
}
/**
A newly created basic group.
Subtype of {@link MessageContent}.
*/
export interface MessageBasicGroupChatCreate {
    '@type': 'messageBasicGroupChatCreate';
    /**
Title of the basic group.
*/
    title: string;
    /**
User identifiers of members in the basic group.
*/
    member_user_ids: number[];
}
/**
A newly created supergroup or channel.
Subtype of {@link MessageContent}.
*/
export interface MessageSupergroupChatCreate {
    '@type': 'messageSupergroupChatCreate';
    /**
Title of the supergroup or channel.
*/
    title: string;
}
/**
An updated chat title.
Subtype of {@link MessageContent}.
*/
export interface MessageChatChangeTitle {
    '@type': 'messageChatChangeTitle';
    /**
New chat title.
*/
    title: string;
}
/**
An updated chat photo.
Subtype of {@link MessageContent}.
*/
export interface MessageChatChangePhoto {
    '@type': 'messageChatChangePhoto';
    /**
New chat photo.
*/
    photo: ChatPhoto;
}
/**
A deleted chat photo.
Subtype of {@link MessageContent}.
*/
export interface MessageChatDeletePhoto {
    '@type': 'messageChatDeletePhoto';
}
/**
New chat members were added.
Subtype of {@link MessageContent}.
*/
export interface MessageChatAddMembers {
    '@type': 'messageChatAddMembers';
    /**
User identifiers of the new members.
*/
    member_user_ids: number[];
}
/**
A new member joined the chat via an invite link.
Subtype of {@link MessageContent}.
*/
export interface MessageChatJoinByLink {
    '@type': 'messageChatJoinByLink';
}
/**
A new member was accepted to the chat by an administrator.
Subtype of {@link MessageContent}.
*/
export interface MessageChatJoinByRequest {
    '@type': 'messageChatJoinByRequest';
}
/**
A chat member was deleted.
Subtype of {@link MessageContent}.
*/
export interface MessageChatDeleteMember {
    '@type': 'messageChatDeleteMember';
    /**
User identifier of the deleted chat member.
*/
    user_id: number;
}
/**
A basic group was upgraded to a supergroup and was deactivated as the result.
Subtype of {@link MessageContent}.
*/
export interface MessageChatUpgradeTo {
    '@type': 'messageChatUpgradeTo';
    /**
Identifier of the supergroup to which the basic group was upgraded.
*/
    supergroup_id: number;
}
/**
A supergroup has been created from a basic group.
Subtype of {@link MessageContent}.
*/
export interface MessageChatUpgradeFrom {
    '@type': 'messageChatUpgradeFrom';
    /**
Title of the newly created supergroup.
*/
    title: string;
    /**
The identifier of the original basic group.
*/
    basic_group_id: number;
}
/**
A message has been pinned.
Subtype of {@link MessageContent}.
*/
export interface MessagePinMessage {
    '@type': 'messagePinMessage';
    /**
Identifier of the pinned message, can be an identifier of a deleted message or 0.
*/
    message_id: number;
}
/**
A screenshot of a message in the chat has been taken.
Subtype of {@link MessageContent}.
*/
export interface MessageScreenshotTaken {
    '@type': 'messageScreenshotTaken';
}
/**
A new background was set in the chat.
Subtype of {@link MessageContent}.
*/
export interface MessageChatSetBackground {
    '@type': 'messageChatSetBackground';
    /**
Identifier of the message with a previously set same background; 0 if none. Can be an identifier of a deleted message.
*/
    old_background_message_id: number;
    /**
The new background.
*/
    background: ChatBackground;
    /**
True, if the background was set only for self.
*/
    only_for_self?: boolean;
}
/**
A theme in the chat has been changed.
Subtype of {@link MessageContent}.
*/
export interface MessageChatSetTheme {
    '@type': 'messageChatSetTheme';
    /**
If non-empty, name of a new theme, set for the chat. Otherwise, chat theme was reset to the default one.
*/
    theme_name: string;
}
/**
The auto-delete or self-destruct timer for messages in the chat has been changed.
Subtype of {@link MessageContent}.
*/
export interface MessageChatSetMessageAutoDeleteTime {
    '@type': 'messageChatSetMessageAutoDeleteTime';
    /**
New value auto-delete or self-destruct time, in seconds; 0 if disabled.
*/
    message_auto_delete_time: number;
    /**
If not 0, a user identifier, which default setting was automatically applied.
*/
    from_user_id: number;
}
/**
The chat was boosted by the sender of the message.
Subtype of {@link MessageContent}.
*/
export interface MessageChatBoost {
    '@type': 'messageChatBoost';
    /**
Number of times the chat was boosted.
*/
    boost_count: number;
}
/**
A forum topic has been created.
Subtype of {@link MessageContent}.
*/
export interface MessageForumTopicCreated {
    '@type': 'messageForumTopicCreated';
    /**
Name of the topic.
*/
    name: string;
    /**
Icon of the topic.
*/
    icon: ForumTopicIcon;
}
/**
A forum topic has been edited.
Subtype of {@link MessageContent}.
*/
export interface MessageForumTopicEdited {
    '@type': 'messageForumTopicEdited';
    /**
If non-empty, the new name of the topic.
*/
    name: string;
    /**
True, if icon's custom_emoji_id is changed.
*/
    edit_icon_custom_emoji_id?: boolean;
    /**
New unique identifier of the custom emoji shown on the topic icon; 0 if none. Must be ignored if
edit_icon_custom_emoji_id is false.
*/
    icon_custom_emoji_id: string;
}
/**
A forum topic has been closed or opened.
Subtype of {@link MessageContent}.
*/
export interface MessageForumTopicIsClosedToggled {
    '@type': 'messageForumTopicIsClosedToggled';
    /**
True, if the topic was closed; otherwise, the topic was reopened.
*/
    is_closed?: boolean;
}
/**
A General forum topic has been hidden or unhidden.
Subtype of {@link MessageContent}.
*/
export interface MessageForumTopicIsHiddenToggled {
    '@type': 'messageForumTopicIsHiddenToggled';
    /**
True, if the topic was hidden; otherwise, the topic was unhidden.
*/
    is_hidden?: boolean;
}
/**
A profile photo was suggested to a user in a private chat.
Subtype of {@link MessageContent}.
*/
export interface MessageSuggestProfilePhoto {
    '@type': 'messageSuggestProfilePhoto';
    /**
The suggested chat photo. Use the method setProfilePhoto with inputChatPhotoPrevious to apply the photo.
*/
    photo: ChatPhoto;
}
/**
A non-standard action has happened in the chat.
Subtype of {@link MessageContent}.
*/
export interface MessageCustomServiceAction {
    '@type': 'messageCustomServiceAction';
    /**
Message text to be shown in the chat.
*/
    text: string;
}
/**
A new high score was achieved in a game.
Subtype of {@link MessageContent}.
*/
export interface MessageGameScore {
    '@type': 'messageGameScore';
    /**
Identifier of the message with the game, can be an identifier of a deleted message.
*/
    game_message_id: number;
    /**
Identifier of the game; may be different from the games presented in the message with the game.
*/
    game_id: string;
    /**
New score.
*/
    score: number;
}
/**
A payment has been sent to a bot or a business account.
Subtype of {@link MessageContent}.
*/
export interface MessagePaymentSuccessful {
    '@type': 'messagePaymentSuccessful';
    /**
Identifier of the chat, containing the corresponding invoice message.
*/
    invoice_chat_id: number;
    /**
Identifier of the message with the corresponding invoice; can be 0 or an identifier of a deleted message.
*/
    invoice_message_id: number;
    /**
Currency for the price of the product.
*/
    currency: string;
    /**
Total price for the product, in the smallest units of the currency.
*/
    total_amount: number;
    /**
Point in time (Unix timestamp) when the subscription will expire; 0 if unknown or the payment isn't recurring.
*/
    subscription_until_date: number;
    /**
True, if this is a recurring payment.
*/
    is_recurring?: boolean;
    /**
True, if this is the first recurring payment.
*/
    is_first_recurring?: boolean;
    /**
Name of the invoice; may be empty if unknown.
*/
    invoice_name: string;
}
/**
A payment has been received by the bot or the business account.
Subtype of {@link MessageContent}.
*/
export interface MessagePaymentSuccessfulBot {
    '@type': 'messagePaymentSuccessfulBot';
    /**
Currency for price of the product.
*/
    currency: string;
    /**
Total price for the product, in the smallest units of the currency.
*/
    total_amount: number;
    /**
Point in time (Unix timestamp) when the subscription will expire; 0 if unknown or the payment isn't recurring.
*/
    subscription_until_date: number;
    /**
True, if this is a recurring payment.
*/
    is_recurring?: boolean;
    /**
True, if this is the first recurring payment.
*/
    is_first_recurring?: boolean;
    /**
Invoice payload.
*/
    invoice_payload: string;
    /**
Identifier of the shipping option chosen by the user; may be empty if not applicable; for bots only.
*/
    shipping_option_id: string;
    /**
Information about the order; may be null; for bots only.
*/
    order_info: OrderInfo;
    /**
Telegram payment identifier.
*/
    telegram_payment_charge_id: string;
    /**
Provider payment identifier.
*/
    provider_payment_charge_id: string;
}
/**
A payment has been refunded.
Subtype of {@link MessageContent}.
*/
export interface MessagePaymentRefunded {
    '@type': 'messagePaymentRefunded';
    /**
Identifier of the previous owner of the Telegram Stars that refunds them.
*/
    owner_id: MessageSender;
    /**
Currency for the price of the product.
*/
    currency: string;
    /**
Total price for the product, in the smallest units of the currency.
*/
    total_amount: number;
    /**
Invoice payload; only for bots.
*/
    invoice_payload: string;
    /**
Telegram payment identifier.
*/
    telegram_payment_charge_id: string;
    /**
Provider payment identifier.
*/
    provider_payment_charge_id: string;
}
/**
Telegram Premium was gifted to a user.
Subtype of {@link MessageContent}.
*/
export interface MessageGiftedPremium {
    '@type': 'messageGiftedPremium';
    /**
The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous or is outgoing.
*/
    gifter_user_id: number;
    /**
The identifier of a user that received Telegram Premium; 0 if the gift is incoming.
*/
    receiver_user_id: number;
    /**
Message added to the gifted Telegram Premium by the sender.
*/
    text: FormattedText;
    /**
Currency for the paid amount.
*/
    currency: string;
    /**
The paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
Cryptocurrency used to pay for the gift; may be empty if none.
*/
    cryptocurrency: string;
    /**
The paid amount, in the smallest units of the cryptocurrency; 0 if none.
*/
    cryptocurrency_amount: string;
    /**
Number of months the Telegram Premium subscription will be active.
*/
    month_count: number;
    /**
A sticker to be shown in the message; may be null if unknown.
*/
    sticker: Sticker;
}
/**
A Telegram Premium gift code was created for the user.
Subtype of {@link MessageContent}.
*/
export interface MessagePremiumGiftCode {
    '@type': 'messagePremiumGiftCode';
    /**
Identifier of a chat or a user that created the gift code; may be null if unknown.
*/
    creator_id: MessageSender;
    /**
Message added to the gift.
*/
    text: FormattedText;
    /**
True, if the gift code was created for a giveaway.
*/
    is_from_giveaway?: boolean;
    /**
True, if the winner for the corresponding Telegram Premium subscription wasn't chosen.
*/
    is_unclaimed?: boolean;
    /**
Currency for the paid amount; empty if unknown.
*/
    currency: string;
    /**
The paid amount, in the smallest units of the currency; 0 if unknown.
*/
    amount: number;
    /**
Cryptocurrency used to pay for the gift; may be empty if none or unknown.
*/
    cryptocurrency: string;
    /**
The paid amount, in the smallest units of the cryptocurrency; 0 if unknown.
*/
    cryptocurrency_amount: string;
    /**
Number of months the Telegram Premium subscription will be active after code activation.
*/
    month_count: number;
    /**
A sticker to be shown in the message; may be null if unknown.
*/
    sticker: Sticker;
    /**
The gift code.
*/
    code: string;
}
/**
A giveaway was created for the chat. Use telegramPaymentPurposePremiumGiveaway, storePaymentPurposePremiumGiveaway,
telegramPaymentPurposeStarGiveaway, or storePaymentPurposeStarGiveaway to create a giveaway.
Subtype of {@link MessageContent}.
*/
export interface MessageGiveawayCreated {
    '@type': 'messageGiveawayCreated';
    /**
Number of Telegram Stars that will be shared by winners of the giveaway; 0 for Telegram Premium giveaways.
*/
    star_count: number;
}
/**
A giveaway.
Subtype of {@link MessageContent}.
*/
export interface MessageGiveaway {
    '@type': 'messageGiveaway';
    /**
Giveaway parameters.
*/
    parameters: GiveawayParameters;
    /**
Number of users which will receive Telegram Premium subscription gift codes.
*/
    winner_count: number;
    /**
Prize of the giveaway.
*/
    prize: GiveawayPrize;
    /**
A sticker to be shown in the message; may be null if unknown.
*/
    sticker: Sticker;
}
/**
A giveaway without public winners has been completed for the chat.
Subtype of {@link MessageContent}.
*/
export interface MessageGiveawayCompleted {
    '@type': 'messageGiveawayCompleted';
    /**
Identifier of the message with the giveaway; can be 0 if the message was deleted.
*/
    giveaway_message_id: number;
    /**
Number of winners in the giveaway.
*/
    winner_count: number;
    /**
True, if the giveaway is a Telegram Star giveaway.
*/
    is_star_giveaway?: boolean;
    /**
Number of undistributed prizes; for Telegram Premium giveaways only.
*/
    unclaimed_prize_count: number;
}
/**
A giveaway with public winners has been completed for the chat.
Subtype of {@link MessageContent}.
*/
export interface MessageGiveawayWinners {
    '@type': 'messageGiveawayWinners';
    /**
Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway.
*/
    boosted_chat_id: number;
    /**
Identifier of the message with the giveaway in the boosted chat.
*/
    giveaway_message_id: number;
    /**
Number of other chats that participated in the giveaway.
*/
    additional_chat_count: number;
    /**
Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in
parameters of the giveaway.
*/
    actual_winners_selection_date: number;
    /**
True, if only new members of the chats were eligible for the giveaway.
*/
    only_new_members?: boolean;
    /**
True, if the giveaway was canceled and was fully refunded.
*/
    was_refunded?: boolean;
    /**
Prize of the giveaway.
*/
    prize: GiveawayPrize;
    /**
Additional description of the giveaway prize.
*/
    prize_description: string;
    /**
Total number of winners in the giveaway.
*/
    winner_count: number;
    /**
Up to 100 user identifiers of the winners of the giveaway.
*/
    winner_user_ids: number[];
    /**
Number of undistributed prizes; for Telegram Premium giveaways only.
*/
    unclaimed_prize_count: number;
}
/**
Telegram Stars were gifted to a user.
Subtype of {@link MessageContent}.
*/
export interface MessageGiftedStars {
    '@type': 'messageGiftedStars';
    /**
The identifier of a user that gifted Telegram Stars; 0 if the gift was anonymous or is outgoing.
*/
    gifter_user_id: number;
    /**
The identifier of a user that received Telegram Stars; 0 if the gift is incoming.
*/
    receiver_user_id: number;
    /**
Currency for the paid amount.
*/
    currency: string;
    /**
The paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
Cryptocurrency used to pay for the gift; may be empty if none.
*/
    cryptocurrency: string;
    /**
The paid amount, in the smallest units of the cryptocurrency; 0 if none.
*/
    cryptocurrency_amount: string;
    /**
Number of Telegram Stars that were gifted.
*/
    star_count: number;
    /**
Identifier of the transaction for Telegram Stars purchase; for receiver only.
*/
    transaction_id: string;
    /**
A sticker to be shown in the message; may be null if unknown.
*/
    sticker: Sticker;
}
/**
A Telegram Stars were received by the current user from a giveaway.
Subtype of {@link MessageContent}.
*/
export interface MessageGiveawayPrizeStars {
    '@type': 'messageGiveawayPrizeStars';
    /**
Number of Telegram Stars that were received.
*/
    star_count: number;
    /**
Identifier of the transaction for Telegram Stars credit.
*/
    transaction_id: string;
    /**
Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway.
*/
    boosted_chat_id: number;
    /**
Identifier of the message with the giveaway in the boosted chat; can be 0 if the message was deleted.
*/
    giveaway_message_id: number;
    /**
True, if the corresponding winner wasn't chosen and the Telegram Stars were received by the owner of the boosted chat.
*/
    is_unclaimed?: boolean;
    /**
A sticker to be shown in the message; may be null if unknown.
*/
    sticker: Sticker;
}
/**
A regular gift was received or sent by the current user, or the current user was notified about a channel gift.
Subtype of {@link MessageContent}.
*/
export interface MessageGift {
    '@type': 'messageGift';
    /**
The gift.
*/
    gift: Gift;
    /**
Sender of the gift.
*/
    sender_id: MessageSender;
    /**
Unique identifier of the received gift for the current user; only for the receiver of the gift.
*/
    received_gift_id: string;
    /**
Message added to the gift.
*/
    text: FormattedText;
    /**
Number of Telegram Stars that can be claimed by the receiver instead of the regular gift; 0 if the gift can't be sold by
the receiver.
*/
    sell_star_count: number;
    /**
Number of Telegram Stars that were paid by the sender for the ability to upgrade the gift.
*/
    prepaid_upgrade_star_count: number;
    /**
True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
*/
    is_private?: boolean;
    /**
True, if the gift is displayed on the user's or the channel's profile page; only for the receiver of the gift.
*/
    is_saved?: boolean;
    /**
True, if the gift can be upgraded to a unique gift; only for the receiver of the gift.
*/
    can_be_upgraded?: boolean;
    /**
True, if the gift was converted to Telegram Stars; only for the receiver of the gift.
*/
    was_converted?: boolean;
    /**
True, if the gift was upgraded to a unique gift.
*/
    was_upgraded?: boolean;
    /**
True, if the gift was refunded and isn't available anymore.
*/
    was_refunded?: boolean;
    /**
Identifier of the corresponding upgraded gift; may be empty if unknown. Use getReceivedGift to get information about the
gift.
*/
    upgraded_received_gift_id: string;
}
/**
An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift.
Subtype of {@link MessageContent}.
*/
export interface MessageUpgradedGift {
    '@type': 'messageUpgradedGift';
    /**
The gift.
*/
    gift: UpgradedGift;
    /**
Sender of the gift; may be null for anonymous gifts.
*/
    sender_id: MessageSender;
    /**
Unique identifier of the received gift for the current user; only for the receiver of the gift.
*/
    received_gift_id: string;
    /**
True, if the gift was obtained by upgrading of a previously received gift; otherwise, this is a transferred gift.
*/
    is_upgrade?: boolean;
    /**
True, if the gift is displayed on the user's or the channel's profile page; only for the receiver of the gift.
*/
    is_saved?: boolean;
    /**
True, if the gift can be transferred to another owner; only for the receiver of the gift.
*/
    can_be_transferred?: boolean;
    /**
True, if the gift was transferred to another owner; only for the receiver of the gift.
*/
    was_transferred?: boolean;
    /**
Number of Telegram Stars that must be paid to transfer the upgraded gift; only for the receiver of the gift.
*/
    transfer_star_count: number;
    /**
Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; 0 if NFT export isn't
possible; only for the receiver of the gift.
*/
    export_date: number;
}
/**
A gift which purchase, upgrade or transfer were refunded.
Subtype of {@link MessageContent}.
*/
export interface MessageRefundedUpgradedGift {
    '@type': 'messageRefundedUpgradedGift';
    /**
The gift.
*/
    gift: Gift;
    /**
Sender of the gift.
*/
    sender_id: MessageSender;
    /**
True, if the gift was obtained by upgrading of a previously received gift.
*/
    is_upgrade?: boolean;
}
/**
A contact has registered with Telegram.
Subtype of {@link MessageContent}.
*/
export interface MessageContactRegistered {
    '@type': 'messageContactRegistered';
}
/**
The current user shared users, which were requested by the bot.
Subtype of {@link MessageContent}.
*/
export interface MessageUsersShared {
    '@type': 'messageUsersShared';
    /**
The shared users.
*/
    users: SharedUser[];
    /**
Identifier of the keyboard button with the request.
*/
    button_id: number;
}
/**
The current user shared a chat, which was requested by the bot.
Subtype of {@link MessageContent}.
*/
export interface MessageChatShared {
    '@type': 'messageChatShared';
    /**
The shared chat.
*/
    chat: SharedChat;
    /**
Identifier of the keyboard button with the request.
*/
    button_id: number;
}
/**
The user allowed the bot to send messages.
Subtype of {@link MessageContent}.
*/
export interface MessageBotWriteAccessAllowed {
    '@type': 'messageBotWriteAccessAllowed';
    /**
The reason why the bot was allowed to write messages.
*/
    reason: BotWriteAccessAllowReason;
}
/**
Data from a Web App has been sent to a bot.
Subtype of {@link MessageContent}.
*/
export interface MessageWebAppDataSent {
    '@type': 'messageWebAppDataSent';
    /**
Text of the keyboardButtonTypeWebApp button, which opened the Web App.
*/
    button_text: string;
}
/**
Data from a Web App has been received; for bots only.
Subtype of {@link MessageContent}.
*/
export interface MessageWebAppDataReceived {
    '@type': 'messageWebAppDataReceived';
    /**
Text of the keyboardButtonTypeWebApp button, which opened the Web App.
*/
    button_text: string;
    /**
The data.
*/
    data: string;
}
/**
Telegram Passport data has been sent to a bot.
Subtype of {@link MessageContent}.
*/
export interface MessagePassportDataSent {
    '@type': 'messagePassportDataSent';
    /**
List of Telegram Passport element types sent.
*/
    types: PassportElementType[];
}
/**
Telegram Passport data has been received; for bots only.
Subtype of {@link MessageContent}.
*/
export interface MessagePassportDataReceived {
    '@type': 'messagePassportDataReceived';
    /**
List of received Telegram Passport elements.
*/
    elements: EncryptedPassportElement[];
    /**
Encrypted data credentials.
*/
    credentials: EncryptedCredentials;
}
/**
A user in the chat came within proximity alert range.
Subtype of {@link MessageContent}.
*/
export interface MessageProximityAlertTriggered {
    '@type': 'messageProximityAlertTriggered';
    /**
The identifier of a user or chat that triggered the proximity alert.
*/
    traveler_id: MessageSender;
    /**
The identifier of a user or chat that subscribed for the proximity alert.
*/
    watcher_id: MessageSender;
    /**
The distance between the users.
*/
    distance: number;
}
/**
A message content that is not supported in the current TDLib version.
Subtype of {@link MessageContent}.
*/
export interface MessageUnsupported {
    '@type': 'messageUnsupported';
}
/**
Represents a part of the text which must be formatted differently.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeMention {
    '@type': 'textEntityTypeMention';
}
/**
A hashtag text, beginning with "#" and optionally containing a chat username at the end.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeHashtag {
    '@type': 'textEntityTypeHashtag';
}
/**
A cashtag text, beginning with "$", consisting of capital English letters (e.g., "$USD"), and optionally containing a
chat username at the end.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeCashtag {
    '@type': 'textEntityTypeCashtag';
}
/**
A bot command, beginning with "/".
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeBotCommand {
    '@type': 'textEntityTypeBotCommand';
}
/**
An HTTP URL.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeUrl {
    '@type': 'textEntityTypeUrl';
}
/**
An email address.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeEmailAddress {
    '@type': 'textEntityTypeEmailAddress';
}
/**
A phone number.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypePhoneNumber {
    '@type': 'textEntityTypePhoneNumber';
}
/**
A bank card number. The getBankCardInfo method can be used to get information about the bank card.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeBankCardNumber {
    '@type': 'textEntityTypeBankCardNumber';
}
/**
A bold text.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeBold {
    '@type': 'textEntityTypeBold';
}
/**
An italic text.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeItalic {
    '@type': 'textEntityTypeItalic';
}
/**
An underlined text.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeUnderline {
    '@type': 'textEntityTypeUnderline';
}
/**
A strikethrough text.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeStrikethrough {
    '@type': 'textEntityTypeStrikethrough';
}
/**
A spoiler text.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeSpoiler {
    '@type': 'textEntityTypeSpoiler';
}
/**
Text that must be formatted as if inside a code HTML tag.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeCode {
    '@type': 'textEntityTypeCode';
}
/**
Text that must be formatted as if inside a pre HTML tag.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypePre {
    '@type': 'textEntityTypePre';
}
/**
Text that must be formatted as if inside pre, and code HTML tags.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypePreCode {
    '@type': 'textEntityTypePreCode';
    /**
Programming language of the code; as defined by the sender.
*/
    language: string;
}
/**
Text that must be formatted as if inside a blockquote HTML tag; not supported in secret chats.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeBlockQuote {
    '@type': 'textEntityTypeBlockQuote';
}
/**
Text that must be formatted as if inside a blockquote HTML tag and collapsed by default to 3 lines with the ability to
show full text; not supported in secret chats.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeExpandableBlockQuote {
    '@type': 'textEntityTypeExpandableBlockQuote';
}
/**
A text description shown instead of a raw URL.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeTextUrl {
    '@type': 'textEntityTypeTextUrl';
    /**
HTTP or tg:// URL to be opened when the link is clicked.
*/
    url: string;
}
/**
A text shows instead of a raw mention of the user (e.g., when the user has no username).
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeMentionName {
    '@type': 'textEntityTypeMentionName';
    /**
Identifier of the mentioned user.
*/
    user_id: number;
}
/**
A custom emoji. The text behind a custom emoji must be an emoji. Only premium users can use premium custom emoji.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeCustomEmoji {
    '@type': 'textEntityTypeCustomEmoji';
    /**
Unique identifier of the custom emoji.
*/
    custom_emoji_id: string;
}
/**
A media timestamp.
Subtype of {@link TextEntityType}.
*/
export interface TextEntityTypeMediaTimestamp {
    '@type': 'textEntityTypeMediaTimestamp';
    /**
Timestamp from which a video/audio/video note/voice note/story playing must start, in seconds. The media can be in the
content or the link preview of the current message, or in the same places in the replied message.
*/
    media_timestamp: number;
}
/**
A thumbnail to be sent along with a file; must be in JPEG or WEBP format for stickers, and less than 200 KB in size.
*/
export interface InputThumbnail {
    '@type': 'inputThumbnail';
    /**
Thumbnail file to send. Sending thumbnails by file_id is currently not supported.
*/
    thumbnail: InputFile;
    /**
Thumbnail width, usually shouldn't exceed 320. Use 0 if unknown.
*/
    width: number;
    /**
Thumbnail height, usually shouldn't exceed 320. Use 0 if unknown.
*/
    height: number;
}
/**
Describes type of paid media to sent.
Subtype of {@link InputPaidMediaType}.
*/
export interface InputPaidMediaTypePhoto {
    '@type': 'inputPaidMediaTypePhoto';
}
/**
The media is a video.
Subtype of {@link InputPaidMediaType}.
*/
export interface InputPaidMediaTypeVideo {
    '@type': 'inputPaidMediaTypeVideo';
    /**
Cover of the video; pass null to skip cover uploading.
*/
    cover: InputFile;
    /**
Timestamp from which the video playing must start, in seconds.
*/
    start_timestamp: number;
    /**
Duration of the video, in seconds.
*/
    duration: number;
    /**
True, if the video is expected to be streamed.
*/
    supports_streaming?: boolean;
}
/**
Describes a paid media to be sent.
*/
export interface InputPaidMedia {
    '@type': 'inputPaidMedia';
    /**
Type of the media.
*/
    type: InputPaidMediaType;
    /**
Photo or video to be sent.
*/
    media: InputFile;
    /**
Media thumbnail; pass null to skip thumbnail uploading.
*/
    thumbnail: InputThumbnail;
    /**
File identifiers of the stickers added to the media, if applicable.
*/
    added_sticker_file_ids: number[];
    /**
Media width.
*/
    width: number;
    /**
Media height.
*/
    height: number;
}
/**
Contains information about the time when a scheduled message will be sent.
Subtype of {@link MessageSchedulingState}.
*/
export interface MessageSchedulingStateSendAtDate {
    '@type': 'messageSchedulingStateSendAtDate';
    /**
Point in time (Unix timestamp) when the message will be sent. The date must be within 367 days in the future.
*/
    send_date: number;
}
/**
The message will be sent when the other user is online. Applicable to private chats only and when the exact online
status of the other user is known.
Subtype of {@link MessageSchedulingState}.
*/
export interface MessageSchedulingStateSendWhenOnline {
    '@type': 'messageSchedulingStateSendWhenOnline';
}
/**
The message will be sent when the video in the message is converted and optimized; can be used only by the server.
Subtype of {@link MessageSchedulingState}.
*/
export interface MessageSchedulingStateSendWhenVideoProcessed {
    '@type': 'messageSchedulingStateSendWhenVideoProcessed';
    /**
Approximate point in time (Unix timestamp) when the message is expected to be sent.
*/
    send_date: number;
}
/**
Describes when a message will be self-destructed.
Subtype of {@link MessageSelfDestructType}.
*/
export interface MessageSelfDestructTypeTimer {
    '@type': 'messageSelfDestructTypeTimer';
    /**
The message's self-destruct time, in seconds; must be between 0 and 60 in private chats.
*/
    self_destruct_time: number;
}
/**
The message can be opened only once and will be self-destructed once closed.
Subtype of {@link MessageSelfDestructType}.
*/
export interface MessageSelfDestructTypeImmediately {
    '@type': 'messageSelfDestructTypeImmediately';
}
/**
Options to be used when a message is sent.
*/
export interface MessageSendOptions {
    '@type': 'messageSendOptions';
    /**
Pass true to disable notification for the message.
*/
    disable_notification?: boolean;
    /**
Pass true if the message is sent from the background.
*/
    from_background?: boolean;
    /**
Pass true if the content of the message must be protected from forwarding and saving; for bots only.
*/
    protect_content?: boolean;
    /**
Pass true to allow the message to ignore regular broadcast limits for a small fee; for bots only.
*/
    allow_paid_broadcast?: boolean;
    /**
The number of Telegram Stars the user agreed to pay to send the messages.
*/
    paid_message_star_count: number;
    /**
Pass true if the user explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to
sendMessage and sendMessageAlbum.
*/
    update_order_of_installed_sticker_sets?: boolean;
    /**
Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, to a chat with paid
messages, live location messages and self-destructing messages can't be scheduled.
*/
    scheduling_state: MessageSchedulingState;
    /**
Identifier of the effect to apply to the message; pass 0 if none; applicable only to sendMessage and sendMessageAlbum in
private chats.
*/
    effect_id: string;
    /**
Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match
sent messages and corresponding updateNewMessage updates.
*/
    sending_id: number;
    /**
Pass true to get a fake message instead of actually sending them.
*/
    only_preview?: boolean;
}
/**
Options to be used when a message content is copied without reference to the original sender. Service messages, messages
with messageInvoice, messagePaidMedia, messageGiveaway, or messageGiveawayWinners content can't be copied.
*/
export interface MessageCopyOptions {
    '@type': 'messageCopyOptions';
    /**
True, if content of the message needs to be copied without reference to the original sender. Always true if the message
is forwarded to a secret chat or is local. Use messageProperties.can_be_saved and
messageProperties.can_be_copied_to_secret_chat to check whether the message is suitable.
*/
    send_copy?: boolean;
    /**
True, if media caption of the message copy needs to be replaced. Ignored if send_copy is false.
*/
    replace_caption?: boolean;
    /**
New message caption; pass null to copy message without caption. Ignored if replace_caption is false.
*/
    new_caption: FormattedText;
    /**
True, if new caption must be shown above the media; otherwise, new caption must be shown below the media; not supported
in secret chats. Ignored if replace_caption is false.
*/
    new_show_caption_above_media?: boolean;
}
/**
The content of a message to send.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageText {
    '@type': 'inputMessageText';
    /**
Formatted text to be sent; 0-getOption("message_text_length_max") characters. Only Bold, Italic, Underline,
Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl and MentionName
entities are allowed to be specified manually.
*/
    text: FormattedText;
    /**
Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options.
*/
    link_preview_options: LinkPreviewOptions;
    /**
True, if a chat message draft must be deleted.
*/
    clear_draft?: boolean;
}
/**
An animation message (GIF-style).
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageAnimation {
    '@type': 'inputMessageAnimation';
    /**
Animation file to be sent.
*/
    animation: InputFile;
    /**
Animation thumbnail; pass null to skip thumbnail uploading.
*/
    thumbnail: InputThumbnail;
    /**
File identifiers of the stickers added to the animation, if applicable.
*/
    added_sticker_file_ids: number[];
    /**
Duration of the animation, in seconds.
*/
    duration: number;
    /**
Width of the animation; may be replaced by the server.
*/
    width: number;
    /**
Height of the animation; may be replaced by the server.
*/
    height: number;
    /**
Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
*/
    caption: FormattedText;
    /**
True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation; not
supported in secret chats.
*/
    show_caption_above_media?: boolean;
    /**
True, if the animation preview must be covered by a spoiler animation; not supported in secret chats.
*/
    has_spoiler?: boolean;
}
/**
An audio message.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageAudio {
    '@type': 'inputMessageAudio';
    /**
Audio file to be sent.
*/
    audio: InputFile;
    /**
Thumbnail of the cover for the album; pass null to skip thumbnail uploading.
*/
    album_cover_thumbnail: InputThumbnail;
    /**
Duration of the audio, in seconds; may be replaced by the server.
*/
    duration: number;
    /**
Title of the audio; 0-64 characters; may be replaced by the server.
*/
    title: string;
    /**
Performer of the audio; 0-64 characters, may be replaced by the server.
*/
    performer: string;
    /**
Audio caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
*/
    caption: FormattedText;
}
/**
A document message (general file).
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageDocument {
    '@type': 'inputMessageDocument';
    /**
Document to be sent.
*/
    document: InputFile;
    /**
Document thumbnail; pass null to skip thumbnail uploading.
*/
    thumbnail: InputThumbnail;
    /**
Pass true to disable automatic file type detection and send the document as a file. Always true for files sent to secret
chats.
*/
    disable_content_type_detection?: boolean;
    /**
Document caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
*/
    caption: FormattedText;
}
/**
A message with paid media; can be used only in channel chats with supergroupFullInfo.has_paid_media_allowed.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessagePaidMedia {
    '@type': 'inputMessagePaidMedia';
    /**
The number of Telegram Stars that must be paid to see the media; 1-getOption("paid_media_message_star_count_max").
*/
    star_count: number;
    /**
The content of the paid media.
*/
    paid_media: InputPaidMedia[];
    /**
Message caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
*/
    caption: FormattedText;
    /**
True, if the caption must be shown above the media; otherwise, the caption must be shown below the media; not supported
in secret chats.
*/
    show_caption_above_media?: boolean;
    /**
Bot-provided data for the paid media; bots only.
*/
    payload: string;
}
/**
A photo message.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessagePhoto {
    '@type': 'inputMessagePhoto';
    /**
Photo to send. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total.
Width and height ratio must be at most 20.
*/
    photo: InputFile;
    /**
Photo thumbnail to be sent; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in
secret chats.
*/
    thumbnail: InputThumbnail;
    /**
File identifiers of the stickers added to the photo, if applicable.
*/
    added_sticker_file_ids: number[];
    /**
Photo width.
*/
    width: number;
    /**
Photo height.
*/
    height: number;
    /**
Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
*/
    caption: FormattedText;
    /**
True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo; not supported
in secret chats.
*/
    show_caption_above_media?: boolean;
    /**
Photo self-destruct type; pass null if none; private chats only.
*/
    self_destruct_type: MessageSelfDestructType;
    /**
True, if the photo preview must be covered by a spoiler animation; not supported in secret chats.
*/
    has_spoiler?: boolean;
}
/**
A sticker message.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageSticker {
    '@type': 'inputMessageSticker';
    /**
Sticker to be sent.
*/
    sticker: InputFile;
    /**
Sticker thumbnail; pass null to skip thumbnail uploading.
*/
    thumbnail: InputThumbnail;
    /**
Sticker width.
*/
    width: number;
    /**
Sticker height.
*/
    height: number;
    /**
Emoji used to choose the sticker.
*/
    emoji: string;
}
/**
A video message.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageVideo {
    '@type': 'inputMessageVideo';
    /**
Video to be sent. The video is expected to be re-encoded to MPEG4 format with H.264 codec by the sender.
*/
    video: InputFile;
    /**
Video thumbnail; pass null to skip thumbnail uploading.
*/
    thumbnail: InputThumbnail;
    /**
Cover of the video; pass null to skip cover uploading; not supported in secret chats and for self-destructing messages.
*/
    cover: InputFile;
    /**
Timestamp from which the video playing must start, in seconds.
*/
    start_timestamp: number;
    /**
File identifiers of the stickers added to the video, if applicable.
*/
    added_sticker_file_ids: number[];
    /**
Duration of the video, in seconds.
*/
    duration: number;
    /**
Video width.
*/
    width: number;
    /**
Video height.
*/
    height: number;
    /**
True, if the video is expected to be streamed.
*/
    supports_streaming?: boolean;
    /**
Video caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
*/
    caption: FormattedText;
    /**
True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported
in secret chats.
*/
    show_caption_above_media?: boolean;
    /**
Video self-destruct type; pass null if none; private chats only.
*/
    self_destruct_type: MessageSelfDestructType;
    /**
True, if the video preview must be covered by a spoiler animation; not supported in secret chats.
*/
    has_spoiler?: boolean;
}
/**
A video note message.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageVideoNote {
    '@type': 'inputMessageVideoNote';
    /**
Video note to be sent. The video is expected to be encoded to MPEG4 format with H.264 codec and have no data outside of
the visible circle.
*/
    video_note: InputFile;
    /**
Video thumbnail; may be null if empty; pass null to skip thumbnail uploading.
*/
    thumbnail: InputThumbnail;
    /**
Duration of the video, in seconds; 0-60.
*/
    duration: number;
    /**
Video width and height; must be positive and not greater than 640.
*/
    length: number;
    /**
Video note self-destruct type; may be null if none; pass null if none; private chats only.
*/
    self_destruct_type: MessageSelfDestructType;
}
/**
A voice note message.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageVoiceNote {
    '@type': 'inputMessageVoiceNote';
    /**
Voice note to be sent. The voice note must be encoded with the Opus codec and stored inside an OGG container with a
single audio channel, or be in MP3 or M4A format as regular audio.
*/
    voice_note: InputFile;
    /**
Duration of the voice note, in seconds.
*/
    duration: number;
    /**
Waveform representation of the voice note in 5-bit format.
*/
    waveform: string;
    /**
Voice note caption; may be null if empty; pass null to use an empty caption; 0-getOption("message_caption_length_max")
characters.
*/
    caption: FormattedText;
    /**
Voice note self-destruct type; may be null if none; pass null if none; private chats only.
*/
    self_destruct_type: MessageSelfDestructType;
}
/**
A message with a location.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageLocation {
    '@type': 'inputMessageLocation';
    /**
Location to be sent.
*/
    location: Location;
    /**
Period for which the location can be updated, in seconds; must be between 60 and 86400 for a temporary live location,
0x7FFFFFFF for permanent live location, and 0 otherwise.
*/
    live_period: number;
    /**
For live locations, a direction in which the location moves, in degrees; 1-360. Pass 0 if unknown.
*/
    heading: number;
    /**
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). Pass 0 if the
notification is disabled. Can't be enabled in channels and Saved Messages.
*/
    proximity_alert_radius: number;
}
/**
A message with information about a venue.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageVenue {
    '@type': 'inputMessageVenue';
    /**
Venue to send.
*/
    venue: Venue;
}
/**
A message containing a user contact.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageContact {
    '@type': 'inputMessageContact';
    /**
Contact to send.
*/
    contact: Contact;
}
/**
A dice message.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageDice {
    '@type': 'inputMessageDice';
    /**
Emoji on which the dice throw animation is based.
*/
    emoji: string;
    /**
True, if the chat message draft must be deleted.
*/
    clear_draft?: boolean;
}
/**
A message with a game; not supported for channels or secret chats.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageGame {
    '@type': 'inputMessageGame';
    /**
User identifier of the bot that owns the game.
*/
    bot_user_id: number;
    /**
Short name of the game.
*/
    game_short_name: string;
}
/**
A message with an invoice; can be used only by bots.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageInvoice {
    '@type': 'inputMessageInvoice';
    /**
Invoice.
*/
    invoice: Invoice;
    /**
Product title; 1-32 characters.
*/
    title: string;
    /**
A message with an invoice; can be used only by bots.
*/
    description: string;
    /**
Product photo URL; optional.
*/
    photo_url: string;
    /**
Product photo size.
*/
    photo_size: number;
    /**
Product photo width.
*/
    photo_width: number;
    /**
Product photo height.
*/
    photo_height: number;
    /**
The invoice payload.
*/
    payload: string;
    /**
Payment provider token; may be empty for payments in Telegram Stars.
*/
    provider_token: string;
    /**
JSON-encoded data about the invoice, which will be shared with the payment provider.
*/
    provider_data: string;
    /**
Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay
directly from forwards of the invoice message.
*/
    start_parameter: string;
    /**
The content of paid media attached to the invoice; pass null if none.
*/
    paid_media: InputPaidMedia;
    /**
Paid media caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
*/
    paid_media_caption: FormattedText;
}
/**
A message with a poll. Polls can't be sent to secret chats. Polls can be sent only to a private chat with a bot.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessagePoll {
    '@type': 'inputMessagePoll';
    /**
Poll question; 1-255 characters (up to 300 characters for bots). Only custom emoji entities are allowed to be added and
only by Premium users.
*/
    question: FormattedText;
    /**
List of poll answer options, 2-10 strings 1-100 characters each. Only custom emoji entities are allowed to be added and
only by Premium users.
*/
    options: FormattedText[];
    /**
True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels.
*/
    is_anonymous?: boolean;
    /**
Type of the poll.
*/
    type: PollType;
    /**
Amount of time the poll will be active after creation, in seconds; for bots only.
*/
    open_period: number;
    /**
Point in time (Unix timestamp) when the poll will automatically be closed; for bots only.
*/
    close_date: number;
    /**
True, if the poll needs to be sent already closed; for bots only.
*/
    is_closed?: boolean;
}
/**
A message with a forwarded story. Stories can't be sent to secret chats. A story can be forwarded only if
story.can_be_forwarded.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageStory {
    '@type': 'inputMessageStory';
    /**
Identifier of the chat that posted the story.
*/
    story_sender_chat_id: number;
    /**
Story identifier.
*/
    story_id: number;
}
/**
A forwarded message.
Subtype of {@link InputMessageContent}.
*/
export interface InputMessageForwarded {
    '@type': 'inputMessageForwarded';
    /**
Identifier for the chat this forwarded message came from.
*/
    from_chat_id: number;
    /**
Identifier of the message to forward. A message can be forwarded only if messageProperties.can_be_forwarded.
*/
    message_id: number;
    /**
Pass true if a game message is being shared from a launched game; applies only to game messages.
*/
    in_game_share?: boolean;
    /**
Pass true to replace video start timestamp in the forwarded message.
*/
    replace_video_start_timestamp?: boolean;
    /**
The new video start timestamp; ignored if replace_video_start_timestamp == false.
*/
    new_video_start_timestamp: number;
    /**
Options to be used to copy content of the message without reference to the original sender; pass null to forward the
message as usual.
*/
    copy_options: MessageCopyOptions;
}
/**
Contains properties of a message and describes actions that can be done with the message right now.
*/
export interface MessageProperties {
    '@type': 'messageProperties';
    /**
True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy
options.
*/
    can_be_copied_to_secret_chat?: boolean;
    /**
True, if the message can be deleted only for the current user while other users will continue to see it using the method
deleteMessages with revoke == false.
*/
    can_be_deleted_only_for_self?: boolean;
    /**
True, if the message can be deleted for all users using the method deleteMessages with revoke == true.
*/
    can_be_deleted_for_all_users?: boolean;
    /**
True, if the message can be edited using the methods editMessageText, editMessageCaption, or editMessageReplyMarkup. For
live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this
message.
*/
    can_be_edited?: boolean;
    /**
True, if the message can be forwarded using inputMessageForwarded or forwardMessages.
*/
    can_be_forwarded?: boolean;
    /**
True, if the message can be paid using inputInvoiceMessage.
*/
    can_be_paid?: boolean;
    /**
True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage.
*/
    can_be_pinned?: boolean;
    /**
True, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage.
*/
    can_be_replied?: boolean;
    /**
True, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage.
*/
    can_be_replied_in_another_chat?: boolean;
    /**
True, if content of the message can be saved locally or copied using inputMessageForwarded or forwardMessages with copy
options.
*/
    can_be_saved?: boolean;
    /**
True, if the message can be shared in a story using inputStoryAreaTypeMessage.
*/
    can_be_shared_in_story?: boolean;
    /**
True, if the message can be edited using the method editMessageMedia.
*/
    can_edit_media?: boolean;
    /**
True, if scheduling state of the message can be edited.
*/
    can_edit_scheduling_state?: boolean;
    /**
True, if code for message embedding can be received using getMessageEmbeddingCode.
*/
    can_get_embedding_code?: boolean;
    /**
True, if a link can be generated for the message using getMessageLink.
*/
    can_get_link?: boolean;
    /**
True, if media timestamp links can be generated for media timestamp entities in the message text, caption or link
preview description using getMessageLink.
*/
    can_get_media_timestamp_links?: boolean;
    /**
True, if information about the message thread is available through getMessageThread and getMessageThreadHistory.
*/
    can_get_message_thread?: boolean;
    /**
True, if read date of the message can be received through getMessageReadDate.
*/
    can_get_read_date?: boolean;
    /**
True, if message statistics are available through getMessageStatistics and message forwards can be received using
getMessagePublicForwards.
*/
    can_get_statistics?: boolean;
    /**
True, if chat members already viewed the message can be received through getMessageViewers.
*/
    can_get_viewers?: boolean;
    /**
True, if speech can be recognized for the message through recognizeSpeech.
*/
    can_recognize_speech?: boolean;
    /**
True, if the message can be reported using reportChat.
*/
    can_report_chat?: boolean;
    /**
True, if reactions on the message can be reported through reportMessageReactions.
*/
    can_report_reactions?: boolean;
    /**
True, if the message can be reported using reportSupergroupSpam.
*/
    can_report_supergroup_spam?: boolean;
    /**
True, if fact check for the message can be changed through setMessageFactCheck.
*/
    can_set_fact_check?: boolean;
    /**
True, if message statistics must be available from context menu of the message.
*/
    need_show_statistics?: boolean;
}
/**
Represents a filter for message search results.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterEmpty {
    '@type': 'searchMessagesFilterEmpty';
}
/**
Returns only animation messages.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterAnimation {
    '@type': 'searchMessagesFilterAnimation';
}
/**
Returns only audio messages.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterAudio {
    '@type': 'searchMessagesFilterAudio';
}
/**
Returns only document messages.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterDocument {
    '@type': 'searchMessagesFilterDocument';
}
/**
Returns only photo messages.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterPhoto {
    '@type': 'searchMessagesFilterPhoto';
}
/**
Returns only video messages.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterVideo {
    '@type': 'searchMessagesFilterVideo';
}
/**
Returns only voice note messages.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterVoiceNote {
    '@type': 'searchMessagesFilterVoiceNote';
}
/**
Returns only photo and video messages.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterPhotoAndVideo {
    '@type': 'searchMessagesFilterPhotoAndVideo';
}
/**
Returns only messages containing URLs.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterUrl {
    '@type': 'searchMessagesFilterUrl';
}
/**
Returns only messages containing chat photos.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterChatPhoto {
    '@type': 'searchMessagesFilterChatPhoto';
}
/**
Returns only video note messages.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterVideoNote {
    '@type': 'searchMessagesFilterVideoNote';
}
/**
Returns only voice and video note messages.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterVoiceAndVideoNote {
    '@type': 'searchMessagesFilterVoiceAndVideoNote';
}
/**
Returns only messages with mentions of the current user, or messages that are replies to their messages.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterMention {
    '@type': 'searchMessagesFilterMention';
}
/**
Returns only messages with unread mentions of the current user, or messages that are replies to their messages. When
using this filter the results can't be additionally filtered by a query, a message thread or by the sending user.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterUnreadMention {
    '@type': 'searchMessagesFilterUnreadMention';
}
/**
Returns only messages with unread reactions for the current user. When using this filter the results can't be
additionally filtered by a query, a message thread or by the sending user.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterUnreadReaction {
    '@type': 'searchMessagesFilterUnreadReaction';
}
/**
Returns only failed to send messages. This filter can be used only if the message database is used.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterFailedToSend {
    '@type': 'searchMessagesFilterFailedToSend';
}
/**
Returns only pinned messages.
Subtype of {@link SearchMessagesFilter}.
*/
export interface SearchMessagesFilterPinned {
    '@type': 'searchMessagesFilterPinned';
}
/**
Represents a filter for type of the chats in which to search messages.
Subtype of {@link SearchMessagesChatTypeFilter}.
*/
export interface SearchMessagesChatTypeFilterPrivate {
    '@type': 'searchMessagesChatTypeFilterPrivate';
}
/**
Returns only messages in basic group and supergroup chats.
Subtype of {@link SearchMessagesChatTypeFilter}.
*/
export interface SearchMessagesChatTypeFilterGroup {
    '@type': 'searchMessagesChatTypeFilterGroup';
}
/**
Returns only messages in channel chats.
Subtype of {@link SearchMessagesChatTypeFilter}.
*/
export interface SearchMessagesChatTypeFilterChannel {
    '@type': 'searchMessagesChatTypeFilterChannel';
}
/**
Describes the different types of activity in a chat.
Subtype of {@link ChatAction}.
*/
export interface ChatActionTyping {
    '@type': 'chatActionTyping';
}
/**
The user is recording a video.
Subtype of {@link ChatAction}.
*/
export interface ChatActionRecordingVideo {
    '@type': 'chatActionRecordingVideo';
}
/**
The user is uploading a video.
Subtype of {@link ChatAction}.
*/
export interface ChatActionUploadingVideo {
    '@type': 'chatActionUploadingVideo';
    /**
Upload progress, as a percentage.
*/
    progress: number;
}
/**
The user is recording a voice note.
Subtype of {@link ChatAction}.
*/
export interface ChatActionRecordingVoiceNote {
    '@type': 'chatActionRecordingVoiceNote';
}
/**
The user is uploading a voice note.
Subtype of {@link ChatAction}.
*/
export interface ChatActionUploadingVoiceNote {
    '@type': 'chatActionUploadingVoiceNote';
    /**
Upload progress, as a percentage.
*/
    progress: number;
}
/**
The user is uploading a photo.
Subtype of {@link ChatAction}.
*/
export interface ChatActionUploadingPhoto {
    '@type': 'chatActionUploadingPhoto';
    /**
Upload progress, as a percentage.
*/
    progress: number;
}
/**
The user is uploading a document.
Subtype of {@link ChatAction}.
*/
export interface ChatActionUploadingDocument {
    '@type': 'chatActionUploadingDocument';
    /**
Upload progress, as a percentage.
*/
    progress: number;
}
/**
The user is picking a sticker to send.
Subtype of {@link ChatAction}.
*/
export interface ChatActionChoosingSticker {
    '@type': 'chatActionChoosingSticker';
}
/**
The user is picking a location or venue to send.
Subtype of {@link ChatAction}.
*/
export interface ChatActionChoosingLocation {
    '@type': 'chatActionChoosingLocation';
}
/**
The user is picking a contact to send.
Subtype of {@link ChatAction}.
*/
export interface ChatActionChoosingContact {
    '@type': 'chatActionChoosingContact';
}
/**
The user has started to play a game.
Subtype of {@link ChatAction}.
*/
export interface ChatActionStartPlayingGame {
    '@type': 'chatActionStartPlayingGame';
}
/**
The user is recording a video note.
Subtype of {@link ChatAction}.
*/
export interface ChatActionRecordingVideoNote {
    '@type': 'chatActionRecordingVideoNote';
}
/**
The user is uploading a video note.
Subtype of {@link ChatAction}.
*/
export interface ChatActionUploadingVideoNote {
    '@type': 'chatActionUploadingVideoNote';
    /**
Upload progress, as a percentage.
*/
    progress: number;
}
/**
The user is watching animations sent by the other party by clicking on an animated emoji.
Subtype of {@link ChatAction}.
*/
export interface ChatActionWatchingAnimations {
    '@type': 'chatActionWatchingAnimations';
    /**
The animated emoji.
*/
    emoji: string;
}
/**
The user has canceled the previous action.
Subtype of {@link ChatAction}.
*/
export interface ChatActionCancel {
    '@type': 'chatActionCancel';
}
/**
Describes the last time the user was online.
Subtype of {@link UserStatus}.
*/
export interface UserStatusEmpty {
    '@type': 'userStatusEmpty';
}
/**
The user is online.
Subtype of {@link UserStatus}.
*/
export interface UserStatusOnline {
    '@type': 'userStatusOnline';
    /**
Point in time (Unix timestamp) when the user's online status will expire.
*/
    expires: number;
}
/**
The user is offline.
Subtype of {@link UserStatus}.
*/
export interface UserStatusOffline {
    '@type': 'userStatusOffline';
    /**
Point in time (Unix timestamp) when the user was last online.
*/
    was_online: number;
}
/**
The user was online recently.
Subtype of {@link UserStatus}.
*/
export interface UserStatusRecently {
    '@type': 'userStatusRecently';
    /**
Exact user's status is hidden because the current user enabled userPrivacySettingShowStatus privacy setting for the user
and has no Telegram Premium.
*/
    by_my_privacy_settings?: boolean;
}
/**
The user is offline, but was online last week.
Subtype of {@link UserStatus}.
*/
export interface UserStatusLastWeek {
    '@type': 'userStatusLastWeek';
    /**
Exact user's status is hidden because the current user enabled userPrivacySettingShowStatus privacy setting for the user
and has no Telegram Premium.
*/
    by_my_privacy_settings?: boolean;
}
/**
The user is offline, but was online last month.
Subtype of {@link UserStatus}.
*/
export interface UserStatusLastMonth {
    '@type': 'userStatusLastMonth';
    /**
Exact user's status is hidden because the current user enabled userPrivacySettingShowStatus privacy setting for the user
and has no Telegram Premium.
*/
    by_my_privacy_settings?: boolean;
}
/**
Represents an emoji with its keyword.
*/
export interface EmojiKeyword {
    '@type': 'emojiKeyword';
    /**
The emoji.
*/
    emoji: string;
    /**
The keyword.
*/
    keyword: string;
}
/**
Represents a list of emojis with their keywords.
*/
export interface EmojiKeywords {
    '@type': 'emojiKeywords';
    /**
List of emojis with their keywords.
*/
    emoji_keywords: EmojiKeyword[];
}
/**
Represents a list of stickers.
*/
export interface Stickers {
    '@type': 'stickers';
    /**
List of stickers.
*/
    stickers: Sticker[];
}
/**
Represents a list of emojis.
*/
export interface Emojis {
    '@type': 'emojis';
    /**
List of emojis.
*/
    emojis: string[];
}
/**
Represents a sticker set.
*/
export interface StickerSet {
    '@type': 'stickerSet';
    /**
Identifier of the sticker set.
*/
    id: string;
    /**
Title of the sticker set.
*/
    title: string;
    /**
Name of the sticker set.
*/
    name: string;
    /**
Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null. The file can be downloaded
only before the thumbnail is changed.
*/
    thumbnail: Thumbnail;
    /**
Sticker set thumbnail's outline; may be null if unknown.
*/
    thumbnail_outline: Outline;
    /**
True, if the sticker set is owned by the current user.
*/
    is_owned?: boolean;
    /**
True, if the sticker set has been installed by the current user.
*/
    is_installed?: boolean;
    /**
True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously.
*/
    is_archived?: boolean;
    /**
True, if the sticker set is official.
*/
    is_official?: boolean;
    /**
Type of the stickers in the set.
*/
    sticker_type: StickerType;
    /**
True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only.
*/
    needs_repainting?: boolean;
    /**
True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker
sets only.
*/
    is_allowed_as_chat_emoji_status?: boolean;
    /**
True for already viewed trending sticker sets.
*/
    is_viewed?: boolean;
    /**
List of stickers in this set.
*/
    stickers: Sticker[];
    /**
A list of emojis corresponding to the stickers in the same order. The list is only for informational purposes, because a
sticker is always sent with a fixed emoji from the corresponding Sticker object.
*/
    emojis: Emojis[];
}
/**
Represents short information about a sticker set.
*/
export interface StickerSetInfo {
    '@type': 'stickerSetInfo';
    /**
Identifier of the sticker set.
*/
    id: string;
    /**
Title of the sticker set.
*/
    title: string;
    /**
Name of the sticker set.
*/
    name: string;
    /**
Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null. The file can be downloaded
only before the thumbnail is changed.
*/
    thumbnail: Thumbnail;
    /**
Sticker set thumbnail's outline; may be null if unknown.
*/
    thumbnail_outline: Outline;
    /**
True, if the sticker set is owned by the current user.
*/
    is_owned?: boolean;
    /**
True, if the sticker set has been installed by the current user.
*/
    is_installed?: boolean;
    /**
True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously.
*/
    is_archived?: boolean;
    /**
True, if the sticker set is official.
*/
    is_official?: boolean;
    /**
Type of the stickers in the set.
*/
    sticker_type: StickerType;
    /**
True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only.
*/
    needs_repainting?: boolean;
    /**
True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker
sets only.
*/
    is_allowed_as_chat_emoji_status?: boolean;
    /**
True for already viewed trending sticker sets.
*/
    is_viewed?: boolean;
    /**
Total number of stickers in the set.
*/
    size: number;
    /**
Up to the first 5 stickers from the set, depending on the context. If the application needs more stickers the full
sticker set needs to be requested.
*/
    covers: Sticker[];
}
/**
Represents a list of sticker sets.
*/
export interface StickerSets {
    '@type': 'stickerSets';
    /**
Approximate total number of sticker sets found.
*/
    total_count: number;
    /**
List of sticker sets.
*/
    sets: StickerSetInfo[];
}
/**
Represents a list of trending sticker sets.
*/
export interface TrendingStickerSets {
    '@type': 'trendingStickerSets';
    /**
Approximate total number of trending sticker sets.
*/
    total_count: number;
    /**
List of trending sticker sets.
*/
    sets: StickerSetInfo[];
    /**
True, if the list contains sticker sets with premium stickers.
*/
    is_premium?: boolean;
}
/**
Describes source of stickers for an emoji category.
Subtype of {@link EmojiCategorySource}.
*/
export interface EmojiCategorySourceSearch {
    '@type': 'emojiCategorySourceSearch';
    /**
List of emojis to search for.
*/
    emojis: string[];
}
/**
The category contains premium stickers that must be found by getPremiumStickers.
Subtype of {@link EmojiCategorySource}.
*/
export interface EmojiCategorySourcePremium {
    '@type': 'emojiCategorySourcePremium';
}
/**
Describes an emoji category.
*/
export interface EmojiCategory {
    '@type': 'emojiCategory';
    /**
Name of the category.
*/
    name: string;
    /**
Custom emoji sticker, which represents icon of the category.
*/
    icon: Sticker;
    /**
Source of stickers for the emoji category.
*/
    source: EmojiCategorySource;
    /**
True, if the category must be shown first when choosing a sticker for the start page.
*/
    is_greeting?: boolean;
}
/**
Represents a list of emoji categories.
*/
export interface EmojiCategories {
    '@type': 'emojiCategories';
    /**
List of categories.
*/
    categories: EmojiCategory[];
}
/**
Describes type of emoji category.
Subtype of {@link EmojiCategoryType}.
*/
export interface EmojiCategoryTypeDefault {
    '@type': 'emojiCategoryTypeDefault';
}
/**
The category must be used by default for regular sticker selection. It may contain greeting emoji category and premium
stickers.
Subtype of {@link EmojiCategoryType}.
*/
export interface EmojiCategoryTypeRegularStickers {
    '@type': 'emojiCategoryTypeRegularStickers';
}
/**
The category must be used for emoji status selection.
Subtype of {@link EmojiCategoryType}.
*/
export interface EmojiCategoryTypeEmojiStatus {
    '@type': 'emojiCategoryTypeEmojiStatus';
}
/**
The category must be used for chat photo emoji selection.
Subtype of {@link EmojiCategoryType}.
*/
export interface EmojiCategoryTypeChatPhoto {
    '@type': 'emojiCategoryTypeChatPhoto';
}
/**
Describes the current weather.
*/
export interface CurrentWeather {
    '@type': 'currentWeather';
    /**
Temperature, in degree Celsius.
*/
    temperature: number;
    /**
Emoji representing the weather.
*/
    emoji: string;
}
/**
Describes position of a clickable rectangle area on a story media.
*/
export interface StoryAreaPosition {
    '@type': 'storyAreaPosition';
    /**
The abscissa of the rectangle's center, as a percentage of the media width.
*/
    x_percentage: number;
    /**
The ordinate of the rectangle's center, as a percentage of the media height.
*/
    y_percentage: number;
    /**
The width of the rectangle, as a percentage of the media width.
*/
    width_percentage: number;
    /**
The height of the rectangle, as a percentage of the media height.
*/
    height_percentage: number;
    /**
Clockwise rotation angle of the rectangle, in degrees; 0-360.
*/
    rotation_angle: number;
    /**
The radius of the rectangle corner rounding, as a percentage of the media width.
*/
    corner_radius_percentage: number;
}
/**
Describes type of clickable area on a story media.
Subtype of {@link StoryAreaType}.
*/
export interface StoryAreaTypeLocation {
    '@type': 'storyAreaTypeLocation';
    /**
The location.
*/
    location: Location;
    /**
Address of the location; may be null if unknown.
*/
    address: LocationAddress;
}
/**
An area pointing to a venue.
Subtype of {@link StoryAreaType}.
*/
export interface StoryAreaTypeVenue {
    '@type': 'storyAreaTypeVenue';
    /**
Information about the venue.
*/
    venue: Venue;
}
/**
An area pointing to a suggested reaction. App needs to show a clickable reaction on the area and call setStoryReaction
when the are is clicked.
Subtype of {@link StoryAreaType}.
*/
export interface StoryAreaTypeSuggestedReaction {
    '@type': 'storyAreaTypeSuggestedReaction';
    /**
Type of the reaction.
*/
    reaction_type: ReactionType;
    /**
Number of times the reaction was added.
*/
    total_count: number;
    /**
True, if reaction has a dark background.
*/
    is_dark?: boolean;
    /**
True, if reaction corner is flipped.
*/
    is_flipped?: boolean;
}
/**
An area pointing to a message.
Subtype of {@link StoryAreaType}.
*/
export interface StoryAreaTypeMessage {
    '@type': 'storyAreaTypeMessage';
    /**
Identifier of the chat with the message.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
}
/**
An area pointing to a HTTP or tg:// link.
Subtype of {@link StoryAreaType}.
*/
export interface StoryAreaTypeLink {
    '@type': 'storyAreaTypeLink';
    /**
HTTP or tg:// URL to be opened when the area is clicked.
*/
    url: string;
}
/**
An area with information about weather.
Subtype of {@link StoryAreaType}.
*/
export interface StoryAreaTypeWeather {
    '@type': 'storyAreaTypeWeather';
    /**
Temperature, in degree Celsius.
*/
    temperature: number;
    /**
Emoji representing the weather.
*/
    emoji: string;
    /**
A color of the area background in the ARGB format.
*/
    background_color: number;
}
/**
An area with an upgraded gift.
Subtype of {@link StoryAreaType}.
*/
export interface StoryAreaTypeUpgradedGift {
    '@type': 'storyAreaTypeUpgradedGift';
    /**
Unique name of the upgraded gift.
*/
    gift_name: string;
}
/**
Describes a clickable rectangle area on a story media.
*/
export interface StoryArea {
    '@type': 'storyArea';
    /**
Position of the area.
*/
    position: StoryAreaPosition;
    /**
Type of the area.
*/
    type: StoryAreaType;
}
/**
Describes type of clickable area on a story media to be added.
Subtype of {@link InputStoryAreaType}.
*/
export interface InputStoryAreaTypeLocation {
    '@type': 'inputStoryAreaTypeLocation';
    /**
The location.
*/
    location: Location;
    /**
Address of the location; pass null if unknown.
*/
    address: LocationAddress;
}
/**
An area pointing to a venue found by the bot getOption("venue_search_bot_username").
Subtype of {@link InputStoryAreaType}.
*/
export interface InputStoryAreaTypeFoundVenue {
    '@type': 'inputStoryAreaTypeFoundVenue';
    /**
Identifier of the inline query, used to found the venue.
*/
    query_id: string;
    /**
Identifier of the inline query result.
*/
    result_id: string;
}
/**
An area pointing to a venue already added to the story.
Subtype of {@link InputStoryAreaType}.
*/
export interface InputStoryAreaTypePreviousVenue {
    '@type': 'inputStoryAreaTypePreviousVenue';
    /**
Provider of the venue.
*/
    venue_provider: string;
    /**
Identifier of the venue in the provider database.
*/
    venue_id: string;
}
/**
An area pointing to a suggested reaction.
Subtype of {@link InputStoryAreaType}.
*/
export interface InputStoryAreaTypeSuggestedReaction {
    '@type': 'inputStoryAreaTypeSuggestedReaction';
    /**
Type of the reaction.
*/
    reaction_type: ReactionType;
    /**
True, if reaction has a dark background.
*/
    is_dark?: boolean;
    /**
True, if reaction corner is flipped.
*/
    is_flipped?: boolean;
}
/**
An area pointing to a message.
Subtype of {@link InputStoryAreaType}.
*/
export interface InputStoryAreaTypeMessage {
    '@type': 'inputStoryAreaTypeMessage';
    /**
Identifier of the chat with the message. Currently, the chat must be a supergroup or a channel chat.
*/
    chat_id: number;
    /**
Identifier of the message. Use messageProperties.can_be_shared_in_story to check whether the message is suitable.
*/
    message_id: number;
}
/**
An area pointing to a HTTP or tg:// link.
Subtype of {@link InputStoryAreaType}.
*/
export interface InputStoryAreaTypeLink {
    '@type': 'inputStoryAreaTypeLink';
    /**
HTTP or tg:// URL to be opened when the area is clicked.
*/
    url: string;
}
/**
An area with information about weather.
Subtype of {@link InputStoryAreaType}.
*/
export interface InputStoryAreaTypeWeather {
    '@type': 'inputStoryAreaTypeWeather';
    /**
Temperature, in degree Celsius.
*/
    temperature: number;
    /**
Emoji representing the weather.
*/
    emoji: string;
    /**
A color of the area background in the ARGB format.
*/
    background_color: number;
}
/**
An area with an upgraded gift.
Subtype of {@link InputStoryAreaType}.
*/
export interface InputStoryAreaTypeUpgradedGift {
    '@type': 'inputStoryAreaTypeUpgradedGift';
    /**
Unique name of the upgraded gift.
*/
    gift_name: string;
}
/**
Describes a clickable rectangle area on a story media to be added.
*/
export interface InputStoryArea {
    '@type': 'inputStoryArea';
    /**
Position of the area.
*/
    position: StoryAreaPosition;
    /**
Type of the area.
*/
    type: InputStoryAreaType;
}
/**
Contains a list of story areas to be added.
*/
export interface InputStoryAreas {
    '@type': 'inputStoryAreas';
    /**
List of input story areas. Currently, a story can have up to 10 inputStoryAreaTypeLocation,
inputStoryAreaTypeFoundVenue, and inputStoryAreaTypePreviousVenue areas, up to
getOption("story_suggested_reaction_area_count_max") inputStoryAreaTypeSuggestedReaction areas, up to 1
inputStoryAreaTypeMessage area, up to getOption("story_link_area_count_max") inputStoryAreaTypeLink areas if the current
user is a Telegram Premium user, up to 3 inputStoryAreaTypeWeather areas, and up to 1 inputStoryAreaTypeUpgradedGift
area.
*/
    areas: InputStoryArea[];
}
/**
Describes a video file sent in a story.
*/
export interface StoryVideo {
    '@type': 'storyVideo';
    /**
Duration of the video, in seconds.
*/
    duration: number;
    /**
Video width.
*/
    width: number;
    /**
Video height.
*/
    height: number;
    /**
True, if stickers were added to the video. The list of corresponding sticker sets can be received using
getAttachedStickerSets.
*/
    has_stickers?: boolean;
    /**
True, if the video has no sound.
*/
    is_animation?: boolean;
    /**
Video minithumbnail; may be null.
*/
    minithumbnail: Minithumbnail;
    /**
Video thumbnail in JPEG or MPEG4 format; may be null.
*/
    thumbnail: Thumbnail;
    /**
Size of file prefix, which is expected to be preloaded, in bytes.
*/
    preload_prefix_size: number;
    /**
Timestamp of the frame used as video thumbnail.
*/
    cover_frame_timestamp: number;
    /**
File containing the video.
*/
    video: File;
}
/**
Contains the content of a story.
Subtype of {@link StoryContent}.
*/
export interface StoryContentPhoto {
    '@type': 'storyContentPhoto';
    /**
The photo.
*/
    photo: Photo;
}
/**
A video story.
Subtype of {@link StoryContent}.
*/
export interface StoryContentVideo {
    '@type': 'storyContentVideo';
    /**
The video in MPEG4 format.
*/
    video: StoryVideo;
    /**
Alternative version of the video in MPEG4 format, encoded with H.264 codec; may be null.
*/
    alternative_video: StoryVideo;
}
/**
A story content that is not supported in the current TDLib version.
Subtype of {@link StoryContent}.
*/
export interface StoryContentUnsupported {
    '@type': 'storyContentUnsupported';
}
/**
The content of a story to send.
Subtype of {@link InputStoryContent}.
*/
export interface InputStoryContentPhoto {
    '@type': 'inputStoryContentPhoto';
    /**
Photo to send. The photo must be at most 10 MB in size. The photo size must be 1080x1920.
*/
    photo: InputFile;
    /**
File identifiers of the stickers added to the photo, if applicable.
*/
    added_sticker_file_ids: number[];
}
/**
A video story.
Subtype of {@link InputStoryContent}.
*/
export interface InputStoryContentVideo {
    '@type': 'inputStoryContentVideo';
    /**
Video to be sent. The video size must be 720x1280. The video must be streamable and stored in MPEG4 format, after
encoding with H.265 codec and key frames added each second.
*/
    video: InputFile;
    /**
File identifiers of the stickers added to the video, if applicable.
*/
    added_sticker_file_ids: number[];
    /**
Precise duration of the video, in seconds; 0-60.
*/
    duration: number;
    /**
Timestamp of the frame, which will be used as video thumbnail.
*/
    cover_frame_timestamp: number;
    /**
True, if the video has no sound.
*/
    is_animation?: boolean;
}
/**
Describes a list of stories.
Subtype of {@link StoryList}.
*/
export interface StoryListMain {
    '@type': 'storyListMain';
}
/**
The list of stories, shown in the Arvhive chat list.
Subtype of {@link StoryList}.
*/
export interface StoryListArchive {
    '@type': 'storyListArchive';
}
/**
Contains information about the origin of a story that was reposted.
Subtype of {@link StoryOrigin}.
*/
export interface StoryOriginPublicStory {
    '@type': 'storyOriginPublicStory';
    /**
Identifier of the chat that posted original story.
*/
    chat_id: number;
    /**
Story identifier of the original story.
*/
    story_id: number;
}
/**
The original story was sent by an unknown user.
Subtype of {@link StoryOrigin}.
*/
export interface StoryOriginHiddenUser {
    '@type': 'storyOriginHiddenUser';
    /**
Name of the story sender.
*/
    sender_name: string;
}
/**
Contains information about original story that was reposted.
*/
export interface StoryRepostInfo {
    '@type': 'storyRepostInfo';
    /**
Origin of the story that was reposted.
*/
    origin: StoryOrigin;
    /**
True, if story content was modified during reposting; otherwise, story wasn't modified.
*/
    is_content_modified?: boolean;
}
/**
Contains information about interactions with a story.
*/
export interface StoryInteractionInfo {
    '@type': 'storyInteractionInfo';
    /**
Number of times the story was viewed.
*/
    view_count: number;
    /**
Number of times the story was forwarded; 0 if none or unknown.
*/
    forward_count: number;
    /**
Number of reactions added to the story; 0 if none or unknown.
*/
    reaction_count: number;
    /**
Identifiers of at most 3 recent viewers of the story.
*/
    recent_viewer_user_ids: number[];
}
/**
Represents a story.
*/
export interface Story {
    '@type': 'story';
    /**
Unique story identifier among stories of the given sender.
*/
    id: number;
    /**
Identifier of the chat that posted the story.
*/
    sender_chat_id: number;
    /**
Identifier of the sender of the story; may be null if the story is posted on behalf of the sender_chat_id.
*/
    sender_id: MessageSender;
    /**
Point in time (Unix timestamp) when the story was published.
*/
    date: number;
    /**
True, if the story is being sent by the current user.
*/
    is_being_sent?: boolean;
    /**
True, if the story is being edited by the current user.
*/
    is_being_edited?: boolean;
    /**
True, if the story was edited.
*/
    is_edited?: boolean;
    /**
True, if the story is saved in the sender's profile and will be available there after expiration.
*/
    is_posted_to_chat_page?: boolean;
    /**
True, if the story is visible only for the current user.
*/
    is_visible_only_for_self?: boolean;
    /**
True, if the story can be deleted.
*/
    can_be_deleted?: boolean;
    /**
True, if the story can be edited.
*/
    can_be_edited?: boolean;
    /**
True, if the story can be forwarded as a message. Otherwise, screenshots and saving of the story content must be also
forbidden.
*/
    can_be_forwarded?: boolean;
    /**
True, if the story can be replied in the chat with the story sender.
*/
    can_be_replied?: boolean;
    /**
True, if the story's is_posted_to_chat_page value can be changed.
*/
    can_toggle_is_posted_to_chat_page?: boolean;
    /**
True, if the story statistics are available through getStoryStatistics.
*/
    can_get_statistics?: boolean;
    /**
True, if interactions with the story can be received through getStoryInteractions.
*/
    can_get_interactions?: boolean;
    /**
True, if users viewed the story can't be received, because the story has expired more than
getOption("story_viewers_expiration_delay") seconds ago.
*/
    has_expired_viewers?: boolean;
    /**
Information about the original story; may be null if the story wasn't reposted.
*/
    repost_info: StoryRepostInfo;
    /**
Information about interactions with the story; may be null if the story isn't owned or there were no interactions.
*/
    interaction_info: StoryInteractionInfo;
    /**
Type of the chosen reaction; may be null if none.
*/
    chosen_reaction_type: ReactionType;
    /**
Privacy rules affecting story visibility; may be approximate for non-owned stories.
*/
    privacy_settings: StoryPrivacySettings;
    /**
Content of the story.
*/
    content: StoryContent;
    /**
Clickable areas to be shown on the story content.
*/
    areas: StoryArea[];
    /**
Caption of the story.
*/
    caption: FormattedText;
}
/**
Represents a list of stories.
*/
export interface Stories {
    '@type': 'stories';
    /**
Approximate total number of stories found.
*/
    total_count: number;
    /**
The list of stories.
*/
    stories: Story[];
    /**
Identifiers of the pinned stories; returned only in getChatPostedToChatPageStories with from_story_id == 0.
*/
    pinned_story_ids: number[];
}
/**
Contains a list of stories found by a search.
*/
export interface FoundStories {
    '@type': 'foundStories';
    /**
Approximate total number of stories found.
*/
    total_count: number;
    /**
List of stories.
*/
    stories: Story[];
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Contains identifier of a story along with identifier of its sender.
*/
export interface StoryFullId {
    '@type': 'storyFullId';
    /**
Identifier of the chat that posted the story.
*/
    sender_chat_id: number;
    /**
Unique story identifier among stories of the given sender.
*/
    story_id: number;
}
/**
Contains basic information about a story.
*/
export interface StoryInfo {
    '@type': 'storyInfo';
    /**
Unique story identifier among stories of the given sender.
*/
    story_id: number;
    /**
Point in time (Unix timestamp) when the story was published.
*/
    date: number;
    /**
True, if the story is available only to close friends.
*/
    is_for_close_friends?: boolean;
}
/**
Describes active stories posted by a chat.
*/
export interface ChatActiveStories {
    '@type': 'chatActiveStories';
    /**
Identifier of the chat that posted the stories.
*/
    chat_id: number;
    /**
Identifier of the story list in which the stories are shown; may be null if the stories aren't shown in a story list.
*/
    list: StoryList;
    /**
A parameter used to determine order of the stories in the story list; 0 if the stories doesn't need to be shown in the
story list. Stories must be sorted by the pair (order, story_sender_chat_id) in descending order.
*/
    order: number;
    /**
Identifier of the last read active story.
*/
    max_read_story_id: number;
    /**
Basic information about the stories; use getStory to get full information about the stories. The stories are in
chronological order (i.e., in order of increasing story identifiers).
*/
    stories: StoryInfo[];
}
/**
Describes type of interaction with a story.
Subtype of {@link StoryInteractionType}.
*/
export interface StoryInteractionTypeView {
    '@type': 'storyInteractionTypeView';
    /**
Type of the reaction that was chosen by the viewer; may be null if none.
*/
    chosen_reaction_type: ReactionType;
}
/**
A forward of the story as a message.
Subtype of {@link StoryInteractionType}.
*/
export interface StoryInteractionTypeForward {
    '@type': 'storyInteractionTypeForward';
    /**
The message with story forward.
*/
    message: Message;
}
/**
A repost of the story as a story.
Subtype of {@link StoryInteractionType}.
*/
export interface StoryInteractionTypeRepost {
    '@type': 'storyInteractionTypeRepost';
    /**
The reposted story.
*/
    story: Story;
}
/**
Represents interaction with a story.
*/
export interface StoryInteraction {
    '@type': 'storyInteraction';
    /**
Identifier of the user or chat that made the interaction.
*/
    actor_id: MessageSender;
    /**
Approximate point in time (Unix timestamp) when the interaction happened.
*/
    interaction_date: number;
    /**
Block list to which the actor is added; may be null if none or for chat stories.
*/
    block_list: BlockList;
    /**
Type of the interaction.
*/
    type: StoryInteractionType;
}
/**
Represents a list of interactions with a story.
*/
export interface StoryInteractions {
    '@type': 'storyInteractions';
    /**
Approximate total number of interactions found.
*/
    total_count: number;
    /**
Approximate total number of found forwards and reposts; always 0 for chat stories.
*/
    total_forward_count: number;
    /**
Approximate total number of found reactions; always 0 for chat stories.
*/
    total_reaction_count: number;
    /**
List of story interactions.
*/
    interactions: StoryInteraction[];
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Describes a message that can be used for quick reply.
*/
export interface QuickReplyMessage {
    '@type': 'quickReplyMessage';
    /**
Unique message identifier among all quick replies.
*/
    id: number;
    /**
The sending state of the message; may be null if the message isn't being sent and didn't fail to be sent.
*/
    sending_state: MessageSendingState;
    /**
True, if the message can be edited.
*/
    can_be_edited?: boolean;
    /**
The identifier of the quick reply message to which the message replies; 0 if none.
*/
    reply_to_message_id: number;
    /**
If non-zero, the user identifier of the bot through which this message was sent.
*/
    via_bot_user_id: number;
    /**
Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be
grouped together in albums.
*/
    media_album_id: string;
    /**
Content of the message.
*/
    content: MessageContent;
    /**
Inline keyboard reply markup for the message; may be null if none.
*/
    reply_markup: ReplyMarkup;
}
/**
Contains a list of quick reply messages.
*/
export interface QuickReplyMessages {
    '@type': 'quickReplyMessages';
    /**
List of quick reply messages; messages may be null.
*/
    messages: QuickReplyMessage[];
}
/**
Describes a shortcut that can be used for a quick reply.
*/
export interface QuickReplyShortcut {
    '@type': 'quickReplyShortcut';
    /**
Unique shortcut identifier.
*/
    id: number;
    /**
The name of the shortcut that can be used to use the shortcut.
*/
    name: string;
    /**
The first shortcut message.
*/
    first_message: QuickReplyMessage;
    /**
The total number of messages in the shortcut.
*/
    message_count: number;
}
/**
Describes a public forward or repost of a story.
Subtype of {@link PublicForward}.
*/
export interface PublicForwardMessage {
    '@type': 'publicForwardMessage';
    /**
Information about the message.
*/
    message: Message;
}
/**
Contains a public repost to a story.
Subtype of {@link PublicForward}.
*/
export interface PublicForwardStory {
    '@type': 'publicForwardStory';
    /**
Information about the story.
*/
    story: Story;
}
/**
Represents a list of public forwards and reposts as a story of a message or a story.
*/
export interface PublicForwards {
    '@type': 'publicForwards';
    /**
Approximate total number of messages and stories found.
*/
    total_count: number;
    /**
List of found public forwards and reposts.
*/
    forwards: PublicForward[];
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Describes media previews of a bot.
*/
export interface BotMediaPreview {
    '@type': 'botMediaPreview';
    /**
Point in time (Unix timestamp) when the preview was added or changed last time.
*/
    date: number;
    /**
Content of the preview.
*/
    content: StoryContent;
}
/**
Contains a list of media previews of a bot.
*/
export interface BotMediaPreviews {
    '@type': 'botMediaPreviews';
    /**
List of media previews.
*/
    previews: BotMediaPreview[];
}
/**
Contains a list of media previews of a bot for the given language and the list of languages for which the bot has
dedicated previews.
*/
export interface BotMediaPreviewInfo {
    '@type': 'botMediaPreviewInfo';
    /**
List of media previews.
*/
    previews: BotMediaPreview[];
    /**
List of language codes for which the bot has dedicated previews.
*/
    language_codes: string[];
}
/**
Contains a list of features available on a specific chat boost level.
*/
export interface ChatBoostLevelFeatures {
    '@type': 'chatBoostLevelFeatures';
    /**
Target chat boost level.
*/
    level: number;
    /**
Number of stories that the chat can publish daily.
*/
    story_per_day_count: number;
    /**
Number of custom emoji reactions that can be added to the list of available reactions.
*/
    custom_emoji_reaction_count: number;
    /**
Number of custom colors for chat title.
*/
    title_color_count: number;
    /**
Number of custom colors for profile photo background.
*/
    profile_accent_color_count: number;
    /**
True, if custom emoji for profile background can be set.
*/
    can_set_profile_background_custom_emoji?: boolean;
    /**
Number of custom colors for background of empty chat photo, replies to messages and link previews.
*/
    accent_color_count: number;
    /**
True, if custom emoji for reply header and link preview background can be set.
*/
    can_set_background_custom_emoji?: boolean;
    /**
True, if emoji status can be set.
*/
    can_set_emoji_status?: boolean;
    /**
Number of chat theme backgrounds that can be set as chat background.
*/
    chat_theme_background_count: number;
    /**
True, if custom background can be set in the chat for all users.
*/
    can_set_custom_background?: boolean;
    /**
True, if custom emoji sticker set can be set for the chat.
*/
    can_set_custom_emoji_sticker_set?: boolean;
    /**
True, if speech recognition can be used for video note and voice note messages by all users.
*/
    can_recognize_speech?: boolean;
    /**
True, if sponsored messages can be disabled in the chat.
*/
    can_disable_sponsored_messages?: boolean;
}
/**
Contains a list of features available on the first chat boost levels.
*/
export interface ChatBoostFeatures {
    '@type': 'chatBoostFeatures';
    /**
The list of features.
*/
    features: ChatBoostLevelFeatures[];
    /**
The minimum boost level required to set custom emoji for profile background.
*/
    min_profile_background_custom_emoji_boost_level: number;
    /**
The minimum boost level required to set custom emoji for reply header and link preview background; for channel chats
only.
*/
    min_background_custom_emoji_boost_level: number;
    /**
The minimum boost level required to set emoji status.
*/
    min_emoji_status_boost_level: number;
    /**
The minimum boost level required to set a chat theme background as chat background.
*/
    min_chat_theme_background_boost_level: number;
    /**
The minimum boost level required to set custom chat background.
*/
    min_custom_background_boost_level: number;
    /**
The minimum boost level required to set custom emoji sticker set for the chat; for supergroup chats only.
*/
    min_custom_emoji_sticker_set_boost_level: number;
    /**
The minimum boost level allowing to recognize speech in video note and voice note messages for non-Premium users; for
supergroup chats only.
*/
    min_speech_recognition_boost_level: number;
    /**
The minimum boost level allowing to disable sponsored messages in the chat; for channel chats only.
*/
    min_sponsored_message_disable_boost_level: number;
}
/**
Describes source of a chat boost.
Subtype of {@link ChatBoostSource}.
*/
export interface ChatBoostSourceGiftCode {
    '@type': 'chatBoostSourceGiftCode';
    /**
Identifier of a user, for which the gift code was created.
*/
    user_id: number;
    /**
The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has
already been claimed.
*/
    gift_code: string;
}
/**
The chat created a giveaway.
Subtype of {@link ChatBoostSource}.
*/
export interface ChatBoostSourceGiveaway {
    '@type': 'chatBoostSourceGiveaway';
    /**
Identifier of a user that won in the giveaway; 0 if none.
*/
    user_id: number;
    /**
The created Telegram Premium gift code if it was used by the user or can be claimed by the current user; an empty string
otherwise; for Telegram Premium giveways only.
*/
    gift_code: string;
    /**
Number of Telegram Stars distributed among winners of the giveaway.
*/
    star_count: number;
    /**
Identifier of the corresponding giveaway message; can be an identifier of a deleted message.
*/
    giveaway_message_id: number;
    /**
True, if the winner for the corresponding giveaway prize wasn't chosen, because there were not enough participants.
*/
    is_unclaimed?: boolean;
}
/**
A user with Telegram Premium subscription or gifted Telegram Premium boosted the chat.
Subtype of {@link ChatBoostSource}.
*/
export interface ChatBoostSourcePremium {
    '@type': 'chatBoostSourcePremium';
    /**
Identifier of the user.
*/
    user_id: number;
}
/**
Describes a prepaid giveaway.
*/
export interface PrepaidGiveaway {
    '@type': 'prepaidGiveaway';
    /**
Unique identifier of the prepaid giveaway.
*/
    id: string;
    /**
Number of users which will receive giveaway prize.
*/
    winner_count: number;
    /**
Prize of the giveaway.
*/
    prize: GiveawayPrize;
    /**
The number of boosts received by the chat from the giveaway; for Telegram Star giveaways only.
*/
    boost_count: number;
    /**
Point in time (Unix timestamp) when the giveaway was paid.
*/
    payment_date: number;
}
/**
Describes current boost status of a chat.
*/
export interface ChatBoostStatus {
    '@type': 'chatBoostStatus';
    /**
An HTTP URL, which can be used to boost the chat.
*/
    boost_url: string;
    /**
Identifiers of boost slots of the current user applied to the chat.
*/
    applied_slot_ids: number[];
    /**
Current boost level of the chat.
*/
    level: number;
    /**
The number of boosts received by the chat from created Telegram Premium gift codes and giveaways; always 0 if the
current user isn't an administrator in the chat.
*/
    gift_code_boost_count: number;
    /**
The number of boosts received by the chat.
*/
    boost_count: number;
    /**
The number of boosts added to reach the current level.
*/
    current_level_boost_count: number;
    /**
The number of boosts needed to reach the next level; 0 if the next level isn't available.
*/
    next_level_boost_count: number;
    /**
Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator
in the chat.
*/
    premium_member_count: number;
    /**
A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the
chat.
*/
    premium_member_percentage: number;
    /**
The list of prepaid giveaways available for the chat; only for chat administrators.
*/
    prepaid_giveaways: PrepaidGiveaway[];
}
/**
Describes a boost applied to a chat.
*/
export interface ChatBoost {
    '@type': 'chatBoost';
    /**
Unique identifier of the boost.
*/
    id: string;
    /**
The number of identical boosts applied.
*/
    count: number;
    /**
Source of the boost.
*/
    source: ChatBoostSource;
    /**
Point in time (Unix timestamp) when the chat was boosted.
*/
    start_date: number;
    /**
Point in time (Unix timestamp) when the boost will expire.
*/
    expiration_date: number;
}
/**
Contains a list of boosts applied to a chat.
*/
export interface FoundChatBoosts {
    '@type': 'foundChatBoosts';
    /**
Total number of boosts applied to the chat.
*/
    total_count: number;
    /**
List of boosts.
*/
    boosts: ChatBoost[];
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Describes a slot for chat boost.
*/
export interface ChatBoostSlot {
    '@type': 'chatBoostSlot';
    /**
Unique identifier of the slot.
*/
    slot_id: number;
    /**
Identifier of the currently boosted chat; 0 if none.
*/
    currently_boosted_chat_id: number;
    /**
Point in time (Unix timestamp) when the chat was boosted; 0 if none.
*/
    start_date: number;
    /**
Point in time (Unix timestamp) when the boost will expire.
*/
    expiration_date: number;
    /**
Point in time (Unix timestamp) after which the boost can be used for another chat.
*/
    cooldown_until_date: number;
}
/**
Contains a list of chat boost slots.
*/
export interface ChatBoostSlots {
    '@type': 'chatBoostSlots';
    /**
List of boost slots.
*/
    slots: ChatBoostSlot[];
}
/**
Describes the reason why a code needs to be re-sent.
Subtype of {@link ResendCodeReason}.
*/
export interface ResendCodeReasonUserRequest {
    '@type': 'resendCodeReasonUserRequest';
}
/**
The code is re-sent, because device verification has failed.
Subtype of {@link ResendCodeReason}.
*/
export interface ResendCodeReasonVerificationFailed {
    '@type': 'resendCodeReasonVerificationFailed';
    /**
Cause of the verification failure, for example, PLAY_SERVICES_NOT_AVAILABLE, APNS_RECEIVE_TIMEOUT, or APNS_INIT_FAILED.
*/
    error_message: string;
}
/**
Describes the reason why a call was discarded.
Subtype of {@link CallDiscardReason}.
*/
export interface CallDiscardReasonEmpty {
    '@type': 'callDiscardReasonEmpty';
}
/**
The call was ended before the conversation started. It was canceled by the caller or missed by the other party.
Subtype of {@link CallDiscardReason}.
*/
export interface CallDiscardReasonMissed {
    '@type': 'callDiscardReasonMissed';
}
/**
The call was ended before the conversation started. It was declined by the other party.
Subtype of {@link CallDiscardReason}.
*/
export interface CallDiscardReasonDeclined {
    '@type': 'callDiscardReasonDeclined';
}
/**
The call was ended during the conversation because the users were disconnected.
Subtype of {@link CallDiscardReason}.
*/
export interface CallDiscardReasonDisconnected {
    '@type': 'callDiscardReasonDisconnected';
}
/**
The call was ended because one of the parties hung up.
Subtype of {@link CallDiscardReason}.
*/
export interface CallDiscardReasonHungUp {
    '@type': 'callDiscardReasonHungUp';
}
/**
The call was ended because it has been used successfully to transfer private encryption key for the associated group
call.
Subtype of {@link CallDiscardReason}.
*/
export interface CallDiscardReasonAllowGroupCall {
    '@type': 'callDiscardReasonAllowGroupCall';
    /**
Encrypted using the call private key encryption key for the associated group call.
*/
    encrypted_group_call_key: string;
}
/**
Specifies the supported call protocols.
*/
export interface CallProtocol {
    '@type': 'callProtocol';
    /**
True, if UDP peer-to-peer connections are supported.
*/
    udp_p2p?: boolean;
    /**
True, if connection through UDP reflectors is supported.
*/
    udp_reflector?: boolean;
    /**
The minimum supported API layer; use 65.
*/
    min_layer: number;
    /**
The maximum supported API layer; use 92.
*/
    max_layer: number;
    /**
List of supported tgcalls versions.
*/
    library_versions: string[];
}
/**
Describes the type of call server.
Subtype of {@link CallServerType}.
*/
export interface CallServerTypeTelegramReflector {
    '@type': 'callServerTypeTelegramReflector';
    /**
A peer tag to be used with the reflector.
*/
    peer_tag: string;
    /**
True, if the server uses TCP instead of UDP.
*/
    is_tcp?: boolean;
}
/**
A WebRTC server.
Subtype of {@link CallServerType}.
*/
export interface CallServerTypeWebrtc {
    '@type': 'callServerTypeWebrtc';
    /**
Username to be used for authentication.
*/
    username: string;
    /**
Authentication password.
*/
    password: string;
    /**
True, if the server supports TURN.
*/
    supports_turn?: boolean;
    /**
True, if the server supports STUN.
*/
    supports_stun?: boolean;
}
/**
Describes a server for relaying call data.
*/
export interface CallServer {
    '@type': 'callServer';
    /**
Server identifier.
*/
    id: string;
    /**
Server IPv4 address.
*/
    ip_address: string;
    /**
Server IPv6 address.
*/
    ipv6_address: string;
    /**
Server port number.
*/
    port: number;
    /**
Server type.
*/
    type: CallServerType;
}
/**
Contains the call identifier.
*/
export interface CallId {
    '@type': 'callId';
    /**
Call identifier.
*/
    id: number;
}
/**
Contains the group call identifier.
*/
export interface GroupCallId {
    '@type': 'groupCallId';
    /**
Group call identifier.
*/
    id: number;
}
/**
Describes the current call state.
Subtype of {@link CallState}.
*/
export interface CallStatePending {
    '@type': 'callStatePending';
    /**
True, if the call has already been created by the server.
*/
    is_created?: boolean;
    /**
True, if the call has already been received by the other party.
*/
    is_received?: boolean;
}
/**
The call has been answered and encryption keys are being exchanged.
Subtype of {@link CallState}.
*/
export interface CallStateExchangingKeys {
    '@type': 'callStateExchangingKeys';
}
/**
The call is ready to use.
Subtype of {@link CallState}.
*/
export interface CallStateReady {
    '@type': 'callStateReady';
    /**
Call protocols supported by the other call participant.
*/
    protocol: CallProtocol;
    /**
List of available call servers.
*/
    servers: CallServer[];
    /**
A JSON-encoded call config.
*/
    config: string;
    /**
Call encryption key.
*/
    encryption_key: string;
    /**
Encryption key fingerprint represented as 4 emoji.
*/
    emojis: string[];
    /**
True, if peer-to-peer connection is allowed by users privacy settings.
*/
    allow_p2p?: boolean;
    /**
Custom JSON-encoded call parameters to be passed to tgcalls.
*/
    custom_parameters: string;
}
/**
The call is hanging up after discardCall has been called.
Subtype of {@link CallState}.
*/
export interface CallStateHangingUp {
    '@type': 'callStateHangingUp';
}
/**
The call has ended successfully.
Subtype of {@link CallState}.
*/
export interface CallStateDiscarded {
    '@type': 'callStateDiscarded';
    /**
The reason why the call has ended.
*/
    reason: CallDiscardReason;
    /**
True, if the call rating must be sent to the server.
*/
    need_rating?: boolean;
    /**
True, if the call debug information must be sent to the server.
*/
    need_debug_information?: boolean;
    /**
True, if the call log must be sent to the server.
*/
    need_log?: boolean;
}
/**
The call has ended with an error.
Subtype of {@link CallState}.
*/
export interface CallStateError {
    '@type': 'callStateError';
    /**
Error. An error with the code 4005000 will be returned if an outgoing call is missed because of an expired timeout.
*/
    error: Error;
}
/**
Describes the quality of a group call video.
Subtype of {@link GroupCallVideoQuality}.
*/
export interface GroupCallVideoQualityThumbnail {
    '@type': 'groupCallVideoQualityThumbnail';
}
/**
The medium video quality.
Subtype of {@link GroupCallVideoQuality}.
*/
export interface GroupCallVideoQualityMedium {
    '@type': 'groupCallVideoQualityMedium';
}
/**
The best available video quality.
Subtype of {@link GroupCallVideoQuality}.
*/
export interface GroupCallVideoQualityFull {
    '@type': 'groupCallVideoQualityFull';
}
/**
Describes an available stream in a group call.
*/
export interface GroupCallStream {
    '@type': 'groupCallStream';
    /**
Identifier of an audio/video channel.
*/
    channel_id: number;
    /**
Scale of segment durations in the stream. The duration is 1000/(2**scale) milliseconds.
*/
    scale: number;
    /**
Point in time when the stream currently ends; Unix timestamp in milliseconds.
*/
    time_offset: number;
}
/**
Represents a list of group call streams.
*/
export interface GroupCallStreams {
    '@type': 'groupCallStreams';
    /**
A list of group call streams.
*/
    streams: GroupCallStream[];
}
/**
Represents an RTMP URL.
*/
export interface RtmpUrl {
    '@type': 'rtmpUrl';
    /**
The URL.
*/
    url: string;
    /**
Stream key.
*/
    stream_key: string;
}
/**
Describes a recently speaking participant in a group call.
*/
export interface GroupCallRecentSpeaker {
    '@type': 'groupCallRecentSpeaker';
    /**
Group call participant identifier.
*/
    participant_id: MessageSender;
    /**
True, is the user has spoken recently.
*/
    is_speaking?: boolean;
}
/**
Describes a group call.
*/
export interface GroupCall {
    '@type': 'groupCall';
    /**
Group call identifier.
*/
    id: number;
    /**
Identifier of one-to-one call from which the group call was created; 0 if unknown.
*/
    from_call_id: number;
    /**
Group call title.
*/
    title: string;
    /**
Point in time (Unix timestamp) when the group call is expected to be started by an administrator; 0 if it is already
active or was ended.
*/
    scheduled_start_date: number;
    /**
True, if the group call is scheduled and the current user will receive a notification when the group call starts.
*/
    enabled_start_notification?: boolean;
    /**
True, if the call is active.
*/
    is_active?: boolean;
    /**
True, if the chat is an RTMP stream instead of an ordinary video chat.
*/
    is_rtmp_stream?: boolean;
    /**
True, if the call is joined.
*/
    is_joined?: boolean;
    /**
True, if user was kicked from the call because of network loss and the call needs to be rejoined.
*/
    need_rejoin?: boolean;
    /**
True, if the current user can manage the group call.
*/
    can_be_managed?: boolean;
    /**
Number of participants in the group call.
*/
    participant_count: number;
    /**
True, if group call participants, which are muted, aren't returned in participant list.
*/
    has_hidden_listeners?: boolean;
    /**
True, if all group call participants are loaded.
*/
    loaded_all_participants?: boolean;
    /**
At most 3 recently speaking users in the group call.
*/
    recent_speakers: GroupCallRecentSpeaker[];
    /**
True, if the current user's video is enabled.
*/
    is_my_video_enabled?: boolean;
    /**
True, if the current user's video is paused.
*/
    is_my_video_paused?: boolean;
    /**
True, if the current user can broadcast video or share screen.
*/
    can_enable_video?: boolean;
    /**
True, if only group call administrators can unmute new participants.
*/
    mute_new_participants?: boolean;
    /**
True, if the current user can enable or disable mute_new_participants setting.
*/
    can_toggle_mute_new_participants?: boolean;
    /**
Duration of the ongoing group call recording, in seconds; 0 if none. An updateGroupCall update is not triggered when
value of this field changes, but the same recording goes on.
*/
    record_duration: number;
    /**
True, if a video file is being recorded for the call.
*/
    is_video_recorded?: boolean;
    /**
Call duration, in seconds; for ended calls only.
*/
    duration: number;
}
/**
Describes a group of video synchronization source identifiers.
*/
export interface GroupCallVideoSourceGroup {
    '@type': 'groupCallVideoSourceGroup';
    /**
The semantics of sources, one of "SIM" or "FID".
*/
    semantics: string;
    /**
The list of synchronization source identifiers.
*/
    source_ids: number[];
}
/**
Contains information about a group call participant's video channel.
*/
export interface GroupCallParticipantVideoInfo {
    '@type': 'groupCallParticipantVideoInfo';
    /**
List of synchronization source groups of the video.
*/
    source_groups: GroupCallVideoSourceGroup[];
    /**
Video channel endpoint identifier.
*/
    endpoint_id: string;
    /**
True, if the video is paused. This flag needs to be ignored, if new video frames are received.
*/
    is_paused?: boolean;
}
/**
Represents a group call participant.
*/
export interface GroupCallParticipant {
    '@type': 'groupCallParticipant';
    /**
Identifier of the group call participant.
*/
    participant_id: MessageSender;
    /**
User's audio channel synchronization source identifier.
*/
    audio_source_id: number;
    /**
User's screen sharing audio channel synchronization source identifier.
*/
    screen_sharing_audio_source_id: number;
    /**
Information about user's video channel; may be null if there is no active video.
*/
    video_info: GroupCallParticipantVideoInfo;
    /**
Information about user's screen sharing video channel; may be null if there is no active screen sharing video.
*/
    screen_sharing_video_info: GroupCallParticipantVideoInfo;
    /**
The participant user's bio or the participant chat's description.
*/
    bio: string;
    /**
True, if the participant is the current user.
*/
    is_current_user?: boolean;
    /**
True, if the participant is speaking as set by setGroupCallParticipantIsSpeaking.
*/
    is_speaking?: boolean;
    /**
True, if the participant hand is raised.
*/
    is_hand_raised?: boolean;
    /**
True, if the current user can mute the participant for all other group call participants.
*/
    can_be_muted_for_all_users?: boolean;
    /**
True, if the current user can allow the participant to unmute themselves or unmute the participant (if the participant
is the current user).
*/
    can_be_unmuted_for_all_users?: boolean;
    /**
True, if the current user can mute the participant only for self.
*/
    can_be_muted_for_current_user?: boolean;
    /**
True, if the current user can unmute the participant for self.
*/
    can_be_unmuted_for_current_user?: boolean;
    /**
True, if the participant is muted for all users.
*/
    is_muted_for_all_users?: boolean;
    /**
True, if the participant is muted for the current user.
*/
    is_muted_for_current_user?: boolean;
    /**
True, if the participant is muted for all users, but can unmute themselves.
*/
    can_unmute_self?: boolean;
    /**
Participant's volume level; 1-20000 in hundreds of percents.
*/
    volume_level: number;
    /**
User's order in the group call participant list. Orders must be compared lexicographically. The bigger is order, the
higher is user in the list. If order is empty, the user must be removed from the participant list.
*/
    order: string;
}
/**
Describes the exact type of problem with a call.
Subtype of {@link CallProblem}.
*/
export interface CallProblemEcho {
    '@type': 'callProblemEcho';
}
/**
The user heard background noise.
Subtype of {@link CallProblem}.
*/
export interface CallProblemNoise {
    '@type': 'callProblemNoise';
}
/**
The other side kept disappearing.
Subtype of {@link CallProblem}.
*/
export interface CallProblemInterruptions {
    '@type': 'callProblemInterruptions';
}
/**
The speech was distorted.
Subtype of {@link CallProblem}.
*/
export interface CallProblemDistortedSpeech {
    '@type': 'callProblemDistortedSpeech';
}
/**
The user couldn't hear the other side.
Subtype of {@link CallProblem}.
*/
export interface CallProblemSilentLocal {
    '@type': 'callProblemSilentLocal';
}
/**
The other side couldn't hear the user.
Subtype of {@link CallProblem}.
*/
export interface CallProblemSilentRemote {
    '@type': 'callProblemSilentRemote';
}
/**
The call ended unexpectedly.
Subtype of {@link CallProblem}.
*/
export interface CallProblemDropped {
    '@type': 'callProblemDropped';
}
/**
The video was distorted.
Subtype of {@link CallProblem}.
*/
export interface CallProblemDistortedVideo {
    '@type': 'callProblemDistortedVideo';
}
/**
The video was pixelated.
Subtype of {@link CallProblem}.
*/
export interface CallProblemPixelatedVideo {
    '@type': 'callProblemPixelatedVideo';
}
/**
Describes a call.
*/
export interface Call {
    '@type': 'call';
    /**
Call identifier, not persistent.
*/
    id: number;
    /**
User identifier of the other call participant.
*/
    user_id: number;
    /**
True, if the call is outgoing.
*/
    is_outgoing?: boolean;
    /**
True, if the call is a video call.
*/
    is_video?: boolean;
    /**
Call state.
*/
    state: CallState;
    /**
Identifier of the group call associated with the call; 0 if the group call isn't created yet. The group call can be
received through the method getGroupCall.
*/
    group_call_id: number;
}
/**
Contains settings for Firebase Authentication in the official applications.
Subtype of {@link FirebaseAuthenticationSettings}.
*/
export interface FirebaseAuthenticationSettingsAndroid {
    '@type': 'firebaseAuthenticationSettingsAndroid';
}
/**
Settings for Firebase Authentication in the official iOS application.
Subtype of {@link FirebaseAuthenticationSettings}.
*/
export interface FirebaseAuthenticationSettingsIos {
    '@type': 'firebaseAuthenticationSettingsIos';
    /**
Device token from Apple Push Notification service.
*/
    device_token: string;
    /**
True, if App Sandbox is enabled.
*/
    is_app_sandbox?: boolean;
}
/**
Contains settings for the authentication of the user's phone number.
*/
export interface PhoneNumberAuthenticationSettings {
    '@type': 'phoneNumberAuthenticationSettings';
    /**
Pass true if the authentication code may be sent via a flash call to the specified phone number.
*/
    allow_flash_call?: boolean;
    /**
Pass true if the authentication code may be sent via a missed call to the specified phone number.
*/
    allow_missed_call?: boolean;
    /**
Pass true if the authenticated phone number is used on the current device.
*/
    is_current_phone_number?: boolean;
    /**
Pass true if there is a SIM card in the current device, but it is not possible to check whether phone number matches.
*/
    has_unknown_phone_number?: boolean;
    /**
For official applications only. True, if the application can use Android SMS Retriever API (requires Google Play
Services >= 10.2) to automatically receive the authentication code from the SMS. See
https://developers.google.com/identity/sms-retriever/ for more details.
*/
    allow_sms_retriever_api?: boolean;
    /**
For official Android and iOS applications only; pass null otherwise. Settings for Firebase Authentication.
*/
    firebase_authentication_settings: FirebaseAuthenticationSettings;
    /**
List of up to 20 authentication tokens, recently received in updateOption("authentication_token") in previously logged
out sessions.
*/
    authentication_tokens: string[];
}
/**
Represents a reaction applied to a message.
*/
export interface AddedReaction {
    '@type': 'addedReaction';
    /**
Type of the reaction.
*/
    type: ReactionType;
    /**
Identifier of the chat member, applied the reaction.
*/
    sender_id: MessageSender;
    /**
True, if the reaction was added by the current user.
*/
    is_outgoing?: boolean;
    /**
Point in time (Unix timestamp) when the reaction was added.
*/
    date: number;
}
/**
Represents a list of reactions added to a message.
*/
export interface AddedReactions {
    '@type': 'addedReactions';
    /**
The total number of found reactions.
*/
    total_count: number;
    /**
The list of added reactions.
*/
    reactions: AddedReaction[];
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Represents an available reaction.
*/
export interface AvailableReaction {
    '@type': 'availableReaction';
    /**
Type of the reaction.
*/
    type: ReactionType;
    /**
True, if Telegram Premium is needed to send the reaction.
*/
    needs_premium?: boolean;
}
/**
Represents a list of reactions that can be added to a message.
*/
export interface AvailableReactions {
    '@type': 'availableReactions';
    /**
List of reactions to be shown at the top.
*/
    top_reactions: AvailableReaction[];
    /**
List of recently used reactions.
*/
    recent_reactions: AvailableReaction[];
    /**
List of popular reactions.
*/
    popular_reactions: AvailableReaction[];
    /**
True, if any custom emoji reaction can be added by Telegram Premium subscribers.
*/
    allow_custom_emoji?: boolean;
    /**
True, if the reactions will be tags and the message can be found by them.
*/
    are_tags?: boolean;
    /**
The reason why the current user can't add reactions to the message, despite some other users can; may be null if none.
*/
    unavailability_reason: ReactionUnavailabilityReason;
}
/**
Contains information about an emoji reaction.
*/
export interface EmojiReaction {
    '@type': 'emojiReaction';
    /**
Text representation of the reaction.
*/
    emoji: string;
    /**
Reaction title.
*/
    title: string;
    /**
True, if the reaction can be added to new messages and enabled in chats.
*/
    is_active?: boolean;
    /**
Static icon for the reaction.
*/
    static_icon: Sticker;
    /**
Appear animation for the reaction.
*/
    appear_animation: Sticker;
    /**
Select animation for the reaction.
*/
    select_animation: Sticker;
    /**
Activate animation for the reaction.
*/
    activate_animation: Sticker;
    /**
Effect animation for the reaction.
*/
    effect_animation: Sticker;
    /**
Around animation for the reaction; may be null.
*/
    around_animation: Sticker;
    /**
Center animation for the reaction; may be null.
*/
    center_animation: Sticker;
}
/**
Describes why the current user can't add reactions to the message, despite some other users can.
Subtype of {@link ReactionUnavailabilityReason}.
*/
export interface ReactionUnavailabilityReasonAnonymousAdministrator {
    '@type': 'reactionUnavailabilityReasonAnonymousAdministrator';
}
/**
The user isn't a member of the supergroup and can't send messages and reactions there without joining.
Subtype of {@link ReactionUnavailabilityReason}.
*/
export interface ReactionUnavailabilityReasonGuest {
    '@type': 'reactionUnavailabilityReasonGuest';
}
/**
Represents a list of animations.
*/
export interface Animations {
    '@type': 'animations';
    /**
List of animations.
*/
    animations: Animation[];
}
/**
Contains animated stickers which must be used for dice animation rendering.
Subtype of {@link DiceStickers}.
*/
export interface DiceStickersRegular {
    '@type': 'diceStickersRegular';
    /**
The animated sticker with the dice animation.
*/
    sticker: Sticker;
}
/**
Animated stickers to be combined into a slot machine.
Subtype of {@link DiceStickers}.
*/
export interface DiceStickersSlotMachine {
    '@type': 'diceStickersSlotMachine';
    /**
The animated sticker with the slot machine background. The background animation must start playing after all reel
animations finish.
*/
    background: Sticker;
    /**
The animated sticker with the lever animation. The lever animation must play once in the initial dice state.
*/
    lever: Sticker;
    /**
The animated sticker with the left reel.
*/
    left_reel: Sticker;
    /**
The animated sticker with the center reel.
*/
    center_reel: Sticker;
    /**
The animated sticker with the right reel.
*/
    right_reel: Sticker;
}
/**
Represents the result of an importContacts request.
*/
export interface ImportedContacts {
    '@type': 'importedContacts';
    /**
User identifiers of the imported contacts in the same order as they were specified in the request; 0 if the contact is
not yet a registered user.
*/
    user_ids: number[];
    /**
The number of users that imported the corresponding contact; 0 for already registered users or if unavailable.
*/
    importer_count: number[];
}
/**
Describes result of speech recognition in a voice note.
Subtype of {@link SpeechRecognitionResult}.
*/
export interface SpeechRecognitionResultPending {
    '@type': 'speechRecognitionResultPending';
    /**
Partially recognized text.
*/
    partial_text: string;
}
/**
The speech recognition successfully finished.
Subtype of {@link SpeechRecognitionResult}.
*/
export interface SpeechRecognitionResultText {
    '@type': 'speechRecognitionResultText';
    /**
Recognized text.
*/
    text: string;
}
/**
The speech recognition failed.
Subtype of {@link SpeechRecognitionResult}.
*/
export interface SpeechRecognitionResultError {
    '@type': 'speechRecognitionResultError';
    /**
Recognition error. An error with a message "MSG_VOICE_TOO_LONG" is returned when media duration is too big to be
recognized.
*/
    error: Error;
}
/**
Describes a connection of the bot with a business account.
*/
export interface BusinessConnection {
    '@type': 'businessConnection';
    /**
Unique identifier of the connection.
*/
    id: string;
    /**
Identifier of the business user that created the connection.
*/
    user_id: number;
    /**
Chat identifier of the private chat with the user.
*/
    user_chat_id: number;
    /**
Point in time (Unix timestamp) when the connection was established.
*/
    date: number;
    /**
True, if the bot can send messages to the connected user; false otherwise.
*/
    can_reply?: boolean;
    /**
True, if the connection is enabled; false otherwise.
*/
    is_enabled?: boolean;
}
/**
Describes a color to highlight a bot added to attachment menu.
*/
export interface AttachmentMenuBotColor {
    '@type': 'attachmentMenuBotColor';
    /**
Color in the RGB format for light themes.
*/
    light_color: number;
    /**
Color in the RGB format for dark themes.
*/
    dark_color: number;
}
/**
Represents a bot, which can be added to attachment or side menu.
*/
export interface AttachmentMenuBot {
    '@type': 'attachmentMenuBot';
    /**
User identifier of the bot.
*/
    bot_user_id: number;
    /**
True, if the bot supports opening from attachment menu in the chat with the bot.
*/
    supports_self_chat?: boolean;
    /**
True, if the bot supports opening from attachment menu in private chats with ordinary users.
*/
    supports_user_chats?: boolean;
    /**
True, if the bot supports opening from attachment menu in private chats with other bots.
*/
    supports_bot_chats?: boolean;
    /**
True, if the bot supports opening from attachment menu in basic group and supergroup chats.
*/
    supports_group_chats?: boolean;
    /**
True, if the bot supports opening from attachment menu in channel chats.
*/
    supports_channel_chats?: boolean;
    /**
True, if the user must be asked for the permission to send messages to the bot.
*/
    request_write_access?: boolean;
    /**
True, if the bot was explicitly added by the user. If the bot isn't added, then on the first bot launch
toggleBotIsAddedToAttachmentMenu must be called and the bot must be added or removed.
*/
    is_added?: boolean;
    /**
True, if the bot must be shown in the attachment menu.
*/
    show_in_attachment_menu?: boolean;
    /**
True, if the bot must be shown in the side menu.
*/
    show_in_side_menu?: boolean;
    /**
True, if a disclaimer, why the bot is shown in the side menu, is needed.
*/
    show_disclaimer_in_side_menu?: boolean;
    /**
Name for the bot in attachment menu.
*/
    name: string;
    /**
Color to highlight selected name of the bot if appropriate; may be null.
*/
    name_color: AttachmentMenuBotColor;
    /**
Default icon for the bot in SVG format; may be null.
*/
    default_icon: File;
    /**
Icon for the bot in SVG format for the official iOS app; may be null.
*/
    ios_static_icon: File;
    /**
Icon for the bot in TGS format for the official iOS app; may be null.
*/
    ios_animated_icon: File;
    /**
Icon for the bot in PNG format for the official iOS app side menu; may be null.
*/
    ios_side_menu_icon: File;
    /**
Icon for the bot in TGS format for the official Android app; may be null.
*/
    android_icon: File;
    /**
Icon for the bot in SVG format for the official Android app side menu; may be null.
*/
    android_side_menu_icon: File;
    /**
Icon for the bot in TGS format for the official native macOS app; may be null.
*/
    macos_icon: File;
    /**
Icon for the bot in PNG format for the official macOS app side menu; may be null.
*/
    macos_side_menu_icon: File;
    /**
Color to highlight selected icon of the bot if appropriate; may be null.
*/
    icon_color: AttachmentMenuBotColor;
    /**
Default placeholder for opened Web Apps in SVG format; may be null.
*/
    web_app_placeholder: File;
}
/**
Information about the message sent by answerWebAppQuery.
*/
export interface SentWebAppMessage {
    '@type': 'sentWebAppMessage';
    /**
Identifier of the sent inline message, if known.
*/
    inline_message_id: string;
}
/**
Describes a reason why a bot was allowed to write messages to the current user.
Subtype of {@link BotWriteAccessAllowReason}.
*/
export interface BotWriteAccessAllowReasonConnectedWebsite {
    '@type': 'botWriteAccessAllowReasonConnectedWebsite';
    /**
Domain name of the connected website.
*/
    domain_name: string;
}
/**
The user added the bot to attachment or side menu using toggleBotIsAddedToAttachmentMenu.
Subtype of {@link BotWriteAccessAllowReason}.
*/
export interface BotWriteAccessAllowReasonAddedToAttachmentMenu {
    '@type': 'botWriteAccessAllowReasonAddedToAttachmentMenu';
}
/**
The user launched a Web App using getWebAppLinkUrl.
Subtype of {@link BotWriteAccessAllowReason}.
*/
export interface BotWriteAccessAllowReasonLaunchedWebApp {
    '@type': 'botWriteAccessAllowReasonLaunchedWebApp';
    /**
Information about the Web App.
*/
    web_app: WebApp;
}
/**
The user accepted bot's request to send messages with allowBotToSendMessages.
Subtype of {@link BotWriteAccessAllowReason}.
*/
export interface BotWriteAccessAllowReasonAcceptedRequest {
    '@type': 'botWriteAccessAllowReasonAcceptedRequest';
}
/**
Contains an HTTP URL.
*/
export interface HttpUrl {
    '@type': 'httpUrl';
    /**
The URL.
*/
    url: string;
}
/**
Contains an HTTPS URL, which can be used to get information about a user.
*/
export interface UserLink {
    '@type': 'userLink';
    /**
The URL.
*/
    url: string;
    /**
Left time for which the link is valid, in seconds; 0 if the link is a public username link.
*/
    expires_in: number;
}
/**
Describes allowed types for the target chat.
*/
export interface TargetChatTypes {
    '@type': 'targetChatTypes';
    /**
True, if private chats with ordinary users are allowed.
*/
    allow_user_chats?: boolean;
    /**
True, if private chats with other bots are allowed.
*/
    allow_bot_chats?: boolean;
    /**
True, if basic group and supergroup chats are allowed.
*/
    allow_group_chats?: boolean;
    /**
True, if channel chats are allowed.
*/
    allow_channel_chats?: boolean;
}
/**
Describes the target chat to be opened.
Subtype of {@link TargetChat}.
*/
export interface TargetChatCurrent {
    '@type': 'targetChatCurrent';
}
/**
The chat needs to be chosen by the user among chats of the specified types.
Subtype of {@link TargetChat}.
*/
export interface TargetChatChosen {
    '@type': 'targetChatChosen';
    /**
Allowed types for the chat.
*/
    types: TargetChatTypes;
}
/**
The chat needs to be open with the provided internal link.
Subtype of {@link TargetChat}.
*/
export interface TargetChatInternalLink {
    '@type': 'targetChatInternalLink';
    /**
An internal link pointing to the chat.
*/
    link: InternalLinkType;
}
/**
Represents a single result of an inline query; for bots only.
Subtype of {@link InputInlineQueryResult}.
*/
export interface InputInlineQueryResultAnimation {
    '@type': 'inputInlineQueryResultAnimation';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Title of the query result.
*/
    title: string;
    /**
URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists.
*/
    thumbnail_url: string;
    /**
MIME type of the video thumbnail. If non-empty, must be one of "image/jpeg", "image/gif" and "video/mp4".
*/
    thumbnail_mime_type: string;
    /**
The URL of the video file (file size must not exceed 1MB).
*/
    video_url: string;
    /**
MIME type of the video file. Must be one of "image/gif" and "video/mp4".
*/
    video_mime_type: string;
    /**
Duration of the video, in seconds.
*/
    video_duration: number;
    /**
Width of the video.
*/
    video_width: number;
    /**
Height of the video.
*/
    video_height: number;
    /**
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation,
inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact.
*/
    input_message_content: InputMessageContent;
}
/**
Represents a link to an article or web page.
Subtype of {@link InputInlineQueryResult}.
*/
export interface InputInlineQueryResultArticle {
    '@type': 'inputInlineQueryResultArticle';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
URL of the result, if it exists.
*/
    url: string;
    /**
Title of the result.
*/
    title: string;
    /**
Represents a link to an article or web page.
*/
    description: string;
    /**
URL of the result thumbnail, if it exists.
*/
    thumbnail_url: string;
    /**
Thumbnail width, if known.
*/
    thumbnail_width: number;
    /**
Thumbnail height, if known.
*/
    thumbnail_height: number;
    /**
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageInvoice,
inputMessageLocation, inputMessageVenue or inputMessageContact.
*/
    input_message_content: InputMessageContent;
}
/**
Represents a link to an MP3 audio file.
Subtype of {@link InputInlineQueryResult}.
*/
export interface InputInlineQueryResultAudio {
    '@type': 'inputInlineQueryResultAudio';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Title of the audio file.
*/
    title: string;
    /**
Performer of the audio file.
*/
    performer: string;
    /**
The URL of the audio file.
*/
    audio_url: string;
    /**
Audio file duration, in seconds.
*/
    audio_duration: number;
    /**
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAudio,
inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact.
*/
    input_message_content: InputMessageContent;
}
/**
Represents a user contact.
Subtype of {@link InputInlineQueryResult}.
*/
export interface InputInlineQueryResultContact {
    '@type': 'inputInlineQueryResultContact';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
User contact.
*/
    contact: Contact;
    /**
URL of the result thumbnail, if it exists.
*/
    thumbnail_url: string;
    /**
Thumbnail width, if known.
*/
    thumbnail_width: number;
    /**
Thumbnail height, if known.
*/
    thumbnail_height: number;
    /**
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageInvoice,
inputMessageLocation, inputMessageVenue or inputMessageContact.
*/
    input_message_content: InputMessageContent;
}
/**
Represents a link to a file.
Subtype of {@link InputInlineQueryResult}.
*/
export interface InputInlineQueryResultDocument {
    '@type': 'inputInlineQueryResultDocument';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Title of the resulting file.
*/
    title: string;
    /**
Represents a link to a file.
*/
    description: string;
    /**
URL of the file.
*/
    document_url: string;
    /**
MIME type of the file content; only "application/pdf" and "application/zip" are currently allowed.
*/
    mime_type: string;
    /**
The URL of the file thumbnail, if it exists.
*/
    thumbnail_url: string;
    /**
Width of the thumbnail.
*/
    thumbnail_width: number;
    /**
Height of the thumbnail.
*/
    thumbnail_height: number;
    /**
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageDocument,
inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact.
*/
    input_message_content: InputMessageContent;
}
/**
Represents a game.
Subtype of {@link InputInlineQueryResult}.
*/
export interface InputInlineQueryResultGame {
    '@type': 'inputInlineQueryResultGame';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Short name of the game.
*/
    game_short_name: string;
    /**
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.
*/
    reply_markup: ReplyMarkup;
}
/**
Represents a point on the map.
Subtype of {@link InputInlineQueryResult}.
*/
export interface InputInlineQueryResultLocation {
    '@type': 'inputInlineQueryResultLocation';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Location result.
*/
    location: Location;
    /**
Amount of time relative to the message sent time until the location can be updated, in seconds.
*/
    live_period: number;
    /**
Title of the result.
*/
    title: string;
    /**
URL of the result thumbnail, if it exists.
*/
    thumbnail_url: string;
    /**
Thumbnail width, if known.
*/
    thumbnail_width: number;
    /**
Thumbnail height, if known.
*/
    thumbnail_height: number;
    /**
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageInvoice,
inputMessageLocation, inputMessageVenue or inputMessageContact.
*/
    input_message_content: InputMessageContent;
}
/**
Represents link to a JPEG image.
Subtype of {@link InputInlineQueryResult}.
*/
export interface InputInlineQueryResultPhoto {
    '@type': 'inputInlineQueryResultPhoto';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Title of the result, if known.
*/
    title: string;
    /**
Represents link to a JPEG image.
*/
    description: string;
    /**
URL of the photo thumbnail, if it exists.
*/
    thumbnail_url: string;
    /**
The URL of the JPEG photo (photo size must not exceed 5MB).
*/
    photo_url: string;
    /**
Width of the photo.
*/
    photo_width: number;
    /**
Height of the photo.
*/
    photo_height: number;
    /**
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessagePhoto,
inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact.
*/
    input_message_content: InputMessageContent;
}
/**
Represents a link to a WEBP, TGS, or WEBM sticker.
Subtype of {@link InputInlineQueryResult}.
*/
export interface InputInlineQueryResultSticker {
    '@type': 'inputInlineQueryResultSticker';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
URL of the sticker thumbnail, if it exists.
*/
    thumbnail_url: string;
    /**
The URL of the WEBP, TGS, or WEBM sticker (sticker file size must not exceed 5MB).
*/
    sticker_url: string;
    /**
Width of the sticker.
*/
    sticker_width: number;
    /**
Height of the sticker.
*/
    sticker_height: number;
    /**
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageSticker,
inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact.
*/
    input_message_content: InputMessageContent;
}
/**
Represents information about a venue.
Subtype of {@link InputInlineQueryResult}.
*/
export interface InputInlineQueryResultVenue {
    '@type': 'inputInlineQueryResultVenue';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Venue result.
*/
    venue: Venue;
    /**
URL of the result thumbnail, if it exists.
*/
    thumbnail_url: string;
    /**
Thumbnail width, if known.
*/
    thumbnail_width: number;
    /**
Thumbnail height, if known.
*/
    thumbnail_height: number;
    /**
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageInvoice,
inputMessageLocation, inputMessageVenue or inputMessageContact.
*/
    input_message_content: InputMessageContent;
}
/**
Represents a link to a page containing an embedded video player or a video file.
Subtype of {@link InputInlineQueryResult}.
*/
export interface InputInlineQueryResultVideo {
    '@type': 'inputInlineQueryResultVideo';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Title of the result.
*/
    title: string;
    /**
Represents a link to a page containing an embedded video player or a video file.
*/
    description: string;
    /**
The URL of the video thumbnail (JPEG), if it exists.
*/
    thumbnail_url: string;
    /**
URL of the embedded video player or video file.
*/
    video_url: string;
    /**
MIME type of the content of the video URL, only "text/html" or "video/mp4" are currently supported.
*/
    mime_type: string;
    /**
Width of the video.
*/
    video_width: number;
    /**
Height of the video.
*/
    video_height: number;
    /**
Video duration, in seconds.
*/
    video_duration: number;
    /**
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageVideo,
inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact.
*/
    input_message_content: InputMessageContent;
}
/**
Represents a link to an opus-encoded audio file within an OGG container, single channel audio.
Subtype of {@link InputInlineQueryResult}.
*/
export interface InputInlineQueryResultVoiceNote {
    '@type': 'inputInlineQueryResultVoiceNote';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Title of the voice note.
*/
    title: string;
    /**
The URL of the voice note file.
*/
    voice_note_url: string;
    /**
Duration of the voice note, in seconds.
*/
    voice_note_duration: number;
    /**
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageVoiceNote,
inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact.
*/
    input_message_content: InputMessageContent;
}
/**
Represents a single result of an inline query.
Subtype of {@link InlineQueryResult}.
*/
export interface InlineQueryResultArticle {
    '@type': 'inlineQueryResultArticle';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
URL of the result, if it exists.
*/
    url: string;
    /**
Title of the result.
*/
    title: string;
    /**
Represents a single result of an inline query.
*/
    description: string;
    /**
Result thumbnail in JPEG format; may be null.
*/
    thumbnail: Thumbnail;
}
/**
Represents a user contact.
Subtype of {@link InlineQueryResult}.
*/
export interface InlineQueryResultContact {
    '@type': 'inlineQueryResultContact';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
A user contact.
*/
    contact: Contact;
    /**
Result thumbnail in JPEG format; may be null.
*/
    thumbnail: Thumbnail;
}
/**
Represents a point on the map.
Subtype of {@link InlineQueryResult}.
*/
export interface InlineQueryResultLocation {
    '@type': 'inlineQueryResultLocation';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Location result.
*/
    location: Location;
    /**
Title of the result.
*/
    title: string;
    /**
Result thumbnail in JPEG format; may be null.
*/
    thumbnail: Thumbnail;
}
/**
Represents information about a venue.
Subtype of {@link InlineQueryResult}.
*/
export interface InlineQueryResultVenue {
    '@type': 'inlineQueryResultVenue';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Venue result.
*/
    venue: Venue;
    /**
Result thumbnail in JPEG format; may be null.
*/
    thumbnail: Thumbnail;
}
/**
Represents information about a game.
Subtype of {@link InlineQueryResult}.
*/
export interface InlineQueryResultGame {
    '@type': 'inlineQueryResultGame';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Game result.
*/
    game: Game;
}
/**
Represents an animation file.
Subtype of {@link InlineQueryResult}.
*/
export interface InlineQueryResultAnimation {
    '@type': 'inlineQueryResultAnimation';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Animation file.
*/
    animation: Animation;
    /**
Animation title.
*/
    title: string;
}
/**
Represents an audio file.
Subtype of {@link InlineQueryResult}.
*/
export interface InlineQueryResultAudio {
    '@type': 'inlineQueryResultAudio';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Audio file.
*/
    audio: Audio;
}
/**
Represents a document.
Subtype of {@link InlineQueryResult}.
*/
export interface InlineQueryResultDocument {
    '@type': 'inlineQueryResultDocument';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Document.
*/
    document: Document;
    /**
Document title.
*/
    title: string;
    /**
Represents a document.
*/
    description: string;
}
/**
Represents a photo.
Subtype of {@link InlineQueryResult}.
*/
export interface InlineQueryResultPhoto {
    '@type': 'inlineQueryResultPhoto';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Photo.
*/
    photo: Photo;
    /**
Title of the result, if known.
*/
    title: string;
    /**
Represents a photo.
*/
    description: string;
}
/**
Represents a sticker.
Subtype of {@link InlineQueryResult}.
*/
export interface InlineQueryResultSticker {
    '@type': 'inlineQueryResultSticker';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Sticker.
*/
    sticker: Sticker;
}
/**
Represents a video.
Subtype of {@link InlineQueryResult}.
*/
export interface InlineQueryResultVideo {
    '@type': 'inlineQueryResultVideo';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Video.
*/
    video: Video;
    /**
Title of the video.
*/
    title: string;
    /**
Represents a video.
*/
    description: string;
}
/**
Represents a voice note.
Subtype of {@link InlineQueryResult}.
*/
export interface InlineQueryResultVoiceNote {
    '@type': 'inlineQueryResultVoiceNote';
    /**
Unique identifier of the query result.
*/
    id: string;
    /**
Voice note.
*/
    voice_note: VoiceNote;
    /**
Title of the voice note.
*/
    title: string;
}
/**
Represents type of button in results of inline query.
Subtype of {@link InlineQueryResultsButtonType}.
*/
export interface InlineQueryResultsButtonTypeStartBot {
    '@type': 'inlineQueryResultsButtonTypeStartBot';
    /**
The parameter for the bot start message.
*/
    parameter: string;
}
/**
Describes the button that opens a Web App by calling getWebAppUrl.
Subtype of {@link InlineQueryResultsButtonType}.
*/
export interface InlineQueryResultsButtonTypeWebApp {
    '@type': 'inlineQueryResultsButtonTypeWebApp';
    /**
An HTTP URL to pass to getWebAppUrl.
*/
    url: string;
}
/**
Represents a button to be shown above inline query results.
*/
export interface InlineQueryResultsButton {
    '@type': 'inlineQueryResultsButton';
    /**
The text of the button.
*/
    text: string;
    /**
Type of the button.
*/
    type: InlineQueryResultsButtonType;
}
/**
Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query.
*/
export interface InlineQueryResults {
    '@type': 'inlineQueryResults';
    /**
Unique identifier of the inline query.
*/
    inline_query_id: string;
    /**
Button to be shown above inline query results; may be null.
*/
    button: InlineQueryResultsButton;
    /**
Results of the query.
*/
    results: InlineQueryResult[];
    /**
The offset for the next request. If empty, then there are no more results.
*/
    next_offset: string;
}
/**
Represents an inline message that can be sent via the bot.
*/
export interface PreparedInlineMessageId {
    '@type': 'preparedInlineMessageId';
    /**
Unique identifier for the message.
*/
    id: string;
    /**
Point in time (Unix timestamp) when the message can't be used anymore.
*/
    expiration_date: number;
}
/**
Represents a ready to send inline message. Use sendInlineQueryResultMessage to send the message.
*/
export interface PreparedInlineMessage {
    '@type': 'preparedInlineMessage';
    /**
Unique identifier of the inline query to pass to sendInlineQueryResultMessage.
*/
    inline_query_id: string;
    /**
Resulted inline message of the query.
*/
    result: InlineQueryResult;
    /**
Types of the chats to which the message can be sent.
*/
    chat_types: TargetChatTypes;
}
/**
Represents a payload of a callback query.
Subtype of {@link CallbackQueryPayload}.
*/
export interface CallbackQueryPayloadData {
    '@type': 'callbackQueryPayloadData';
    /**
Data that was attached to the callback button.
*/
    data: string;
}
/**
The payload for a callback button requiring password.
Subtype of {@link CallbackQueryPayload}.
*/
export interface CallbackQueryPayloadDataWithPassword {
    '@type': 'callbackQueryPayloadDataWithPassword';
    /**
The 2-step verification password for the current user.
*/
    password: string;
    /**
Data that was attached to the callback button.
*/
    data: string;
}
/**
The payload for a game callback button.
Subtype of {@link CallbackQueryPayload}.
*/
export interface CallbackQueryPayloadGame {
    '@type': 'callbackQueryPayloadGame';
    /**
A short name of the game that was attached to the callback button.
*/
    game_short_name: string;
}
/**
Contains a bot's answer to a callback query.
*/
export interface CallbackQueryAnswer {
    '@type': 'callbackQueryAnswer';
    /**
Text of the answer.
*/
    text: string;
    /**
True, if an alert must be shown to the user instead of a toast notification.
*/
    show_alert?: boolean;
    /**
URL to be opened.
*/
    url: string;
}
/**
Contains the result of a custom request.
*/
export interface CustomRequestResult {
    '@type': 'customRequestResult';
    /**
A JSON-serialized result.
*/
    result: string;
}
/**
Contains one row of the game high score table.
*/
export interface GameHighScore {
    '@type': 'gameHighScore';
    /**
Position in the high score table.
*/
    position: number;
    /**
User identifier.
*/
    user_id: number;
    /**
User score.
*/
    score: number;
}
/**
Contains a list of game high scores.
*/
export interface GameHighScores {
    '@type': 'gameHighScores';
    /**
A list of game high scores.
*/
    scores: GameHighScore[];
}
/**
Represents a chat event.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMessageEdited {
    '@type': 'chatEventMessageEdited';
    /**
The original message before the edit.
*/
    old_message: Message;
    /**
The message after it was edited.
*/
    new_message: Message;
}
/**
A message was deleted.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMessageDeleted {
    '@type': 'chatEventMessageDeleted';
    /**
Deleted message.
*/
    message: Message;
    /**
True, if the message deletion can be reported via reportSupergroupAntiSpamFalsePositive.
*/
    can_report_anti_spam_false_positive?: boolean;
}
/**
A message was pinned.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMessagePinned {
    '@type': 'chatEventMessagePinned';
    /**
Pinned message.
*/
    message: Message;
}
/**
A message was unpinned.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMessageUnpinned {
    '@type': 'chatEventMessageUnpinned';
    /**
Unpinned message.
*/
    message: Message;
}
/**
A poll in a message was stopped.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventPollStopped {
    '@type': 'chatEventPollStopped';
    /**
The message with the poll.
*/
    message: Message;
}
/**
A new member joined the chat.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMemberJoined {
    '@type': 'chatEventMemberJoined';
}
/**
A new member joined the chat via an invite link.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMemberJoinedByInviteLink {
    '@type': 'chatEventMemberJoinedByInviteLink';
    /**
Invite link used to join the chat.
*/
    invite_link: ChatInviteLink;
    /**
True, if the user has joined the chat using an invite link for a chat folder.
*/
    via_chat_folder_invite_link?: boolean;
}
/**
A new member was accepted to the chat by an administrator.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMemberJoinedByRequest {
    '@type': 'chatEventMemberJoinedByRequest';
    /**
User identifier of the chat administrator, approved user join request.
*/
    approver_user_id: number;
    /**
Invite link used to join the chat; may be null.
*/
    invite_link: ChatInviteLink;
}
/**
A new chat member was invited.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMemberInvited {
    '@type': 'chatEventMemberInvited';
    /**
New member user identifier.
*/
    user_id: number;
    /**
New member status.
*/
    status: ChatMemberStatus;
}
/**
A member left the chat.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMemberLeft {
    '@type': 'chatEventMemberLeft';
}
/**
A chat member has gained/lost administrator status, or the list of their administrator privileges has changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMemberPromoted {
    '@type': 'chatEventMemberPromoted';
    /**
Affected chat member user identifier.
*/
    user_id: number;
    /**
Previous status of the chat member.
*/
    old_status: ChatMemberStatus;
    /**
New status of the chat member.
*/
    new_status: ChatMemberStatus;
}
/**
A chat member was restricted/unrestricted or banned/unbanned, or the list of their restrictions has changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMemberRestricted {
    '@type': 'chatEventMemberRestricted';
    /**
Affected chat member identifier.
*/
    member_id: MessageSender;
    /**
Previous status of the chat member.
*/
    old_status: ChatMemberStatus;
    /**
New status of the chat member.
*/
    new_status: ChatMemberStatus;
}
/**
A chat member extended their subscription to the chat.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMemberSubscriptionExtended {
    '@type': 'chatEventMemberSubscriptionExtended';
    /**
Affected chat member user identifier.
*/
    user_id: number;
    /**
Previous status of the chat member.
*/
    old_status: ChatMemberStatus;
    /**
New status of the chat member.
*/
    new_status: ChatMemberStatus;
}
/**
The chat available reactions were changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventAvailableReactionsChanged {
    '@type': 'chatEventAvailableReactionsChanged';
    /**
Previous chat available reactions.
*/
    old_available_reactions: ChatAvailableReactions;
    /**
New chat available reactions.
*/
    new_available_reactions: ChatAvailableReactions;
}
/**
The chat background was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventBackgroundChanged {
    '@type': 'chatEventBackgroundChanged';
    /**
Previous background; may be null if none.
*/
    old_background: ChatBackground;
    /**
New background; may be null if none.
*/
    new_background: ChatBackground;
}
/**
The chat description was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventDescriptionChanged {
    '@type': 'chatEventDescriptionChanged';
    /**
Previous chat description.
*/
    old_description: string;
    /**
New chat description.
*/
    new_description: string;
}
/**
The chat emoji status was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventEmojiStatusChanged {
    '@type': 'chatEventEmojiStatusChanged';
    /**
Previous emoji status; may be null if none.
*/
    old_emoji_status: EmojiStatus;
    /**
New emoji status; may be null if none.
*/
    new_emoji_status: EmojiStatus;
}
/**
The linked chat of a supergroup was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventLinkedChatChanged {
    '@type': 'chatEventLinkedChatChanged';
    /**
Previous supergroup linked chat identifier.
*/
    old_linked_chat_id: number;
    /**
New supergroup linked chat identifier.
*/
    new_linked_chat_id: number;
}
/**
The supergroup location was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventLocationChanged {
    '@type': 'chatEventLocationChanged';
    /**
Previous location; may be null.
*/
    old_location: ChatLocation;
    /**
New location; may be null.
*/
    new_location: ChatLocation;
}
/**
The message auto-delete timer was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventMessageAutoDeleteTimeChanged {
    '@type': 'chatEventMessageAutoDeleteTimeChanged';
    /**
Previous value of message_auto_delete_time.
*/
    old_message_auto_delete_time: number;
    /**
New value of message_auto_delete_time.
*/
    new_message_auto_delete_time: number;
}
/**
The chat permissions were changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventPermissionsChanged {
    '@type': 'chatEventPermissionsChanged';
    /**
Previous chat permissions.
*/
    old_permissions: ChatPermissions;
    /**
New chat permissions.
*/
    new_permissions: ChatPermissions;
}
/**
The chat photo was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventPhotoChanged {
    '@type': 'chatEventPhotoChanged';
    /**
Previous chat photo value; may be null.
*/
    old_photo: ChatPhoto;
    /**
New chat photo value; may be null.
*/
    new_photo: ChatPhoto;
}
/**
The slow_mode_delay setting of a supergroup was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventSlowModeDelayChanged {
    '@type': 'chatEventSlowModeDelayChanged';
    /**
Previous value of slow_mode_delay, in seconds.
*/
    old_slow_mode_delay: number;
    /**
New value of slow_mode_delay, in seconds.
*/
    new_slow_mode_delay: number;
}
/**
The supergroup sticker set was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventStickerSetChanged {
    '@type': 'chatEventStickerSetChanged';
    /**
Previous identifier of the chat sticker set; 0 if none.
*/
    old_sticker_set_id: string;
    /**
New identifier of the chat sticker set; 0 if none.
*/
    new_sticker_set_id: string;
}
/**
The supergroup sticker set with allowed custom emoji was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventCustomEmojiStickerSetChanged {
    '@type': 'chatEventCustomEmojiStickerSetChanged';
    /**
Previous identifier of the chat sticker set; 0 if none.
*/
    old_sticker_set_id: string;
    /**
New identifier of the chat sticker set; 0 if none.
*/
    new_sticker_set_id: string;
}
/**
The chat title was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventTitleChanged {
    '@type': 'chatEventTitleChanged';
    /**
Previous chat title.
*/
    old_title: string;
    /**
New chat title.
*/
    new_title: string;
}
/**
The chat editable username was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventUsernameChanged {
    '@type': 'chatEventUsernameChanged';
    /**
Previous chat username.
*/
    old_username: string;
    /**
New chat username.
*/
    new_username: string;
}
/**
The chat active usernames were changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventActiveUsernamesChanged {
    '@type': 'chatEventActiveUsernamesChanged';
    /**
Previous list of active usernames.
*/
    old_usernames: string[];
    /**
New list of active usernames.
*/
    new_usernames: string[];
}
/**
The chat accent color or background custom emoji were changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventAccentColorChanged {
    '@type': 'chatEventAccentColorChanged';
    /**
Previous identifier of chat accent color.
*/
    old_accent_color_id: number;
    /**
Previous identifier of the custom emoji; 0 if none.
*/
    old_background_custom_emoji_id: string;
    /**
New identifier of chat accent color.
*/
    new_accent_color_id: number;
    /**
New identifier of the custom emoji; 0 if none.
*/
    new_background_custom_emoji_id: string;
}
/**
The chat's profile accent color or profile background custom emoji were changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventProfileAccentColorChanged {
    '@type': 'chatEventProfileAccentColorChanged';
    /**
Previous identifier of chat's profile accent color; -1 if none.
*/
    old_profile_accent_color_id: number;
    /**
Previous identifier of the custom emoji; 0 if none.
*/
    old_profile_background_custom_emoji_id: string;
    /**
New identifier of chat's profile accent color; -1 if none.
*/
    new_profile_accent_color_id: number;
    /**
New identifier of the custom emoji; 0 if none.
*/
    new_profile_background_custom_emoji_id: string;
}
/**
The has_protected_content setting of a channel was toggled.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventHasProtectedContentToggled {
    '@type': 'chatEventHasProtectedContentToggled';
    /**
New value of has_protected_content.
*/
    has_protected_content?: boolean;
}
/**
The can_invite_users permission of a supergroup chat was toggled.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventInvitesToggled {
    '@type': 'chatEventInvitesToggled';
    /**
New value of can_invite_users permission.
*/
    can_invite_users?: boolean;
}
/**
The is_all_history_available setting of a supergroup was toggled.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventIsAllHistoryAvailableToggled {
    '@type': 'chatEventIsAllHistoryAvailableToggled';
    /**
New value of is_all_history_available.
*/
    is_all_history_available?: boolean;
}
/**
The has_aggressive_anti_spam_enabled setting of a supergroup was toggled.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventHasAggressiveAntiSpamEnabledToggled {
    '@type': 'chatEventHasAggressiveAntiSpamEnabledToggled';
    /**
New value of has_aggressive_anti_spam_enabled.
*/
    has_aggressive_anti_spam_enabled?: boolean;
}
/**
The sign_messages setting of a channel was toggled.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventSignMessagesToggled {
    '@type': 'chatEventSignMessagesToggled';
    /**
New value of sign_messages.
*/
    sign_messages?: boolean;
}
/**
The show_message_sender setting of a channel was toggled.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventShowMessageSenderToggled {
    '@type': 'chatEventShowMessageSenderToggled';
    /**
New value of show_message_sender.
*/
    show_message_sender?: boolean;
}
/**
A chat invite link was edited.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventInviteLinkEdited {
    '@type': 'chatEventInviteLinkEdited';
    /**
Previous information about the invite link.
*/
    old_invite_link: ChatInviteLink;
    /**
New information about the invite link.
*/
    new_invite_link: ChatInviteLink;
}
/**
A chat invite link was revoked.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventInviteLinkRevoked {
    '@type': 'chatEventInviteLinkRevoked';
    /**
The invite link.
*/
    invite_link: ChatInviteLink;
}
/**
A revoked chat invite link was deleted.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventInviteLinkDeleted {
    '@type': 'chatEventInviteLinkDeleted';
    /**
The invite link.
*/
    invite_link: ChatInviteLink;
}
/**
A video chat was created.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventVideoChatCreated {
    '@type': 'chatEventVideoChatCreated';
    /**
Identifier of the video chat. The video chat can be received through the method getGroupCall.
*/
    group_call_id: number;
}
/**
A video chat was ended.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventVideoChatEnded {
    '@type': 'chatEventVideoChatEnded';
    /**
Identifier of the video chat. The video chat can be received through the method getGroupCall.
*/
    group_call_id: number;
}
/**
The mute_new_participants setting of a video chat was toggled.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventVideoChatMuteNewParticipantsToggled {
    '@type': 'chatEventVideoChatMuteNewParticipantsToggled';
    /**
New value of the mute_new_participants setting.
*/
    mute_new_participants?: boolean;
}
/**
A video chat participant was muted or unmuted.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventVideoChatParticipantIsMutedToggled {
    '@type': 'chatEventVideoChatParticipantIsMutedToggled';
    /**
Identifier of the affected group call participant.
*/
    participant_id: MessageSender;
    /**
New value of is_muted.
*/
    is_muted?: boolean;
}
/**
A video chat participant volume level was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventVideoChatParticipantVolumeLevelChanged {
    '@type': 'chatEventVideoChatParticipantVolumeLevelChanged';
    /**
Identifier of the affected group call participant.
*/
    participant_id: MessageSender;
    /**
New value of volume_level; 1-20000 in hundreds of percents.
*/
    volume_level: number;
}
/**
The is_forum setting of a channel was toggled.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventIsForumToggled {
    '@type': 'chatEventIsForumToggled';
    /**
New value of is_forum.
*/
    is_forum?: boolean;
}
/**
A new forum topic was created.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventForumTopicCreated {
    '@type': 'chatEventForumTopicCreated';
    /**
Information about the topic.
*/
    topic_info: ForumTopicInfo;
}
/**
A forum topic was edited.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventForumTopicEdited {
    '@type': 'chatEventForumTopicEdited';
    /**
Old information about the topic.
*/
    old_topic_info: ForumTopicInfo;
    /**
New information about the topic.
*/
    new_topic_info: ForumTopicInfo;
}
/**
A forum topic was closed or reopened.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventForumTopicToggleIsClosed {
    '@type': 'chatEventForumTopicToggleIsClosed';
    /**
New information about the topic.
*/
    topic_info: ForumTopicInfo;
}
/**
The General forum topic was hidden or unhidden.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventForumTopicToggleIsHidden {
    '@type': 'chatEventForumTopicToggleIsHidden';
    /**
New information about the topic.
*/
    topic_info: ForumTopicInfo;
}
/**
A forum topic was deleted.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventForumTopicDeleted {
    '@type': 'chatEventForumTopicDeleted';
    /**
Information about the topic.
*/
    topic_info: ForumTopicInfo;
}
/**
A pinned forum topic was changed.
Subtype of {@link ChatEventAction}.
*/
export interface ChatEventForumTopicPinned {
    '@type': 'chatEventForumTopicPinned';
    /**
Information about the old pinned topic; may be null.
*/
    old_topic_info: ForumTopicInfo;
    /**
Information about the new pinned topic; may be null.
*/
    new_topic_info: ForumTopicInfo;
}
/**
Represents a chat event.
*/
export interface ChatEvent {
    '@type': 'chatEvent';
    /**
Chat event identifier.
*/
    id: string;
    /**
Point in time (Unix timestamp) when the event happened.
*/
    date: number;
    /**
Identifier of the user or chat who performed the action.
*/
    member_id: MessageSender;
    /**
The action.
*/
    action: ChatEventAction;
}
/**
Contains a list of chat events.
*/
export interface ChatEvents {
    '@type': 'chatEvents';
    /**
List of events.
*/
    events: ChatEvent[];
}
/**
Represents a set of filters used to obtain a chat event log.
*/
export interface ChatEventLogFilters {
    '@type': 'chatEventLogFilters';
    /**
True, if message edits need to be returned.
*/
    message_edits?: boolean;
    /**
True, if message deletions need to be returned.
*/
    message_deletions?: boolean;
    /**
True, if pin/unpin events need to be returned.
*/
    message_pins?: boolean;
    /**
True, if members joining events need to be returned.
*/
    member_joins?: boolean;
    /**
True, if members leaving events need to be returned.
*/
    member_leaves?: boolean;
    /**
True, if invited member events need to be returned.
*/
    member_invites?: boolean;
    /**
True, if member promotion/demotion events need to be returned.
*/
    member_promotions?: boolean;
    /**
True, if member restricted/unrestricted/banned/unbanned events need to be returned.
*/
    member_restrictions?: boolean;
    /**
True, if changes in chat information need to be returned.
*/
    info_changes?: boolean;
    /**
True, if changes in chat settings need to be returned.
*/
    setting_changes?: boolean;
    /**
True, if changes to invite links need to be returned.
*/
    invite_link_changes?: boolean;
    /**
True, if video chat actions need to be returned.
*/
    video_chat_changes?: boolean;
    /**
True, if forum-related actions need to be returned.
*/
    forum_changes?: boolean;
    /**
True, if subscription extensions need to be returned.
*/
    subscription_extensions?: boolean;
}
/**
Represents the value of a string in a language pack.
Subtype of {@link LanguagePackStringValue}.
*/
export interface LanguagePackStringValueOrdinary {
    '@type': 'languagePackStringValueOrdinary';
    /**
String value.
*/
    value: string;
}
/**
A language pack string which has different forms based on the number of some object it mentions. See
https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information.
Subtype of {@link LanguagePackStringValue}.
*/
export interface LanguagePackStringValuePluralized {
    '@type': 'languagePackStringValuePluralized';
    /**
Value for zero objects.
*/
    zero_value: string;
    /**
Value for one object.
*/
    one_value: string;
    /**
Value for two objects.
*/
    two_value: string;
    /**
Value for few objects.
*/
    few_value: string;
    /**
Value for many objects.
*/
    many_value: string;
    /**
Default value.
*/
    other_value: string;
}
/**
A deleted language pack string, the value must be taken from the built-in English language pack.
Subtype of {@link LanguagePackStringValue}.
*/
export interface LanguagePackStringValueDeleted {
    '@type': 'languagePackStringValueDeleted';
}
/**
Represents one language pack string.
*/
export interface LanguagePackString {
    '@type': 'languagePackString';
    /**
String key.
*/
    key: string;
    /**
String value; pass null if the string needs to be taken from the built-in English language pack.
*/
    value: LanguagePackStringValue;
}
/**
Contains a list of language pack strings.
*/
export interface LanguagePackStrings {
    '@type': 'languagePackStrings';
    /**
A list of language pack strings.
*/
    strings: LanguagePackString[];
}
/**
Contains information about a language pack.
*/
export interface LanguagePackInfo {
    '@type': 'languagePackInfo';
    /**
Unique language pack identifier.
*/
    id: string;
    /**
Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it must be fetched
from base language pack. Unsupported in custom language packs.
*/
    base_language_pack_id: string;
    /**
Language name.
*/
    name: string;
    /**
Name of the language in that language.
*/
    native_name: string;
    /**
A language code to be used to apply plural forms. See
https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information.
*/
    plural_code: string;
    /**
True, if the language pack is official.
*/
    is_official?: boolean;
    /**
True, if the language pack strings are RTL.
*/
    is_rtl?: boolean;
    /**
True, if the language pack is a beta language pack.
*/
    is_beta?: boolean;
    /**
True, if the language pack is installed by the current user.
*/
    is_installed?: boolean;
    /**
Total number of non-deleted strings from the language pack.
*/
    total_string_count: number;
    /**
Total number of translated strings from the language pack.
*/
    translated_string_count: number;
    /**
Total number of non-deleted strings from the language pack available locally.
*/
    local_string_count: number;
    /**
Link to language translation interface; empty for custom local language packs.
*/
    translation_url: string;
}
/**
Contains information about the current localization target.
*/
export interface LocalizationTargetInfo {
    '@type': 'localizationTargetInfo';
    /**
List of available language packs for this application.
*/
    language_packs: LanguagePackInfo[];
}
/**
Describes type of limit, increased for Premium users.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeSupergroupCount {
    '@type': 'premiumLimitTypeSupergroupCount';
}
/**
The maximum number of pinned chats in the main chat list.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypePinnedChatCount {
    '@type': 'premiumLimitTypePinnedChatCount';
}
/**
The maximum number of created public chats.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeCreatedPublicChatCount {
    '@type': 'premiumLimitTypeCreatedPublicChatCount';
}
/**
The maximum number of saved animations.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeSavedAnimationCount {
    '@type': 'premiumLimitTypeSavedAnimationCount';
}
/**
The maximum number of favorite stickers.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeFavoriteStickerCount {
    '@type': 'premiumLimitTypeFavoriteStickerCount';
}
/**
The maximum number of chat folders.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeChatFolderCount {
    '@type': 'premiumLimitTypeChatFolderCount';
}
/**
The maximum number of pinned and always included, or always excluded chats in a chat folder.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeChatFolderChosenChatCount {
    '@type': 'premiumLimitTypeChatFolderChosenChatCount';
}
/**
The maximum number of pinned chats in the archive chat list.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypePinnedArchivedChatCount {
    '@type': 'premiumLimitTypePinnedArchivedChatCount';
}
/**
The maximum number of pinned Saved Messages topics.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypePinnedSavedMessagesTopicCount {
    '@type': 'premiumLimitTypePinnedSavedMessagesTopicCount';
}
/**
The maximum length of sent media caption.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeCaptionLength {
    '@type': 'premiumLimitTypeCaptionLength';
}
/**
The maximum length of the user's bio.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeBioLength {
    '@type': 'premiumLimitTypeBioLength';
}
/**
The maximum number of invite links for a chat folder.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeChatFolderInviteLinkCount {
    '@type': 'premiumLimitTypeChatFolderInviteLinkCount';
}
/**
The maximum number of added shareable chat folders.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeShareableChatFolderCount {
    '@type': 'premiumLimitTypeShareableChatFolderCount';
}
/**
The maximum number of active stories.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeActiveStoryCount {
    '@type': 'premiumLimitTypeActiveStoryCount';
}
/**
The maximum number of stories sent per week.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeWeeklySentStoryCount {
    '@type': 'premiumLimitTypeWeeklySentStoryCount';
}
/**
The maximum number of stories sent per month.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeMonthlySentStoryCount {
    '@type': 'premiumLimitTypeMonthlySentStoryCount';
}
/**
The maximum length of captions of sent stories.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeStoryCaptionLength {
    '@type': 'premiumLimitTypeStoryCaptionLength';
}
/**
The maximum number of suggested reaction areas on a story.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeStorySuggestedReactionAreaCount {
    '@type': 'premiumLimitTypeStorySuggestedReactionAreaCount';
}
/**
The maximum number of received similar chats.
Subtype of {@link PremiumLimitType}.
*/
export interface PremiumLimitTypeSimilarChatCount {
    '@type': 'premiumLimitTypeSimilarChatCount';
}
/**
Describes a feature available to Premium users.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureIncreasedLimits {
    '@type': 'premiumFeatureIncreasedLimits';
}
/**
Increased maximum upload file size.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureIncreasedUploadFileSize {
    '@type': 'premiumFeatureIncreasedUploadFileSize';
}
/**
Improved download speed.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureImprovedDownloadSpeed {
    '@type': 'premiumFeatureImprovedDownloadSpeed';
}
/**
The ability to convert voice notes to text.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureVoiceRecognition {
    '@type': 'premiumFeatureVoiceRecognition';
}
/**
Disabled ads.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureDisabledAds {
    '@type': 'premiumFeatureDisabledAds';
}
/**
Allowed to use more reactions.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureUniqueReactions {
    '@type': 'premiumFeatureUniqueReactions';
}
/**
Allowed to use premium stickers with unique effects.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureUniqueStickers {
    '@type': 'premiumFeatureUniqueStickers';
}
/**
Allowed to use custom emoji stickers in message texts and captions.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureCustomEmoji {
    '@type': 'premiumFeatureCustomEmoji';
}
/**
Ability to change position of the main chat list, archive and mute all new chats from non-contacts, and completely
disable notifications about the user's contacts joined Telegram.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureAdvancedChatManagement {
    '@type': 'premiumFeatureAdvancedChatManagement';
}
/**
A badge in the user's profile.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureProfileBadge {
    '@type': 'premiumFeatureProfileBadge';
}
/**
The ability to show an emoji status along with the user's name.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureEmojiStatus {
    '@type': 'premiumFeatureEmojiStatus';
}
/**
Profile photo animation on message and chat screens.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureAnimatedProfilePhoto {
    '@type': 'premiumFeatureAnimatedProfilePhoto';
}
/**
The ability to set a custom emoji as a forum topic icon.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureForumTopicIcon {
    '@type': 'premiumFeatureForumTopicIcon';
}
/**
Allowed to set a premium application icons.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureAppIcons {
    '@type': 'premiumFeatureAppIcons';
}
/**
Allowed to translate chat messages real-time.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureRealTimeChatTranslation {
    '@type': 'premiumFeatureRealTimeChatTranslation';
}
/**
Allowed to use many additional features for stories.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureUpgradedStories {
    '@type': 'premiumFeatureUpgradedStories';
}
/**
The ability to boost chats.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureChatBoost {
    '@type': 'premiumFeatureChatBoost';
}
/**
The ability to choose accent color for replies and user profile.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureAccentColor {
    '@type': 'premiumFeatureAccentColor';
}
/**
The ability to set private chat background for both users.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureBackgroundForBoth {
    '@type': 'premiumFeatureBackgroundForBoth';
}
/**
The ability to use tags in Saved Messages.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureSavedMessagesTags {
    '@type': 'premiumFeatureSavedMessagesTags';
}
/**
The ability to disallow incoming voice and video note messages in private chats using setUserPrivacySettingRules with
userPrivacySettingAllowPrivateVoiceAndVideoNoteMessages and to restrict incoming messages from non-contacts using
setNewChatPrivacySettings.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureMessagePrivacy {
    '@type': 'premiumFeatureMessagePrivacy';
}
/**
The ability to view last seen and read times of other users even they can't view last seen or read time for the current
user.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureLastSeenTimes {
    '@type': 'premiumFeatureLastSeenTimes';
}
/**
The ability to use Business features.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureBusiness {
    '@type': 'premiumFeatureBusiness';
}
/**
The ability to use all available message effects.
Subtype of {@link PremiumFeature}.
*/
export interface PremiumFeatureMessageEffects {
    '@type': 'premiumFeatureMessageEffects';
}
/**
Describes a feature available to Business user accounts.
Subtype of {@link BusinessFeature}.
*/
export interface BusinessFeatureLocation {
    '@type': 'businessFeatureLocation';
}
/**
The ability to set opening hours.
Subtype of {@link BusinessFeature}.
*/
export interface BusinessFeatureOpeningHours {
    '@type': 'businessFeatureOpeningHours';
}
/**
The ability to use quick replies.
Subtype of {@link BusinessFeature}.
*/
export interface BusinessFeatureQuickReplies {
    '@type': 'businessFeatureQuickReplies';
}
/**
The ability to set up a greeting message.
Subtype of {@link BusinessFeature}.
*/
export interface BusinessFeatureGreetingMessage {
    '@type': 'businessFeatureGreetingMessage';
}
/**
The ability to set up an away message.
Subtype of {@link BusinessFeature}.
*/
export interface BusinessFeatureAwayMessage {
    '@type': 'businessFeatureAwayMessage';
}
/**
The ability to create links to the business account with predefined message text.
Subtype of {@link BusinessFeature}.
*/
export interface BusinessFeatureAccountLinks {
    '@type': 'businessFeatureAccountLinks';
}
/**
The ability to customize start page.
Subtype of {@link BusinessFeature}.
*/
export interface BusinessFeatureStartPage {
    '@type': 'businessFeatureStartPage';
}
/**
The ability to connect a bot to the account.
Subtype of {@link BusinessFeature}.
*/
export interface BusinessFeatureBots {
    '@type': 'businessFeatureBots';
}
/**
The ability to show an emoji status along with the business name.
Subtype of {@link BusinessFeature}.
*/
export interface BusinessFeatureEmojiStatus {
    '@type': 'businessFeatureEmojiStatus';
}
/**
The ability to display folder names for each chat in the chat list.
Subtype of {@link BusinessFeature}.
*/
export interface BusinessFeatureChatFolderTags {
    '@type': 'businessFeatureChatFolderTags';
}
/**
Allowed to use many additional features for stories.
Subtype of {@link BusinessFeature}.
*/
export interface BusinessFeatureUpgradedStories {
    '@type': 'businessFeatureUpgradedStories';
}
/**
Describes a story feature available to Premium users.
Subtype of {@link PremiumStoryFeature}.
*/
export interface PremiumStoryFeaturePriorityOrder {
    '@type': 'premiumStoryFeaturePriorityOrder';
}
/**
The ability to hide the fact that the user viewed other's stories.
Subtype of {@link PremiumStoryFeature}.
*/
export interface PremiumStoryFeatureStealthMode {
    '@type': 'premiumStoryFeatureStealthMode';
}
/**
The ability to check who opened the current user's stories after they expire.
Subtype of {@link PremiumStoryFeature}.
*/
export interface PremiumStoryFeaturePermanentViewsHistory {
    '@type': 'premiumStoryFeaturePermanentViewsHistory';
}
/**
The ability to set custom expiration duration for stories.
Subtype of {@link PremiumStoryFeature}.
*/
export interface PremiumStoryFeatureCustomExpirationDuration {
    '@type': 'premiumStoryFeatureCustomExpirationDuration';
}
/**
The ability to save other's unprotected stories.
Subtype of {@link PremiumStoryFeature}.
*/
export interface PremiumStoryFeatureSaveStories {
    '@type': 'premiumStoryFeatureSaveStories';
}
/**
The ability to use links and formatting in story caption, and use inputStoryAreaTypeLink areas.
Subtype of {@link PremiumStoryFeature}.
*/
export interface PremiumStoryFeatureLinksAndFormatting {
    '@type': 'premiumStoryFeatureLinksAndFormatting';
}
/**
The ability to choose better quality for viewed stories.
Subtype of {@link PremiumStoryFeature}.
*/
export interface PremiumStoryFeatureVideoQuality {
    '@type': 'premiumStoryFeatureVideoQuality';
}
/**
Contains information about a limit, increased for Premium users.
*/
export interface PremiumLimit {
    '@type': 'premiumLimit';
    /**
The type of the limit.
*/
    type: PremiumLimitType;
    /**
Default value of the limit.
*/
    default_value: number;
    /**
Value of the limit for Premium users.
*/
    premium_value: number;
}
/**
Contains information about features, available to Premium users.
*/
export interface PremiumFeatures {
    '@type': 'premiumFeatures';
    /**
The list of available features.
*/
    features: PremiumFeature[];
    /**
The list of limits, increased for Premium users.
*/
    limits: PremiumLimit[];
    /**
An internal link to be opened to pay for Telegram Premium if store payment isn't possible; may be null if direct payment
isn't available.
*/
    payment_link: InternalLinkType;
}
/**
Contains information about features, available to Business user accounts.
*/
export interface BusinessFeatures {
    '@type': 'businessFeatures';
    /**
The list of available business features.
*/
    features: BusinessFeature[];
}
/**
Describes a source from which the Premium features screen is opened.
Subtype of {@link PremiumSource}.
*/
export interface PremiumSourceLimitExceeded {
    '@type': 'premiumSourceLimitExceeded';
    /**
Type of the exceeded limit.
*/
    limit_type: PremiumLimitType;
}
/**
A user tried to use a Premium feature.
Subtype of {@link PremiumSource}.
*/
export interface PremiumSourceFeature {
    '@type': 'premiumSourceFeature';
    /**
The used feature.
*/
    feature: PremiumFeature;
}
/**
A user tried to use a Business feature.
Subtype of {@link PremiumSource}.
*/
export interface PremiumSourceBusinessFeature {
    '@type': 'premiumSourceBusinessFeature';
    /**
The used feature; pass null if none specific feature was used.
*/
    feature: BusinessFeature;
}
/**
A user tried to use a Premium story feature.
Subtype of {@link PremiumSource}.
*/
export interface PremiumSourceStoryFeature {
    '@type': 'premiumSourceStoryFeature';
    /**
The used feature.
*/
    feature: PremiumStoryFeature;
}
/**
A user opened an internal link of the type internalLinkTypePremiumFeatures.
Subtype of {@link PremiumSource}.
*/
export interface PremiumSourceLink {
    '@type': 'premiumSourceLink';
    /**
The referrer from the link.
*/
    referrer: string;
}
/**
A user opened the Premium features screen from settings.
Subtype of {@link PremiumSource}.
*/
export interface PremiumSourceSettings {
    '@type': 'premiumSourceSettings';
}
/**
Describes a promotion animation for a Premium feature.
*/
export interface PremiumFeaturePromotionAnimation {
    '@type': 'premiumFeaturePromotionAnimation';
    /**
Premium feature.
*/
    feature: PremiumFeature;
    /**
Promotion animation for the feature.
*/
    animation: Animation;
}
/**
Describes a promotion animation for a Business feature.
*/
export interface BusinessFeaturePromotionAnimation {
    '@type': 'businessFeaturePromotionAnimation';
    /**
Business feature.
*/
    feature: BusinessFeature;
    /**
Promotion animation for the feature.
*/
    animation: Animation;
}
/**
Contains state of Telegram Premium subscription and promotion videos for Premium features.
*/
export interface PremiumState {
    '@type': 'premiumState';
    /**
Text description of the state of the current Premium subscription; may be empty if the current user has no Telegram
Premium subscription.
*/
    state: FormattedText;
    /**
The list of available options for buying Telegram Premium.
*/
    payment_options: PremiumStatePaymentOption[];
    /**
The list of available promotion animations for Premium features.
*/
    animations: PremiumFeaturePromotionAnimation[];
    /**
The list of available promotion animations for Business features.
*/
    business_animations: BusinessFeaturePromotionAnimation[];
}
/**
Describes a purpose of an in-store payment.
Subtype of {@link StorePaymentPurpose}.
*/
export interface StorePaymentPurposePremiumSubscription {
    '@type': 'storePaymentPurposePremiumSubscription';
    /**
Pass true if this is a restore of a Telegram Premium purchase; only for App Store.
*/
    is_restore?: boolean;
    /**
Pass true if this is an upgrade from a monthly subscription to early subscription; only for App Store.
*/
    is_upgrade?: boolean;
}
/**
The user gifting Telegram Premium to another user.
Subtype of {@link StorePaymentPurpose}.
*/
export interface StorePaymentPurposePremiumGift {
    '@type': 'storePaymentPurposePremiumGift';
    /**
ISO 4217 currency code of the payment currency.
*/
    currency: string;
    /**
Paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
Identifiers of the user which will receive Telegram Premium.
*/
    user_id: number;
    /**
Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline,
Strikethrough, Spoiler, and CustomEmoji entities are allowed.
*/
    text: FormattedText;
}
/**
The user boosting a chat by creating Telegram Premium gift codes for other users.
Subtype of {@link StorePaymentPurpose}.
*/
export interface StorePaymentPurposePremiumGiftCodes {
    '@type': 'storePaymentPurposePremiumGiftCodes';
    /**
Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the
Premium subscription and which is administered by the user.
*/
    boosted_chat_id: number;
    /**
ISO 4217 currency code of the payment currency.
*/
    currency: string;
    /**
Paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
Identifiers of the users which can activate the gift codes.
*/
    user_ids: number[];
    /**
Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline,
Strikethrough, Spoiler, and CustomEmoji entities are allowed.
*/
    text: FormattedText;
}
/**
The user creating a Telegram Premium giveaway.
Subtype of {@link StorePaymentPurpose}.
*/
export interface StorePaymentPurposePremiumGiveaway {
    '@type': 'storePaymentPurposePremiumGiveaway';
    /**
Giveaway parameters.
*/
    parameters: GiveawayParameters;
    /**
ISO 4217 currency code of the payment currency.
*/
    currency: string;
    /**
Paid amount, in the smallest units of the currency.
*/
    amount: number;
}
/**
The user creating a Telegram Star giveaway.
Subtype of {@link StorePaymentPurpose}.
*/
export interface StorePaymentPurposeStarGiveaway {
    '@type': 'storePaymentPurposeStarGiveaway';
    /**
Giveaway parameters.
*/
    parameters: GiveawayParameters;
    /**
ISO 4217 currency code of the payment currency.
*/
    currency: string;
    /**
Paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
The number of users to receive Telegram Stars.
*/
    winner_count: number;
    /**
The number of Telegram Stars to be distributed through the giveaway.
*/
    star_count: number;
}
/**
The user buying Telegram Stars.
Subtype of {@link StorePaymentPurpose}.
*/
export interface StorePaymentPurposeStars {
    '@type': 'storePaymentPurposeStars';
    /**
ISO 4217 currency code of the payment currency.
*/
    currency: string;
    /**
Paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
Number of bought Telegram Stars.
*/
    star_count: number;
}
/**
The user buying Telegram Stars for other users.
Subtype of {@link StorePaymentPurpose}.
*/
export interface StorePaymentPurposeGiftedStars {
    '@type': 'storePaymentPurposeGiftedStars';
    /**
Identifier of the user to which Telegram Stars are gifted.
*/
    user_id: number;
    /**
ISO 4217 currency code of the payment currency.
*/
    currency: string;
    /**
Paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
Number of bought Telegram Stars.
*/
    star_count: number;
}
/**
Describes a purpose of a payment toward Telegram.
Subtype of {@link TelegramPaymentPurpose}.
*/
export interface TelegramPaymentPurposePremiumGift {
    '@type': 'telegramPaymentPurposePremiumGift';
    /**
ISO 4217 currency code of the payment currency.
*/
    currency: string;
    /**
Paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
Identifier of the user which will receive Telegram Premium.
*/
    user_id: number;
    /**
Number of months the Telegram Premium subscription will be active for the user.
*/
    month_count: number;
    /**
Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic,
Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed.
*/
    text: FormattedText;
}
/**
The user boosting a chat by creating Telegram Premium gift codes for other users.
Subtype of {@link TelegramPaymentPurpose}.
*/
export interface TelegramPaymentPurposePremiumGiftCodes {
    '@type': 'telegramPaymentPurposePremiumGiftCodes';
    /**
Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the
Premium subscription and which is administered by the user.
*/
    boosted_chat_id: number;
    /**
ISO 4217 currency code of the payment currency.
*/
    currency: string;
    /**
Paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
Identifiers of the users which can activate the gift codes.
*/
    user_ids: number[];
    /**
Number of months the Telegram Premium subscription will be active for the users.
*/
    month_count: number;
    /**
Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline,
Strikethrough, Spoiler, and CustomEmoji entities are allowed.
*/
    text: FormattedText;
}
/**
The user creating a Telegram Premium giveaway.
Subtype of {@link TelegramPaymentPurpose}.
*/
export interface TelegramPaymentPurposePremiumGiveaway {
    '@type': 'telegramPaymentPurposePremiumGiveaway';
    /**
Giveaway parameters.
*/
    parameters: GiveawayParameters;
    /**
ISO 4217 currency code of the payment currency.
*/
    currency: string;
    /**
Paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
Number of users which will be able to activate the gift codes.
*/
    winner_count: number;
    /**
Number of months the Telegram Premium subscription will be active for the users.
*/
    month_count: number;
}
/**
The user buying Telegram Stars.
Subtype of {@link TelegramPaymentPurpose}.
*/
export interface TelegramPaymentPurposeStars {
    '@type': 'telegramPaymentPurposeStars';
    /**
ISO 4217 currency code of the payment currency.
*/
    currency: string;
    /**
Paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
Number of bought Telegram Stars.
*/
    star_count: number;
}
/**
The user buying Telegram Stars for other users.
Subtype of {@link TelegramPaymentPurpose}.
*/
export interface TelegramPaymentPurposeGiftedStars {
    '@type': 'telegramPaymentPurposeGiftedStars';
    /**
Identifier of the user to which Telegram Stars are gifted.
*/
    user_id: number;
    /**
ISO 4217 currency code of the payment currency.
*/
    currency: string;
    /**
Paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
Number of bought Telegram Stars.
*/
    star_count: number;
}
/**
The user creating a Telegram Star giveaway.
Subtype of {@link TelegramPaymentPurpose}.
*/
export interface TelegramPaymentPurposeStarGiveaway {
    '@type': 'telegramPaymentPurposeStarGiveaway';
    /**
Giveaway parameters.
*/
    parameters: GiveawayParameters;
    /**
ISO 4217 currency code of the payment currency.
*/
    currency: string;
    /**
Paid amount, in the smallest units of the currency.
*/
    amount: number;
    /**
The number of users to receive Telegram Stars.
*/
    winner_count: number;
    /**
The number of Telegram Stars to be distributed through the giveaway.
*/
    star_count: number;
}
/**
The user joins a chat and subscribes to regular payments in Telegram Stars.
Subtype of {@link TelegramPaymentPurpose}.
*/
export interface TelegramPaymentPurposeJoinChat {
    '@type': 'telegramPaymentPurposeJoinChat';
    /**
Invite link to use.
*/
    invite_link: string;
}
/**
Represents a data needed to subscribe for push notifications through registerDevice method. To use specific push
notification service, the correct application platform must be specified and a valid server authentication data must be
uploaded at https://my.telegram.org.
Subtype of {@link DeviceToken}.
*/
export interface DeviceTokenFirebaseCloudMessaging {
    '@type': 'deviceTokenFirebaseCloudMessaging';
    /**
Device registration token; may be empty to deregister a device.
*/
    token: string;
    /**
True, if push notifications must be additionally encrypted.
*/
    encrypt?: boolean;
}
/**
A token for Apple Push Notification service.
Subtype of {@link DeviceToken}.
*/
export interface DeviceTokenApplePush {
    '@type': 'deviceTokenApplePush';
    /**
Device token; may be empty to deregister a device.
*/
    device_token: string;
    /**
True, if App Sandbox is enabled.
*/
    is_app_sandbox?: boolean;
}
/**
A token for Apple Push Notification service VoIP notifications.
Subtype of {@link DeviceToken}.
*/
export interface DeviceTokenApplePushVoIp {
    '@type': 'deviceTokenApplePushVoIP';
    /**
Device token; may be empty to deregister a device.
*/
    device_token: string;
    /**
True, if App Sandbox is enabled.
*/
    is_app_sandbox?: boolean;
    /**
True, if push notifications must be additionally encrypted.
*/
    encrypt?: boolean;
}
/**
A token for Windows Push Notification Services.
Subtype of {@link DeviceToken}.
*/
export interface DeviceTokenWindowsPush {
    '@type': 'deviceTokenWindowsPush';
    /**
The access token that will be used to send notifications; may be empty to deregister a device.
*/
    access_token: string;
}
/**
A token for Microsoft Push Notification Service.
Subtype of {@link DeviceToken}.
*/
export interface DeviceTokenMicrosoftPush {
    '@type': 'deviceTokenMicrosoftPush';
    /**
Push notification channel URI; may be empty to deregister a device.
*/
    channel_uri: string;
}
/**
A token for Microsoft Push Notification Service VoIP channel.
Subtype of {@link DeviceToken}.
*/
export interface DeviceTokenMicrosoftPushVoIp {
    '@type': 'deviceTokenMicrosoftPushVoIP';
    /**
Push notification channel URI; may be empty to deregister a device.
*/
    channel_uri: string;
}
/**
A token for web Push API.
Subtype of {@link DeviceToken}.
*/
export interface DeviceTokenWebPush {
    '@type': 'deviceTokenWebPush';
    /**
Absolute URL exposed by the push service where the application server can send push messages; may be empty to deregister
a device.
*/
    endpoint: string;
    /**
Base64url-encoded P-256 elliptic curve Diffie-Hellman public key.
*/
    p256dh_base64url: string;
    /**
Base64url-encoded authentication secret.
*/
    auth_base64url: string;
}
/**
A token for Simple Push API for Firefox OS.
Subtype of {@link DeviceToken}.
*/
export interface DeviceTokenSimplePush {
    '@type': 'deviceTokenSimplePush';
    /**
Absolute URL exposed by the push service where the application server can send push messages; may be empty to deregister
a device.
*/
    endpoint: string;
}
/**
A token for Ubuntu Push Client service.
Subtype of {@link DeviceToken}.
*/
export interface DeviceTokenUbuntuPush {
    '@type': 'deviceTokenUbuntuPush';
    /**
Token; may be empty to deregister a device.
*/
    token: string;
}
/**
A token for BlackBerry Push Service.
Subtype of {@link DeviceToken}.
*/
export interface DeviceTokenBlackBerryPush {
    '@type': 'deviceTokenBlackBerryPush';
    /**
Token; may be empty to deregister a device.
*/
    token: string;
}
/**
A token for Tizen Push Service.
Subtype of {@link DeviceToken}.
*/
export interface DeviceTokenTizenPush {
    '@type': 'deviceTokenTizenPush';
    /**
Push service registration identifier; may be empty to deregister a device.
*/
    reg_id: string;
}
/**
A token for HUAWEI Push Service.
Subtype of {@link DeviceToken}.
*/
export interface DeviceTokenHuaweiPush {
    '@type': 'deviceTokenHuaweiPush';
    /**
Device registration token; may be empty to deregister a device.
*/
    token: string;
    /**
True, if push notifications must be additionally encrypted.
*/
    encrypt?: boolean;
}
/**
Contains a globally unique push receiver identifier, which can be used to identify which account has received a push
notification.
*/
export interface PushReceiverId {
    '@type': 'pushReceiverId';
    /**
The globally unique identifier of push notification subscription.
*/
    id: string;
}
/**
Describes a fill of a background.
Subtype of {@link BackgroundFill}.
*/
export interface BackgroundFillSolid {
    '@type': 'backgroundFillSolid';
    /**
A color of the background in the RGB format.
*/
    color: number;
}
/**
Describes a gradient fill of a background.
Subtype of {@link BackgroundFill}.
*/
export interface BackgroundFillGradient {
    '@type': 'backgroundFillGradient';
    /**
A top color of the background in the RGB format.
*/
    top_color: number;
    /**
A bottom color of the background in the RGB format.
*/
    bottom_color: number;
    /**
Clockwise rotation angle of the gradient, in degrees; 0-359. Must always be divisible by 45.
*/
    rotation_angle: number;
}
/**
Describes a freeform gradient fill of a background.
Subtype of {@link BackgroundFill}.
*/
export interface BackgroundFillFreeformGradient {
    '@type': 'backgroundFillFreeformGradient';
    /**
A list of 3 or 4 colors of the freeform gradient in the RGB format.
*/
    colors: number[];
}
/**
Describes the type of background.
Subtype of {@link BackgroundType}.
*/
export interface BackgroundTypeWallpaper {
    '@type': 'backgroundTypeWallpaper';
    /**
True, if the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12.
*/
    is_blurred?: boolean;
    /**
True, if the background needs to be slightly moved when device is tilted.
*/
    is_moving?: boolean;
}
/**
A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the
background fill chosen by the user.
Subtype of {@link BackgroundType}.
*/
export interface BackgroundTypePattern {
    '@type': 'backgroundTypePattern';
    /**
Fill of the background.
*/
    fill: BackgroundFill;
    /**
Intensity of the pattern when it is shown above the filled background; 0-100.
*/
    intensity: number;
    /**
True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For
dark themes only.
*/
    is_inverted?: boolean;
    /**
True, if the background needs to be slightly moved when device is tilted.
*/
    is_moving?: boolean;
}
/**
A filled background.
Subtype of {@link BackgroundType}.
*/
export interface BackgroundTypeFill {
    '@type': 'backgroundTypeFill';
    /**
The background fill.
*/
    fill: BackgroundFill;
}
/**
A background from a chat theme; can be used only as a chat background in channels.
Subtype of {@link BackgroundType}.
*/
export interface BackgroundTypeChatTheme {
    '@type': 'backgroundTypeChatTheme';
    /**
Name of the chat theme.
*/
    theme_name: string;
}
/**
Contains information about background to set.
Subtype of {@link InputBackground}.
*/
export interface InputBackgroundLocal {
    '@type': 'inputBackgroundLocal';
    /**
Background file to use. Only inputFileLocal and inputFileGenerated are supported. The file must be in JPEG format for
wallpapers and in PNG format for patterns.
*/
    background: InputFile;
}
/**
A background from the server.
Subtype of {@link InputBackground}.
*/
export interface InputBackgroundRemote {
    '@type': 'inputBackgroundRemote';
    /**
The background identifier.
*/
    background_id: string;
}
/**
A background previously set in the chat; for chat backgrounds only.
Subtype of {@link InputBackground}.
*/
export interface InputBackgroundPrevious {
    '@type': 'inputBackgroundPrevious';
    /**
Identifier of the message with the background.
*/
    message_id: number;
}
/**
Describes a chat theme.
*/
export interface ChatTheme {
    '@type': 'chatTheme';
    /**
Theme name.
*/
    name: string;
    /**
Theme settings for a light chat theme.
*/
    light_settings: ThemeSettings;
    /**
Theme settings for a dark chat theme.
*/
    dark_settings: ThemeSettings;
}
/**
Describes a time zone.
*/
export interface TimeZone {
    '@type': 'timeZone';
    /**
Unique time zone identifier.
*/
    id: string;
    /**
Time zone name.
*/
    name: string;
    /**
Current UTC time offset for the time zone.
*/
    utc_time_offset: number;
}
/**
Contains a list of time zones.
*/
export interface TimeZones {
    '@type': 'timeZones';
    /**
A list of time zones.
*/
    time_zones: TimeZone[];
}
/**
Contains a list of hashtags.
*/
export interface Hashtags {
    '@type': 'hashtags';
    /**
A list of hashtags.
*/
    hashtags: string[];
}
/**
Represents result of checking whether the current user can send a story in the specific chat.
Subtype of {@link CanSendStoryResult}.
*/
export interface CanSendStoryResultOk {
    '@type': 'canSendStoryResultOk';
}
/**
The user must subscribe to Telegram Premium to be able to post stories.
Subtype of {@link CanSendStoryResult}.
*/
export interface CanSendStoryResultPremiumNeeded {
    '@type': 'canSendStoryResultPremiumNeeded';
}
/**
The chat must be boosted first by Telegram Premium subscribers to post more stories. Call getChatBoostStatus to get
current boost status of the chat.
Subtype of {@link CanSendStoryResult}.
*/
export interface CanSendStoryResultBoostNeeded {
    '@type': 'canSendStoryResultBoostNeeded';
}
/**
The limit for the number of active stories exceeded. The user can buy Telegram Premium, delete an active story, or wait
for the oldest story to expire.
Subtype of {@link CanSendStoryResult}.
*/
export interface CanSendStoryResultActiveStoryLimitExceeded {
    '@type': 'canSendStoryResultActiveStoryLimitExceeded';
}
/**
The weekly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified
time.
Subtype of {@link CanSendStoryResult}.
*/
export interface CanSendStoryResultWeeklyLimitExceeded {
    '@type': 'canSendStoryResultWeeklyLimitExceeded';
    /**
Time left before the user can send the next story.
*/
    retry_after: number;
}
/**
The monthly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified
time.
Subtype of {@link CanSendStoryResult}.
*/
export interface CanSendStoryResultMonthlyLimitExceeded {
    '@type': 'canSendStoryResultMonthlyLimitExceeded';
    /**
Time left before the user can send the next story.
*/
    retry_after: number;
}
/**
Represents result of checking whether the current session can be used to transfer a chat ownership to another user.
Subtype of {@link CanTransferOwnershipResult}.
*/
export interface CanTransferOwnershipResultOk {
    '@type': 'canTransferOwnershipResultOk';
}
/**
The 2-step verification needs to be enabled first.
Subtype of {@link CanTransferOwnershipResult}.
*/
export interface CanTransferOwnershipResultPasswordNeeded {
    '@type': 'canTransferOwnershipResultPasswordNeeded';
}
/**
The 2-step verification was enabled recently, user needs to wait.
Subtype of {@link CanTransferOwnershipResult}.
*/
export interface CanTransferOwnershipResultPasswordTooFresh {
    '@type': 'canTransferOwnershipResultPasswordTooFresh';
    /**
Time left before the session can be used to transfer ownership of a chat, in seconds.
*/
    retry_after: number;
}
/**
The session was created recently, user needs to wait.
Subtype of {@link CanTransferOwnershipResult}.
*/
export interface CanTransferOwnershipResultSessionTooFresh {
    '@type': 'canTransferOwnershipResultSessionTooFresh';
    /**
Time left before the session can be used to transfer ownership of a chat, in seconds.
*/
    retry_after: number;
}
/**
Represents result of checking whether a username can be set for a chat.
Subtype of {@link CheckChatUsernameResult}.
*/
export interface CheckChatUsernameResultOk {
    '@type': 'checkChatUsernameResultOk';
}
/**
The username is invalid.
Subtype of {@link CheckChatUsernameResult}.
*/
export interface CheckChatUsernameResultUsernameInvalid {
    '@type': 'checkChatUsernameResultUsernameInvalid';
}
/**
The username is occupied.
Subtype of {@link CheckChatUsernameResult}.
*/
export interface CheckChatUsernameResultUsernameOccupied {
    '@type': 'checkChatUsernameResultUsernameOccupied';
}
/**
The username can be purchased at https://fragment.com. Information about the username can be received using
getCollectibleItemInfo.
Subtype of {@link CheckChatUsernameResult}.
*/
export interface CheckChatUsernameResultUsernamePurchasable {
    '@type': 'checkChatUsernameResultUsernamePurchasable';
}
/**
The user has too many chats with username, one of them must be made private first.
Subtype of {@link CheckChatUsernameResult}.
*/
export interface CheckChatUsernameResultPublicChatsTooMany {
    '@type': 'checkChatUsernameResultPublicChatsTooMany';
}
/**
The user can't be a member of a public supergroup.
Subtype of {@link CheckChatUsernameResult}.
*/
export interface CheckChatUsernameResultPublicGroupsUnavailable {
    '@type': 'checkChatUsernameResultPublicGroupsUnavailable';
}
/**
Represents result of checking whether a name can be used for a new sticker set.
Subtype of {@link CheckStickerSetNameResult}.
*/
export interface CheckStickerSetNameResultOk {
    '@type': 'checkStickerSetNameResultOk';
}
/**
The name is invalid.
Subtype of {@link CheckStickerSetNameResult}.
*/
export interface CheckStickerSetNameResultNameInvalid {
    '@type': 'checkStickerSetNameResultNameInvalid';
}
/**
The name is occupied.
Subtype of {@link CheckStickerSetNameResult}.
*/
export interface CheckStickerSetNameResultNameOccupied {
    '@type': 'checkStickerSetNameResultNameOccupied';
}
/**
Represents result of 2-step verification password reset.
Subtype of {@link ResetPasswordResult}.
*/
export interface ResetPasswordResultOk {
    '@type': 'resetPasswordResultOk';
}
/**
The password reset request is pending.
Subtype of {@link ResetPasswordResult}.
*/
export interface ResetPasswordResultPending {
    '@type': 'resetPasswordResultPending';
    /**
Point in time (Unix timestamp) after which the password can be reset immediately using resetPassword.
*/
    pending_reset_date: number;
}
/**
The password reset request was declined.
Subtype of {@link ResetPasswordResult}.
*/
export interface ResetPasswordResultDeclined {
    '@type': 'resetPasswordResultDeclined';
    /**
Point in time (Unix timestamp) when the password reset can be retried.
*/
    retry_date: number;
}
/**
Contains information about a file with messages exported from another app.
Subtype of {@link MessageFileType}.
*/
export interface MessageFileTypePrivate {
    '@type': 'messageFileTypePrivate';
    /**
Name of the other party; may be empty if unrecognized.
*/
    name: string;
}
/**
The messages were exported from a group chat.
Subtype of {@link MessageFileType}.
*/
export interface MessageFileTypeGroup {
    '@type': 'messageFileTypeGroup';
    /**
Title of the group chat; may be empty if unrecognized.
*/
    title: string;
}
/**
The messages were exported from a chat of unknown type.
Subtype of {@link MessageFileType}.
*/
export interface MessageFileTypeUnknown {
    '@type': 'messageFileTypeUnknown';
}
/**
Contains content of a push message notification.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentHidden {
    '@type': 'pushMessageContentHidden';
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
An animation message (GIF-style).
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentAnimation {
    '@type': 'pushMessageContentAnimation';
    /**
Message content; may be null.
*/
    animation: Animation;
    /**
Animation caption.
*/
    caption: string;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
An audio message.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentAudio {
    '@type': 'pushMessageContentAudio';
    /**
Message content; may be null.
*/
    audio: Audio;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A message with a user contact.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentContact {
    '@type': 'pushMessageContentContact';
    /**
Contact's name.
*/
    name: string;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A contact has registered with Telegram.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentContactRegistered {
    '@type': 'pushMessageContentContactRegistered';
}
/**
A document message (a general file).
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentDocument {
    '@type': 'pushMessageContentDocument';
    /**
Message content; may be null.
*/
    document: Document;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A message with a game.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentGame {
    '@type': 'pushMessageContentGame';
    /**
Game title, empty for pinned game message.
*/
    title: string;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A new high score was achieved in a game.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentGameScore {
    '@type': 'pushMessageContentGameScore';
    /**
Game title, empty for pinned message.
*/
    title: string;
    /**
New score, 0 for pinned message.
*/
    score: number;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A message with an invoice from a bot.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentInvoice {
    '@type': 'pushMessageContentInvoice';
    /**
Product price.
*/
    price: string;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A message with a location.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentLocation {
    '@type': 'pushMessageContentLocation';
    /**
True, if the location is live.
*/
    is_live?: boolean;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A message with paid media.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentPaidMedia {
    '@type': 'pushMessageContentPaidMedia';
    /**
Number of Telegram Stars needed to buy access to the media in the message; 0 for pinned message.
*/
    star_count: number;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A photo message.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentPhoto {
    '@type': 'pushMessageContentPhoto';
    /**
Message content; may be null.
*/
    photo: Photo;
    /**
Photo caption.
*/
    caption: string;
    /**
True, if the photo is secret.
*/
    is_secret?: boolean;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A message with a poll.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentPoll {
    '@type': 'pushMessageContentPoll';
    /**
Poll question.
*/
    question: string;
    /**
True, if the poll is regular and not in quiz mode.
*/
    is_regular?: boolean;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A message with a Telegram Premium gift code created for the user.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentPremiumGiftCode {
    '@type': 'pushMessageContentPremiumGiftCode';
    /**
Number of months the Telegram Premium subscription will be active after code activation.
*/
    month_count: number;
}
/**
A message with a giveaway.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentGiveaway {
    '@type': 'pushMessageContentGiveaway';
    /**
Number of users which will receive giveaway prizes; 0 for pinned message.
*/
    winner_count: number;
    /**
Prize of the giveaway; may be null for pinned message.
*/
    prize: GiveawayPrize;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A message with a gift.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentGift {
    '@type': 'pushMessageContentGift';
    /**
Number of Telegram Stars that sender paid for the gift.
*/
    star_count: number;
}
/**
A message with an upgraded gift.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentUpgradedGift {
    '@type': 'pushMessageContentUpgradedGift';
    /**
True, if the gift was obtained by upgrading of a previously received gift; otherwise, this is a transferred gift.
*/
    is_upgrade?: boolean;
}
/**
A screenshot of a message in the chat has been taken.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentScreenshotTaken {
    '@type': 'pushMessageContentScreenshotTaken';
}
/**
A message with a sticker.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentSticker {
    '@type': 'pushMessageContentSticker';
    /**
Message content; may be null.
*/
    sticker: Sticker;
    /**
Emoji corresponding to the sticker; may be empty.
*/
    emoji: string;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A message with a story.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentStory {
    '@type': 'pushMessageContentStory';
    /**
True, if the user was mentioned in the story.
*/
    is_mention?: boolean;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A text message.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentText {
    '@type': 'pushMessageContentText';
    /**
Message text.
*/
    text: string;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A video message.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentVideo {
    '@type': 'pushMessageContentVideo';
    /**
Message content; may be null.
*/
    video: Video;
    /**
Video caption.
*/
    caption: string;
    /**
True, if the video is secret.
*/
    is_secret?: boolean;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A video note message.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentVideoNote {
    '@type': 'pushMessageContentVideoNote';
    /**
Message content; may be null.
*/
    video_note: VideoNote;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A voice note message.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentVoiceNote {
    '@type': 'pushMessageContentVoiceNote';
    /**
Message content; may be null.
*/
    voice_note: VoiceNote;
    /**
True, if the message is a pinned message with the specified content.
*/
    is_pinned?: boolean;
}
/**
A newly created basic group.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentBasicGroupChatCreate {
    '@type': 'pushMessageContentBasicGroupChatCreate';
}
/**
A video chat or live stream was started.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentVideoChatStarted {
    '@type': 'pushMessageContentVideoChatStarted';
}
/**
A video chat or live stream has ended.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentVideoChatEnded {
    '@type': 'pushMessageContentVideoChatEnded';
}
/**
An invitation of participants to a video chat or live stream.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentInviteVideoChatParticipants {
    '@type': 'pushMessageContentInviteVideoChatParticipants';
    /**
True, if the current user was invited to the video chat or the live stream.
*/
    is_current_user?: boolean;
}
/**
New chat members were invited to a group.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentChatAddMembers {
    '@type': 'pushMessageContentChatAddMembers';
    /**
Name of the added member.
*/
    member_name: string;
    /**
True, if the current user was added to the group.
*/
    is_current_user?: boolean;
    /**
True, if the user has returned to the group themselves.
*/
    is_returned?: boolean;
}
/**
A chat photo was edited.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentChatChangePhoto {
    '@type': 'pushMessageContentChatChangePhoto';
}
/**
A chat title was edited.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentChatChangeTitle {
    '@type': 'pushMessageContentChatChangeTitle';
    /**
New chat title.
*/
    title: string;
}
/**
A chat background was edited.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentChatSetBackground {
    '@type': 'pushMessageContentChatSetBackground';
    /**
True, if the set background is the same as the background of the current user.
*/
    is_same?: boolean;
}
/**
A chat theme was edited.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentChatSetTheme {
    '@type': 'pushMessageContentChatSetTheme';
    /**
If non-empty, name of a new theme, set for the chat. Otherwise, the chat theme was reset to the default one.
*/
    theme_name: string;
}
/**
A chat member was deleted.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentChatDeleteMember {
    '@type': 'pushMessageContentChatDeleteMember';
    /**
Name of the deleted member.
*/
    member_name: string;
    /**
True, if the current user was deleted from the group.
*/
    is_current_user?: boolean;
    /**
True, if the user has left the group themselves.
*/
    is_left?: boolean;
}
/**
A new member joined the chat via an invite link.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentChatJoinByLink {
    '@type': 'pushMessageContentChatJoinByLink';
}
/**
A new member was accepted to the chat by an administrator.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentChatJoinByRequest {
    '@type': 'pushMessageContentChatJoinByRequest';
}
/**
A new recurring payment was made by the current user.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentRecurringPayment {
    '@type': 'pushMessageContentRecurringPayment';
    /**
The paid amount.
*/
    amount: string;
}
/**
A profile photo was suggested to the user.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentSuggestProfilePhoto {
    '@type': 'pushMessageContentSuggestProfilePhoto';
}
/**
A user in the chat came within proximity alert range from the current user.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentProximityAlertTriggered {
    '@type': 'pushMessageContentProximityAlertTriggered';
    /**
The distance to the user.
*/
    distance: number;
}
/**
A forwarded messages.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentMessageForwards {
    '@type': 'pushMessageContentMessageForwards';
    /**
Number of forwarded messages.
*/
    total_count: number;
}
/**
A media album.
Subtype of {@link PushMessageContent}.
*/
export interface PushMessageContentMediaAlbum {
    '@type': 'pushMessageContentMediaAlbum';
    /**
Number of messages in the album.
*/
    total_count: number;
    /**
True, if the album has at least one photo.
*/
    has_photos?: boolean;
    /**
True, if the album has at least one video file.
*/
    has_videos?: boolean;
    /**
True, if the album has at least one audio file.
*/
    has_audios?: boolean;
    /**
True, if the album has at least one document.
*/
    has_documents?: boolean;
}
/**
Contains detailed information about a notification.
Subtype of {@link NotificationType}.
*/
export interface NotificationTypeNewMessage {
    '@type': 'notificationTypeNewMessage';
    /**
The message.
*/
    message: Message;
    /**
True, if message content must be displayed in notifications.
*/
    show_preview?: boolean;
}
/**
New secret chat was created.
Subtype of {@link NotificationType}.
*/
export interface NotificationTypeNewSecretChat {
    '@type': 'notificationTypeNewSecretChat';
}
/**
New call was received.
Subtype of {@link NotificationType}.
*/
export interface NotificationTypeNewCall {
    '@type': 'notificationTypeNewCall';
    /**
Call identifier.
*/
    call_id: number;
}
/**
New message was received through a push notification.
Subtype of {@link NotificationType}.
*/
export interface NotificationTypeNewPushMessage {
    '@type': 'notificationTypeNewPushMessage';
    /**
The message identifier. The message will not be available in the chat history, but the identifier can be used in
viewMessages, or as a message to be replied in the same chat.
*/
    message_id: number;
    /**
Identifier of the sender of the message. Corresponding user or chat may be inaccessible.
*/
    sender_id: MessageSender;
    /**
Name of the sender.
*/
    sender_name: string;
    /**
True, if the message is outgoing.
*/
    is_outgoing?: boolean;
    /**
Push message content.
*/
    content: PushMessageContent;
}
/**
Describes the type of notifications in a notification group.
Subtype of {@link NotificationGroupType}.
*/
export interface NotificationGroupTypeMessages {
    '@type': 'notificationGroupTypeMessages';
}
/**
A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with unread
mentions of the current user, replies to their messages, or a pinned message.
Subtype of {@link NotificationGroupType}.
*/
export interface NotificationGroupTypeMentions {
    '@type': 'notificationGroupTypeMentions';
}
/**
A group containing a notification of type notificationTypeNewSecretChat.
Subtype of {@link NotificationGroupType}.
*/
export interface NotificationGroupTypeSecretChat {
    '@type': 'notificationGroupTypeSecretChat';
}
/**
A group containing notifications of type notificationTypeNewCall.
Subtype of {@link NotificationGroupType}.
*/
export interface NotificationGroupTypeCalls {
    '@type': 'notificationGroupTypeCalls';
}
/**
Describes a notification sound in MP3 format.
*/
export interface NotificationSound {
    '@type': 'notificationSound';
    /**
Unique identifier of the notification sound.
*/
    id: string;
    /**
Duration of the sound, in seconds.
*/
    duration: number;
    /**
Point in time (Unix timestamp) when the sound was created.
*/
    date: number;
    /**
Title of the notification sound.
*/
    title: string;
    /**
Arbitrary data, defined while the sound was uploaded.
*/
    data: string;
    /**
File containing the sound.
*/
    sound: File;
}
/**
Contains a list of notification sounds.
*/
export interface NotificationSounds {
    '@type': 'notificationSounds';
    /**
A list of notification sounds.
*/
    notification_sounds: NotificationSound[];
}
/**
Contains information about a notification.
*/
export interface Notification {
    '@type': 'notification';
    /**
Unique persistent identifier of this notification.
*/
    id: number;
    /**
Notification date.
*/
    date: number;
    /**
True, if the notification was explicitly sent without sound.
*/
    is_silent?: boolean;
    /**
Notification type.
*/
    type: NotificationType;
}
/**
Describes a group of notifications.
*/
export interface NotificationGroup {
    '@type': 'notificationGroup';
    /**
Unique persistent auto-incremented from 1 identifier of the notification group.
*/
    id: number;
    /**
Type of the group.
*/
    type: NotificationGroupType;
    /**
Identifier of a chat to which all notifications in the group belong.
*/
    chat_id: number;
    /**
Total number of active notifications in the group.
*/
    total_count: number;
    /**
The list of active notifications.
*/
    notifications: Notification[];
}
/**
Represents the value of an option.
Subtype of {@link OptionValue}.
*/
export interface OptionValueBoolean {
    '@type': 'optionValueBoolean';
    /**
The value of the option.
*/
    value?: boolean;
}
/**
Represents an unknown option or an option which has a default value.
Subtype of {@link OptionValue}.
*/
export interface OptionValueEmpty {
    '@type': 'optionValueEmpty';
}
/**
Represents an integer option.
Subtype of {@link OptionValue}.
*/
export interface OptionValueInteger {
    '@type': 'optionValueInteger';
    /**
The value of the option.
*/
    value: string;
}
/**
Represents a string option.
Subtype of {@link OptionValue}.
*/
export interface OptionValueString {
    '@type': 'optionValueString';
    /**
The value of the option.
*/
    value: string;
}
/**
Represents one member of a JSON object.
*/
export interface JsonObjectMember {
    '@type': 'jsonObjectMember';
    /**
Member's key.
*/
    key: string;
    /**
Member's value.
*/
    value: JsonValue;
}
/**
Represents a JSON value.
Subtype of {@link JsonValue}.
*/
export interface JsonValueNull {
    '@type': 'jsonValueNull';
}
/**
Represents a boolean JSON value.
Subtype of {@link JsonValue}.
*/
export interface JsonValueBoolean {
    '@type': 'jsonValueBoolean';
    /**
The value.
*/
    value?: boolean;
}
/**
Represents a numeric JSON value.
Subtype of {@link JsonValue}.
*/
export interface JsonValueNumber {
    '@type': 'jsonValueNumber';
    /**
The value.
*/
    value: number;
}
/**
Represents a string JSON value.
Subtype of {@link JsonValue}.
*/
export interface JsonValueString {
    '@type': 'jsonValueString';
    /**
The value.
*/
    value: string;
}
/**
Represents a JSON array.
Subtype of {@link JsonValue}.
*/
export interface JsonValueArray {
    '@type': 'jsonValueArray';
    /**
The list of array elements.
*/
    values: JsonValue[];
}
/**
Represents a JSON object.
Subtype of {@link JsonValue}.
*/
export interface JsonValueObject {
    '@type': 'jsonValueObject';
    /**
The list of object members.
*/
    members: JsonObjectMember[];
}
/**
Describes privacy settings of a story.
Subtype of {@link StoryPrivacySettings}.
*/
export interface StoryPrivacySettingsEveryone {
    '@type': 'storyPrivacySettingsEveryone';
    /**
Identifiers of the users that can't see the story; always unknown and empty for non-owned stories.
*/
    except_user_ids: number[];
}
/**
The story can be viewed by all contacts except chosen users.
Subtype of {@link StoryPrivacySettings}.
*/
export interface StoryPrivacySettingsContacts {
    '@type': 'storyPrivacySettingsContacts';
    /**
User identifiers of the contacts that can't see the story; always unknown and empty for non-owned stories.
*/
    except_user_ids: number[];
}
/**
The story can be viewed by all close friends.
Subtype of {@link StoryPrivacySettings}.
*/
export interface StoryPrivacySettingsCloseFriends {
    '@type': 'storyPrivacySettingsCloseFriends';
}
/**
The story can be viewed by certain specified users.
Subtype of {@link StoryPrivacySettings}.
*/
export interface StoryPrivacySettingsSelectedUsers {
    '@type': 'storyPrivacySettingsSelectedUsers';
    /**
Identifiers of the users; always unknown and empty for non-owned stories.
*/
    user_ids: number[];
}
/**
Represents a single rule for managing user privacy settings.
Subtype of {@link UserPrivacySettingRule}.
*/
export interface UserPrivacySettingRuleAllowAll {
    '@type': 'userPrivacySettingRuleAllowAll';
}
/**
A rule to allow all contacts of the user to do something.
Subtype of {@link UserPrivacySettingRule}.
*/
export interface UserPrivacySettingRuleAllowContacts {
    '@type': 'userPrivacySettingRuleAllowContacts';
}
/**
A rule to allow all bots to do something.
Subtype of {@link UserPrivacySettingRule}.
*/
export interface UserPrivacySettingRuleAllowBots {
    '@type': 'userPrivacySettingRuleAllowBots';
}
/**
A rule to allow all Premium Users to do something; currently, allowed only for userPrivacySettingAllowChatInvites.
Subtype of {@link UserPrivacySettingRule}.
*/
export interface UserPrivacySettingRuleAllowPremiumUsers {
    '@type': 'userPrivacySettingRuleAllowPremiumUsers';
}
/**
A rule to allow certain specified users to do something.
Subtype of {@link UserPrivacySettingRule}.
*/
export interface UserPrivacySettingRuleAllowUsers {
    '@type': 'userPrivacySettingRuleAllowUsers';
    /**
The user identifiers, total number of users in all rules must not exceed 1000.
*/
    user_ids: number[];
}
/**
A rule to allow all members of certain specified basic groups and supergroups to doing something.
Subtype of {@link UserPrivacySettingRule}.
*/
export interface UserPrivacySettingRuleAllowChatMembers {
    '@type': 'userPrivacySettingRuleAllowChatMembers';
    /**
The chat identifiers, total number of chats in all rules must not exceed 20.
*/
    chat_ids: number[];
}
/**
A rule to restrict all users from doing something.
Subtype of {@link UserPrivacySettingRule}.
*/
export interface UserPrivacySettingRuleRestrictAll {
    '@type': 'userPrivacySettingRuleRestrictAll';
}
/**
A rule to restrict all contacts of the user from doing something.
Subtype of {@link UserPrivacySettingRule}.
*/
export interface UserPrivacySettingRuleRestrictContacts {
    '@type': 'userPrivacySettingRuleRestrictContacts';
}
/**
A rule to restrict all bots from doing something.
Subtype of {@link UserPrivacySettingRule}.
*/
export interface UserPrivacySettingRuleRestrictBots {
    '@type': 'userPrivacySettingRuleRestrictBots';
}
/**
A rule to restrict all specified users from doing something.
Subtype of {@link UserPrivacySettingRule}.
*/
export interface UserPrivacySettingRuleRestrictUsers {
    '@type': 'userPrivacySettingRuleRestrictUsers';
    /**
The user identifiers, total number of users in all rules must not exceed 1000.
*/
    user_ids: number[];
}
/**
A rule to restrict all members of specified basic groups and supergroups from doing something.
Subtype of {@link UserPrivacySettingRule}.
*/
export interface UserPrivacySettingRuleRestrictChatMembers {
    '@type': 'userPrivacySettingRuleRestrictChatMembers';
    /**
The chat identifiers, total number of chats in all rules must not exceed 20.
*/
    chat_ids: number[];
}
/**
A list of privacy rules. Rules are matched in the specified order. The first matched rule defines the privacy setting
for a given user. If no rule matches, the action is not allowed.
*/
export interface UserPrivacySettingRules {
    '@type': 'userPrivacySettingRules';
    /**
A list of rules.
*/
    rules: UserPrivacySettingRule[];
}
/**
Describes available user privacy settings.
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingShowStatus {
    '@type': 'userPrivacySettingShowStatus';
}
/**
A privacy setting for managing whether the user's profile photo is visible.
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingShowProfilePhoto {
    '@type': 'userPrivacySettingShowProfilePhoto';
}
/**
A privacy setting for managing whether a link to the user's account is included in forwarded messages.
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingShowLinkInForwardedMessages {
    '@type': 'userPrivacySettingShowLinkInForwardedMessages';
}
/**
A privacy setting for managing whether the user's phone number is visible.
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingShowPhoneNumber {
    '@type': 'userPrivacySettingShowPhoneNumber';
}
/**
A privacy setting for managing whether the user's bio is visible.
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingShowBio {
    '@type': 'userPrivacySettingShowBio';
}
/**
A privacy setting for managing whether the user's birthdate is visible.
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingShowBirthdate {
    '@type': 'userPrivacySettingShowBirthdate';
}
/**
A privacy setting for managing whether the user can be invited to chats.
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingAllowChatInvites {
    '@type': 'userPrivacySettingAllowChatInvites';
}
/**
A privacy setting for managing whether the user can be called.
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingAllowCalls {
    '@type': 'userPrivacySettingAllowCalls';
}
/**
A privacy setting for managing whether peer-to-peer connections can be used for calls.
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingAllowPeerToPeerCalls {
    '@type': 'userPrivacySettingAllowPeerToPeerCalls';
}
/**
A privacy setting for managing whether the user can be found by their phone number. Checked only if the phone number is
not known to the other user. Can be set only to "Allow contacts" or "Allow all".
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingAllowFindingByPhoneNumber {
    '@type': 'userPrivacySettingAllowFindingByPhoneNumber';
}
/**
A privacy setting for managing whether the user can receive voice and video messages in private chats; for Telegram
Premium users only.
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages {
    '@type': 'userPrivacySettingAllowPrivateVoiceAndVideoNoteMessages';
}
/**
A privacy setting for managing whether received gifts are automatically shown on the user's profile page.
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingAutosaveGifts {
    '@type': 'userPrivacySettingAutosaveGifts';
}
/**
A privacy setting for managing whether the user can receive messages without additional payment.
Subtype of {@link UserPrivacySetting}.
*/
export interface UserPrivacySettingAllowUnpaidMessages {
    '@type': 'userPrivacySettingAllowUnpaidMessages';
}
/**
Contains privacy settings for message read date in private chats. Read dates are always shown to the users that can see
online status of the current user regardless of this setting.
*/
export interface ReadDatePrivacySettings {
    '@type': 'readDatePrivacySettings';
    /**
True, if message read date is shown to other users in private chats. If false and the current user isn't a Telegram
Premium user, then they will not be able to see other's message read date.
*/
    show_read_date?: boolean;
}
/**
Contains privacy settings for chats with non-contacts.
*/
export interface NewChatPrivacySettings {
    '@type': 'newChatPrivacySettings';
    /**
True, if non-contacts users are able to write first to the current user. Telegram Premium subscribers are able to write
first regardless of this setting.
*/
    allow_new_chats_from_unknown_users?: boolean;
    /**
Number of Telegram Stars that must be paid for every incoming private message by non-contacts;
0-getOption("paid_message_star_count_max"). If positive, then allow_new_chats_from_unknown_users must be true. The
current user will receive getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid
for message sending.
*/
    incoming_paid_message_star_count: number;
}
/**
Describes result of canSendMessageToUser.
Subtype of {@link CanSendMessageToUserResult}.
*/
export interface CanSendMessageToUserResultOk {
    '@type': 'canSendMessageToUserResultOk';
}
/**
The user can be messaged, but the messages are paid.
Subtype of {@link CanSendMessageToUserResult}.
*/
export interface CanSendMessageToUserResultUserHasPaidMessages {
    '@type': 'canSendMessageToUserResultUserHasPaidMessages';
    /**
Number of Telegram Stars that must be paid by the current user for each sent message to the user.
*/
    outgoing_paid_message_star_count: number;
}
/**
The user can't be messaged, because they are deleted or unknown.
Subtype of {@link CanSendMessageToUserResult}.
*/
export interface CanSendMessageToUserResultUserIsDeleted {
    '@type': 'canSendMessageToUserResultUserIsDeleted';
}
/**
The user can't be messaged, because they restrict new chats with non-contacts.
Subtype of {@link CanSendMessageToUserResult}.
*/
export interface CanSendMessageToUserResultUserRestrictsNewChats {
    '@type': 'canSendMessageToUserResultUserRestrictsNewChats';
}
/**
Contains information about the period of inactivity after which the current user's account will automatically be
deleted.
*/
export interface AccountTtl {
    '@type': 'accountTtl';
    /**
Number of days of inactivity before the account will be flagged for deletion; 30-730 days.
*/
    days: number;
}
/**
Contains default auto-delete timer setting for new chats.
*/
export interface MessageAutoDeleteTime {
    '@type': 'messageAutoDeleteTime';
    /**
Message auto-delete time, in seconds. If 0, then messages aren't deleted automatically.
*/
    time: number;
}
/**
Represents the type of session.
Subtype of {@link SessionType}.
*/
export interface SessionTypeAndroid {
    '@type': 'sessionTypeAndroid';
}
/**
The session is running on a generic Apple device.
Subtype of {@link SessionType}.
*/
export interface SessionTypeApple {
    '@type': 'sessionTypeApple';
}
/**
The session is running on the Brave browser.
Subtype of {@link SessionType}.
*/
export interface SessionTypeBrave {
    '@type': 'sessionTypeBrave';
}
/**
The session is running on the Chrome browser.
Subtype of {@link SessionType}.
*/
export interface SessionTypeChrome {
    '@type': 'sessionTypeChrome';
}
/**
The session is running on the Edge browser.
Subtype of {@link SessionType}.
*/
export interface SessionTypeEdge {
    '@type': 'sessionTypeEdge';
}
/**
The session is running on the Firefox browser.
Subtype of {@link SessionType}.
*/
export interface SessionTypeFirefox {
    '@type': 'sessionTypeFirefox';
}
/**
The session is running on an iPad device.
Subtype of {@link SessionType}.
*/
export interface SessionTypeIpad {
    '@type': 'sessionTypeIpad';
}
/**
The session is running on an iPhone device.
Subtype of {@link SessionType}.
*/
export interface SessionTypeIphone {
    '@type': 'sessionTypeIphone';
}
/**
The session is running on a Linux device.
Subtype of {@link SessionType}.
*/
export interface SessionTypeLinux {
    '@type': 'sessionTypeLinux';
}
/**
The session is running on a Mac device.
Subtype of {@link SessionType}.
*/
export interface SessionTypeMac {
    '@type': 'sessionTypeMac';
}
/**
The session is running on the Opera browser.
Subtype of {@link SessionType}.
*/
export interface SessionTypeOpera {
    '@type': 'sessionTypeOpera';
}
/**
The session is running on the Safari browser.
Subtype of {@link SessionType}.
*/
export interface SessionTypeSafari {
    '@type': 'sessionTypeSafari';
}
/**
The session is running on an Ubuntu device.
Subtype of {@link SessionType}.
*/
export interface SessionTypeUbuntu {
    '@type': 'sessionTypeUbuntu';
}
/**
The session is running on an unknown type of device.
Subtype of {@link SessionType}.
*/
export interface SessionTypeUnknown {
    '@type': 'sessionTypeUnknown';
}
/**
The session is running on the Vivaldi browser.
Subtype of {@link SessionType}.
*/
export interface SessionTypeVivaldi {
    '@type': 'sessionTypeVivaldi';
}
/**
The session is running on a Windows device.
Subtype of {@link SessionType}.
*/
export interface SessionTypeWindows {
    '@type': 'sessionTypeWindows';
}
/**
The session is running on an Xbox console.
Subtype of {@link SessionType}.
*/
export interface SessionTypeXbox {
    '@type': 'sessionTypeXbox';
}
/**
Contains information about one session in a Telegram application used by the current user. Sessions must be shown to the
user in the returned order.
*/
export interface Session {
    '@type': 'session';
    /**
Session identifier.
*/
    id: string;
    /**
True, if this session is the current session.
*/
    is_current?: boolean;
    /**
True, if a 2-step verification password is needed to complete authorization of the session.
*/
    is_password_pending?: boolean;
    /**
True, if the session wasn't confirmed from another session.
*/
    is_unconfirmed?: boolean;
    /**
True, if incoming secret chats can be accepted by the session.
*/
    can_accept_secret_chats?: boolean;
    /**
True, if incoming calls can be accepted by the session.
*/
    can_accept_calls?: boolean;
    /**
Session type based on the system and application version, which can be used to display a corresponding icon.
*/
    type: SessionType;
    /**
Telegram API identifier, as provided by the application.
*/
    api_id: number;
    /**
Name of the application, as provided by the application.
*/
    application_name: string;
    /**
The version of the application, as provided by the application.
*/
    application_version: string;
    /**
True, if the application is an official application or uses the api_id of an official application.
*/
    is_official_application?: boolean;
    /**
Model of the device the application has been run or is running on, as provided by the application.
*/
    device_model: string;
    /**
Operating system the application has been run or is running on, as provided by the application.
*/
    platform: string;
    /**
Version of the operating system the application has been run or is running on, as provided by the application.
*/
    system_version: string;
    /**
Point in time (Unix timestamp) when the user has logged in.
*/
    log_in_date: number;
    /**
Point in time (Unix timestamp) when the session was last used.
*/
    last_active_date: number;
    /**
IP address from which the session was created, in human-readable format.
*/
    ip_address: string;
    /**
A human-readable description of the location from which the session was created, based on the IP address.
*/
    location: string;
}
/**
Contains a list of sessions.
*/
export interface Sessions {
    '@type': 'sessions';
    /**
List of sessions.
*/
    sessions: Session[];
    /**
Number of days of inactivity before sessions will automatically be terminated; 1-366 days.
*/
    inactive_session_ttl_days: number;
}
/**
Contains information about an unconfirmed session.
*/
export interface UnconfirmedSession {
    '@type': 'unconfirmedSession';
    /**
Session identifier.
*/
    id: string;
    /**
Point in time (Unix timestamp) when the user has logged in.
*/
    log_in_date: number;
    /**
Model of the device that was used for the session creation, as provided by the application.
*/
    device_model: string;
    /**
A human-readable description of the location from which the session was created, based on the IP address.
*/
    location: string;
}
/**
Contains information about one website the current user is logged in with Telegram.
*/
export interface ConnectedWebsite {
    '@type': 'connectedWebsite';
    /**
Website identifier.
*/
    id: string;
    /**
The domain name of the website.
*/
    domain_name: string;
    /**
User identifier of a bot linked with the website.
*/
    bot_user_id: number;
    /**
The version of a browser used to log in.
*/
    browser: string;
    /**
Operating system the browser is running on.
*/
    platform: string;
    /**
Point in time (Unix timestamp) when the user was logged in.
*/
    log_in_date: number;
    /**
Point in time (Unix timestamp) when obtained authorization was last used.
*/
    last_active_date: number;
    /**
IP address from which the user was logged in, in human-readable format.
*/
    ip_address: string;
    /**
Human-readable description of a country and a region from which the user was logged in, based on the IP address.
*/
    location: string;
}
/**
Contains a list of websites the current user is logged in with Telegram.
*/
export interface ConnectedWebsites {
    '@type': 'connectedWebsites';
    /**
List of connected websites.
*/
    websites: ConnectedWebsite[];
}
/**
Describes the reason why a chat is reported.
Subtype of {@link ReportReason}.
*/
export interface ReportReasonSpam {
    '@type': 'reportReasonSpam';
}
/**
The chat promotes violence.
Subtype of {@link ReportReason}.
*/
export interface ReportReasonViolence {
    '@type': 'reportReasonViolence';
}
/**
The chat contains pornographic messages.
Subtype of {@link ReportReason}.
*/
export interface ReportReasonPornography {
    '@type': 'reportReasonPornography';
}
/**
The chat has child abuse related content.
Subtype of {@link ReportReason}.
*/
export interface ReportReasonChildAbuse {
    '@type': 'reportReasonChildAbuse';
}
/**
The chat contains copyrighted content.
Subtype of {@link ReportReason}.
*/
export interface ReportReasonCopyright {
    '@type': 'reportReasonCopyright';
}
/**
The location-based chat is unrelated to its stated location.
Subtype of {@link ReportReason}.
*/
export interface ReportReasonUnrelatedLocation {
    '@type': 'reportReasonUnrelatedLocation';
}
/**
The chat represents a fake account.
Subtype of {@link ReportReason}.
*/
export interface ReportReasonFake {
    '@type': 'reportReasonFake';
}
/**
The chat has illegal drugs related content.
Subtype of {@link ReportReason}.
*/
export interface ReportReasonIllegalDrugs {
    '@type': 'reportReasonIllegalDrugs';
}
/**
The chat contains messages with personal details.
Subtype of {@link ReportReason}.
*/
export interface ReportReasonPersonalDetails {
    '@type': 'reportReasonPersonalDetails';
}
/**
A custom reason provided by the user.
Subtype of {@link ReportReason}.
*/
export interface ReportReasonCustom {
    '@type': 'reportReasonCustom';
}
/**
Describes result of chat report.
Subtype of {@link ReportChatResult}.
*/
export interface ReportChatResultOk {
    '@type': 'reportChatResultOk';
}
/**
The user must choose an option to report the chat and repeat request with the chosen option.
Subtype of {@link ReportChatResult}.
*/
export interface ReportChatResultOptionRequired {
    '@type': 'reportChatResultOptionRequired';
    /**
Title for the option choice.
*/
    title: string;
    /**
List of available options.
*/
    options: ReportOption[];
}
/**
The user must add additional text details to the report.
Subtype of {@link ReportChatResult}.
*/
export interface ReportChatResultTextRequired {
    '@type': 'reportChatResultTextRequired';
    /**
Option identifier for the next reportChat request.
*/
    option_id: string;
    /**
True, if the user can skip text adding.
*/
    is_optional?: boolean;
}
/**
The user must choose messages to report and repeat the reportChat request with the chosen messages.
Subtype of {@link ReportChatResult}.
*/
export interface ReportChatResultMessagesRequired {
    '@type': 'reportChatResultMessagesRequired';
}
/**
Describes result of story report.
Subtype of {@link ReportStoryResult}.
*/
export interface ReportStoryResultOk {
    '@type': 'reportStoryResultOk';
}
/**
The user must choose an option to report the story and repeat request with the chosen option.
Subtype of {@link ReportStoryResult}.
*/
export interface ReportStoryResultOptionRequired {
    '@type': 'reportStoryResultOptionRequired';
    /**
Title for the option choice.
*/
    title: string;
    /**
List of available options.
*/
    options: ReportOption[];
}
/**
The user must add additional text details to the report.
Subtype of {@link ReportStoryResult}.
*/
export interface ReportStoryResultTextRequired {
    '@type': 'reportStoryResultTextRequired';
    /**
Option identifier for the next reportStory request.
*/
    option_id: string;
    /**
True, if the user can skip text adding.
*/
    is_optional?: boolean;
}
/**
Describes an internal https://t.me or tg: link, which must be processed by the application in a special way.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeActiveSessions {
    '@type': 'internalLinkTypeActiveSessions';
}
/**
The link is a link to an attachment menu bot to be opened in the specified or a chosen chat. Process given target_chat
to open the chat. Then, call searchPublicChat with the given bot username, check that the user is a bot and can be added
to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to
attachment menu, then show a disclaimer about Mini Apps being third-party applications, ask the user to accept their
Terms of service and confirm adding the bot to side and attachment menu. If the user accept the terms and confirms
adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. If the attachment menu bot can't be used in the opened
chat, show an error to the user. If the bot is added to attachment menu and can be used in the chat, then use openWebApp
with the given URL.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeAttachmentMenuBot {
    '@type': 'internalLinkTypeAttachmentMenuBot';
    /**
Target chat to be opened.
*/
    target_chat: TargetChat;
    /**
Username of the bot.
*/
    bot_username: string;
    /**
URL to be passed to openWebApp.
*/
    url: string;
}
/**
The link contains an authentication code. Call checkAuthenticationCode with the code if the current authorization state
is authorizationStateWaitCode.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeAuthenticationCode {
    '@type': 'internalLinkTypeAuthenticationCode';
    /**
The authentication code.
*/
    code: string;
}
/**
The link is a link to a background. Call searchBackground with the given background name to process the link. If
background is found and the user wants to apply it, then call setDefaultBackground.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeBackground {
    '@type': 'internalLinkTypeBackground';
    /**
Name of the background.
*/
    background_name: string;
}
/**
The link is a link to a Telegram bot, which is expected to be added to a channel chat as an administrator. Call
searchPublicChat with the given bot username and check that the user is a bot, ask the current user to select a channel
chat to add the bot to as an administrator. Then, call getChatMember to receive the current bot rights in the chat and
if the bot already is an administrator, check that the current user can edit its administrator rights and combine
received rights with the requested administrator rights. Then, show confirmation box to the user, and call
setChatMemberStatus with the chosen chat and confirmed rights.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeBotAddToChannel {
    '@type': 'internalLinkTypeBotAddToChannel';
    /**
Username of the bot.
*/
    bot_username: string;
    /**
Expected administrator rights for the bot.
*/
    administrator_rights: ChatAdministratorRights;
}
/**
The link is a link to a chat with a Telegram bot. Call searchPublicChat with the given bot username, check that the user
is a bot, show START button in the chat with the bot, and then call sendBotStartMessage with the given start parameter
after the button is pressed.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeBotStart {
    '@type': 'internalLinkTypeBotStart';
    /**
Username of the bot.
*/
    bot_username: string;
    /**
The parameter to be passed to sendBotStartMessage.
*/
    start_parameter: string;
    /**
True, if sendBotStartMessage must be called automatically without showing the START button.
*/
    autostart?: boolean;
}
/**
The link is a link to a Telegram bot, which is expected to be added to a group chat. Call searchPublicChat with the
given bot username, check that the user is a bot and can be added to groups, ask the current user to select a basic
group or a supergroup chat to add the bot to, taking into account that bots can be added to a public supergroup only by
administrators of the supergroup. If administrator rights are provided by the link, call getChatMember to receive the
current bot rights in the chat and if the bot already is an administrator, check that the current user can edit its
administrator rights, combine received rights with the requested administrator rights, show confirmation box to the
user, and call setChatMemberStatus with the chosen chat and confirmed administrator rights. Before call to
setChatMemberStatus it may be required to upgrade the chosen basic group chat to a supergroup chat. Then, if
start_parameter isn't empty, call sendBotStartMessage with the given start parameter and the chosen chat; otherwise,
just send /start message with bot's username added to the chat.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeBotStartInGroup {
    '@type': 'internalLinkTypeBotStartInGroup';
    /**
Username of the bot.
*/
    bot_username: string;
    /**
The parameter to be passed to sendBotStartMessage.
*/
    start_parameter: string;
    /**
Expected administrator rights for the bot; may be null.
*/
    administrator_rights: ChatAdministratorRights;
}
/**
The link is a link to a business chat. Use getBusinessChatLinkInfo with the provided link name to get information about
the link, then open received private chat and replace chat draft with the provided text.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeBusinessChat {
    '@type': 'internalLinkTypeBusinessChat';
    /**
Name of the link.
*/
    link_name: string;
}
/**
The link is a link to the Telegram Star purchase section of the application.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeBuyStars {
    '@type': 'internalLinkTypeBuyStars';
    /**
The number of Telegram Stars that must be owned by the user.
*/
    star_count: number;
    /**
Purpose of Telegram Star purchase. Arbitrary string specified by the server, for example, "subs" if the Telegram Stars
are required to extend channel subscriptions.
*/
    purpose: string;
}
/**
The link is a link to the change phone number section of the application.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeChangePhoneNumber {
    '@type': 'internalLinkTypeChangePhoneNumber';
}
/**
The link is an affiliate program link. Call searchChatAffiliateProgram with the given username and referrer to process
the link.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeChatAffiliateProgram {
    '@type': 'internalLinkTypeChatAffiliateProgram';
    /**
Username to be passed to searchChatAffiliateProgram.
*/
    username: string;
    /**
Referrer to be passed to searchChatAffiliateProgram.
*/
    referrer: string;
}
/**
The link is a link to boost a Telegram chat. Call getChatBoostLinkInfo with the given URL to process the link. If the
chat is found, then call getChatBoostStatus and getAvailableChatBoostSlots to get the current boost status and check
whether the chat can be boosted. If the user wants to boost the chat and the chat can be boosted, then call boostChat.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeChatBoost {
    '@type': 'internalLinkTypeChatBoost';
    /**
URL to be passed to getChatBoostLinkInfo.
*/
    url: string;
}
/**
The link is an invite link to a chat folder. Call checkChatFolderInviteLink with the given invite link to process the
link. If the link is valid and the user wants to join the chat folder, then call addChatFolderByInviteLink.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeChatFolderInvite {
    '@type': 'internalLinkTypeChatFolderInvite';
    /**
Internal representation of the invite link.
*/
    invite_link: string;
}
/**
The link is a link to the folder section of the application settings.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeChatFolderSettings {
    '@type': 'internalLinkTypeChatFolderSettings';
}
/**
The link is a chat invite link. Call checkChatInviteLink with the given invite link to process the link. If the link is
valid and the user wants to join the chat, then call joinChatByInviteLink.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeChatInvite {
    '@type': 'internalLinkTypeChatInvite';
    /**
Internal representation of the invite link.
*/
    invite_link: string;
}
/**
The link is a link to the default message auto-delete timer settings section of the application settings.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeDefaultMessageAutoDeleteTimerSettings {
    '@type': 'internalLinkTypeDefaultMessageAutoDeleteTimerSettings';
}
/**
The link is a link to the edit profile section of the application settings.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeEditProfileSettings {
    '@type': 'internalLinkTypeEditProfileSettings';
}
/**
The link is a link to a game. Call searchPublicChat with the given bot username, check that the user is a bot, ask the
current user to select a chat to send the game, and then call sendMessage with inputMessageGame.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeGame {
    '@type': 'internalLinkTypeGame';
    /**
Username of the bot that owns the game.
*/
    bot_username: string;
    /**
Short name of the game.
*/
    game_short_name: string;
}
/**
The link must be opened in an Instant View. Call getWebPageInstantView with the given URL to process the link. If
Instant View is found, then show it, otherwise, open the fallback URL in an external browser.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeInstantView {
    '@type': 'internalLinkTypeInstantView';
    /**
URL to be passed to getWebPageInstantView.
*/
    url: string;
    /**
An URL to open if getWebPageInstantView fails.
*/
    fallback_url: string;
}
/**
The link is a link to an invoice. Call getPaymentForm with the given invoice name to process the link.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeInvoice {
    '@type': 'internalLinkTypeInvoice';
    /**
Name of the invoice.
*/
    invoice_name: string;
}
/**
The link is a link to a language pack. Call getLanguagePackInfo with the given language pack identifier to process the
link. If the language pack is found and the user wants to apply it, then call setOption for the option
"language_pack_id".
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeLanguagePack {
    '@type': 'internalLinkTypeLanguagePack';
    /**
Language pack identifier.
*/
    language_pack_id: string;
}
/**
The link is a link to the language section of the application settings.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeLanguageSettings {
    '@type': 'internalLinkTypeLanguageSettings';
}
/**
The link is a link to the main Web App of a bot. Call searchPublicChat with the given bot username, check that the user
is a bot and has the main Web App. If the bot can be added to attachment menu, then use getAttachmentMenuBot to receive
information about the bot, then if the bot isn't added to side menu, show a disclaimer about Mini Apps being third-party
applications, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu, then
if the user accepts the terms and confirms adding, use toggleBotIsAddedToAttachmentMenu to add the bot. Then, use
getMainWebApp with the given start parameter and mode and open the returned URL as a Web App.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeMainWebApp {
    '@type': 'internalLinkTypeMainWebApp';
    /**
Username of the bot.
*/
    bot_username: string;
    /**
Start parameter to be passed to getMainWebApp.
*/
    start_parameter: string;
    /**
The mode to be passed to getMainWebApp.
*/
    mode: WebAppOpenMode;
}
/**
The link is a link to a Telegram message or a forum topic. Call getMessageLinkInfo with the given URL to process the
link, and then open received forum topic or chat and show the message there.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeMessage {
    '@type': 'internalLinkTypeMessage';
    /**
URL to be passed to getMessageLinkInfo.
*/
    url: string;
}
/**
The link contains a message draft text. A share screen needs to be shown to the user, then the chosen chat must be
opened and the text is added to the input field.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeMessageDraft {
    '@type': 'internalLinkTypeMessageDraft';
    /**
Message draft text.
*/
    text: FormattedText;
    /**
True, if the first line of the text contains a link. If true, the input field needs to be focused and the text after the
link must be selected.
*/
    contains_link?: boolean;
}
/**
The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to
process the link if the link was received from outside of the application; otherwise, ignore it.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypePassportDataRequest {
    '@type': 'internalLinkTypePassportDataRequest';
    /**
User identifier of the service's bot; the corresponding user may be unknown yet.
*/
    bot_user_id: number;
    /**
Telegram Passport element types requested by the service.
*/
    scope: string;
    /**
Service's public key.
*/
    public_key: string;
    /**
Unique request identifier provided by the service.
*/
    nonce: string;
    /**
An HTTP URL to open once the request is finished, canceled, or failed with the parameters tg_passport=success,
tg_passport=cancel, or tg_passport=error&error=... respectively. If empty, then onActivityResult method must be used to
return response on Android, or the link tgbot{bot_user_id}://passport/success or tgbot{bot_user_id}://passport/cancel
must be opened otherwise.
*/
    callback_url: string;
}
/**
The link can be used to confirm ownership of a phone number to prevent account deletion. Call sendPhoneNumberCode with
the given phone number and with phoneNumberCodeTypeConfirmOwnership with the given hash to process the link. If
succeeded, call checkPhoneNumberCode to check entered by the user code, or resendPhoneNumberCode to resend it.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypePhoneNumberConfirmation {
    '@type': 'internalLinkTypePhoneNumberConfirmation';
    /**
Hash value from the link.
*/
    hash: string;
    /**
Phone number value from the link.
*/
    phone_number: string;
}
/**
The link is a link to the Premium features screen of the application from which the user can subscribe to Telegram
Premium. Call getPremiumFeatures with the given referrer to process the link.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypePremiumFeatures {
    '@type': 'internalLinkTypePremiumFeatures';
    /**
Referrer specified in the link.
*/
    referrer: string;
}
/**
The link is a link to the screen for gifting Telegram Premium subscriptions to friends via inputInvoiceTelegram with
telegramPaymentPurposePremiumGift payments or in-store purchases.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypePremiumGift {
    '@type': 'internalLinkTypePremiumGift';
    /**
Referrer specified in the link.
*/
    referrer: string;
}
/**
The link is a link with a Telegram Premium gift code. Call checkPremiumGiftCode with the given code to process the link.
If the code is valid and the user wants to apply it, then call applyPremiumGiftCode.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypePremiumGiftCode {
    '@type': 'internalLinkTypePremiumGiftCode';
    /**
The Telegram Premium gift code.
*/
    code: string;
}
/**
The link is a link to the privacy and security section of the application settings.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypePrivacyAndSecuritySettings {
    '@type': 'internalLinkTypePrivacyAndSecuritySettings';
}
/**
The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeProxy {
    '@type': 'internalLinkTypeProxy';
    /**
Proxy server domain or IP address.
*/
    server: string;
    /**
Proxy server port.
*/
    port: number;
    /**
Type of the proxy.
*/
    type: ProxyType;
}
/**
The link is a link to a chat by its username. Call searchPublicChat with the given chat username to process the link. If
the chat is found, open its profile information screen or the chat itself. If draft text isn't empty and the chat is a
private chat with a regular user, then put the draft text in the input field.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypePublicChat {
    '@type': 'internalLinkTypePublicChat';
    /**
Username of the chat.
*/
    chat_username: string;
    /**
Draft text for message to send in the chat.
*/
    draft_text: string;
    /**
True, if chat profile information screen must be opened; otherwise, the chat itself must be opened.
*/
    open_profile?: boolean;
}
/**
The link can be used to login the current user on another device, but it must be scanned from QR-code using in-app
camera. An alert similar to "This code can be used to allow someone to log in to your Telegram account. To confirm
Telegram login, please go to Settings > Devices > Scan QR and scan the code" needs to be shown.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeQrCodeAuthentication {
    '@type': 'internalLinkTypeQrCodeAuthentication';
}
/**
The link forces restore of App Store purchases when opened. For official iOS application only.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeRestorePurchases {
    '@type': 'internalLinkTypeRestorePurchases';
}
/**
The link is a link to application settings.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeSettings {
    '@type': 'internalLinkTypeSettings';
}
/**
The link is a link to a sticker set. Call searchStickerSet with the given sticker set name to process the link and show
the sticker set. If the sticker set is found and the user wants to add it, then call changeStickerSet.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeStickerSet {
    '@type': 'internalLinkTypeStickerSet';
    /**
Name of the sticker set.
*/
    sticker_set_name: string;
    /**
True, if the sticker set is expected to contain custom emoji.
*/
    expect_custom_emoji?: boolean;
}
/**
The link is a link to a story. Call searchPublicChat with the given sender username, then call getStory with the
received chat identifier and the given story identifier, then show the story if received.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeStory {
    '@type': 'internalLinkTypeStory';
    /**
Username of the sender of the story.
*/
    story_sender_username: string;
    /**
Story identifier.
*/
    story_id: number;
}
/**
The link is a link to a cloud theme. TDLib has no theme support yet.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeTheme {
    '@type': 'internalLinkTypeTheme';
    /**
Name of the theme.
*/
    theme_name: string;
}
/**
The link is a link to the theme section of the application settings.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeThemeSettings {
    '@type': 'internalLinkTypeThemeSettings';
}
/**
The link is an unknown tg: link. Call getDeepLinkInfo to process the link.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeUnknownDeepLink {
    '@type': 'internalLinkTypeUnknownDeepLink';
    /**
Link to be passed to getDeepLinkInfo.
*/
    link: string;
}
/**
The link is a link to an unsupported proxy. An alert can be shown to the user.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeUnsupportedProxy {
    '@type': 'internalLinkTypeUnsupportedProxy';
}
/**
The link is a link to an upgraded gift. Call getUpgradedGift with the given name to process the link.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeUpgradedGift {
    '@type': 'internalLinkTypeUpgradedGift';
    /**
Name of the unique gift.
*/
    name: string;
}
/**
The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process
the link. If the user is found, then call createPrivateChat and open user's profile information screen or the chat
itself. If draft text isn't empty, then put the draft text in the input field.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeUserPhoneNumber {
    '@type': 'internalLinkTypeUserPhoneNumber';
    /**
Phone number of the user.
*/
    phone_number: string;
    /**
Draft text for message to send in the chat.
*/
    draft_text: string;
    /**
True, if user's profile information screen must be opened; otherwise, the chat itself must be opened.
*/
    open_profile?: boolean;
}
/**
The link is a link to a user by a temporary token. Call searchUserByToken with the given token to process the link. If
the user is found, then call createPrivateChat and open the chat.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeUserToken {
    '@type': 'internalLinkTypeUserToken';
    /**
The token.
*/
    token: string;
}
/**
The link is a link to a video chat. Call searchPublicChat with the given chat username, and then joinGroupCall with the
given invite hash to process the link.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeVideoChat {
    '@type': 'internalLinkTypeVideoChat';
    /**
Username of the chat with the video chat.
*/
    chat_username: string;
    /**
If non-empty, invite hash to be used to join the video chat without being muted by administrators.
*/
    invite_hash: string;
    /**
True, if the video chat is expected to be a live stream in a channel or a broadcast group.
*/
    is_live_stream?: boolean;
}
/**
The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot. If the
bot is restricted for the current user, then show an error message. Otherwise, call searchWebApp with the received bot
and the given web_app_short_name. Process received foundWebApp by showing a confirmation dialog if needed. If the bot
can be added to attachment or side menu, but isn't added yet, then show a disclaimer about Mini Apps being third-party
applications instead of the dialog and ask the user to accept their Terms of service. If the user accept the terms and
confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. Then, call getWebAppLinkUrl and open the
returned URL as a Web App.
Subtype of {@link InternalLinkType}.
*/
export interface InternalLinkTypeWebApp {
    '@type': 'internalLinkTypeWebApp';
    /**
Username of the bot that owns the Web App.
*/
    bot_username: string;
    /**
Short name of the Web App.
*/
    web_app_short_name: string;
    /**
Start parameter to be passed to getWebAppLinkUrl.
*/
    start_parameter: string;
    /**
The mode in which the Web App must be opened.
*/
    mode: WebAppOpenMode;
}
/**
Contains an HTTPS link to a message in a supergroup or channel, or a forum topic.
*/
export interface MessageLink {
    '@type': 'messageLink';
    /**
The link.
*/
    link: string;
    /**
True, if the link will work for non-members of the chat.
*/
    is_public?: boolean;
}
/**
Contains information about a link to a message or a forum topic in a chat.
*/
export interface MessageLinkInfo {
    '@type': 'messageLinkInfo';
    /**
True, if the link is a public link for a message or a forum topic in a chat.
*/
    is_public?: boolean;
    /**
If found, identifier of the chat to which the link points, 0 otherwise.
*/
    chat_id: number;
    /**
If found, identifier of the message thread in which to open the message, or a forum topic to open if the message is
missing.
*/
    message_thread_id: number;
    /**
If found, the linked message; may be null.
*/
    message: Message;
    /**
Timestamp from which the video/audio/video note/voice note/story playing must start, in seconds; 0 if not specified. The
media can be in the message content or in its link preview.
*/
    media_timestamp: number;
    /**
True, if the whole media album to which the message belongs is linked.
*/
    for_album?: boolean;
}
/**
Contains an HTTPS link to boost a chat.
*/
export interface ChatBoostLink {
    '@type': 'chatBoostLink';
    /**
The link.
*/
    link: string;
    /**
True, if the link will work for non-members of the chat.
*/
    is_public?: boolean;
}
/**
Contains information about a link to boost a chat.
*/
export interface ChatBoostLinkInfo {
    '@type': 'chatBoostLinkInfo';
    /**
True, if the link will work for non-members of the chat.
*/
    is_public?: boolean;
    /**
Identifier of the chat to which the link points; 0 if the chat isn't found.
*/
    chat_id: number;
}
/**
Describes type of block list.
Subtype of {@link BlockList}.
*/
export interface BlockListMain {
    '@type': 'blockListMain';
}
/**
The block list that disallows viewing of stories of the current user.
Subtype of {@link BlockList}.
*/
export interface BlockListStories {
    '@type': 'blockListStories';
}
/**
Contains a part of a file.
*/
export interface FilePart {
    '@type': 'filePart';
    /**
File bytes.
*/
    data: string;
}
/**
Represents the type of file.
Subtype of {@link FileType}.
*/
export interface FileTypeNone {
    '@type': 'fileTypeNone';
}
/**
The file is an animation.
Subtype of {@link FileType}.
*/
export interface FileTypeAnimation {
    '@type': 'fileTypeAnimation';
}
/**
The file is an audio file.
Subtype of {@link FileType}.
*/
export interface FileTypeAudio {
    '@type': 'fileTypeAudio';
}
/**
The file is a document.
Subtype of {@link FileType}.
*/
export interface FileTypeDocument {
    '@type': 'fileTypeDocument';
}
/**
The file is a notification sound.
Subtype of {@link FileType}.
*/
export interface FileTypeNotificationSound {
    '@type': 'fileTypeNotificationSound';
}
/**
The file is a photo.
Subtype of {@link FileType}.
*/
export interface FileTypePhoto {
    '@type': 'fileTypePhoto';
}
/**
The file is a photo published as a story.
Subtype of {@link FileType}.
*/
export interface FileTypePhotoStory {
    '@type': 'fileTypePhotoStory';
}
/**
The file is a profile photo.
Subtype of {@link FileType}.
*/
export interface FileTypeProfilePhoto {
    '@type': 'fileTypeProfilePhoto';
}
/**
The file was sent to a secret chat (the file type is not known to the server).
Subtype of {@link FileType}.
*/
export interface FileTypeSecret {
    '@type': 'fileTypeSecret';
}
/**
The file is a thumbnail of a file from a secret chat.
Subtype of {@link FileType}.
*/
export interface FileTypeSecretThumbnail {
    '@type': 'fileTypeSecretThumbnail';
}
/**
The file is a file from Secure storage used for storing Telegram Passport files.
Subtype of {@link FileType}.
*/
export interface FileTypeSecure {
    '@type': 'fileTypeSecure';
}
/**
The file is a self-destructing photo in a private chat.
Subtype of {@link FileType}.
*/
export interface FileTypeSelfDestructingPhoto {
    '@type': 'fileTypeSelfDestructingPhoto';
}
/**
The file is a self-destructing video in a private chat.
Subtype of {@link FileType}.
*/
export interface FileTypeSelfDestructingVideo {
    '@type': 'fileTypeSelfDestructingVideo';
}
/**
The file is a self-destructing video note in a private chat.
Subtype of {@link FileType}.
*/
export interface FileTypeSelfDestructingVideoNote {
    '@type': 'fileTypeSelfDestructingVideoNote';
}
/**
The file is a self-destructing voice note in a private chat.
Subtype of {@link FileType}.
*/
export interface FileTypeSelfDestructingVoiceNote {
    '@type': 'fileTypeSelfDestructingVoiceNote';
}
/**
The file is a sticker.
Subtype of {@link FileType}.
*/
export interface FileTypeSticker {
    '@type': 'fileTypeSticker';
}
/**
The file is a thumbnail of another file.
Subtype of {@link FileType}.
*/
export interface FileTypeThumbnail {
    '@type': 'fileTypeThumbnail';
}
/**
The file type is not yet known.
Subtype of {@link FileType}.
*/
export interface FileTypeUnknown {
    '@type': 'fileTypeUnknown';
}
/**
The file is a video.
Subtype of {@link FileType}.
*/
export interface FileTypeVideo {
    '@type': 'fileTypeVideo';
}
/**
The file is a video note.
Subtype of {@link FileType}.
*/
export interface FileTypeVideoNote {
    '@type': 'fileTypeVideoNote';
}
/**
The file is a video published as a story.
Subtype of {@link FileType}.
*/
export interface FileTypeVideoStory {
    '@type': 'fileTypeVideoStory';
}
/**
The file is a voice note.
Subtype of {@link FileType}.
*/
export interface FileTypeVoiceNote {
    '@type': 'fileTypeVoiceNote';
}
/**
The file is a wallpaper or a background pattern.
Subtype of {@link FileType}.
*/
export interface FileTypeWallpaper {
    '@type': 'fileTypeWallpaper';
}
/**
Contains the storage usage statistics for a specific file type.
*/
export interface StorageStatisticsByFileType {
    '@type': 'storageStatisticsByFileType';
    /**
File type.
*/
    file_type: FileType;
    /**
Total size of the files, in bytes.
*/
    size: number;
    /**
Total number of files.
*/
    count: number;
}
/**
Contains the storage usage statistics for a specific chat.
*/
export interface StorageStatisticsByChat {
    '@type': 'storageStatisticsByChat';
    /**
Chat identifier; 0 if none.
*/
    chat_id: number;
    /**
Total size of the files in the chat, in bytes.
*/
    size: number;
    /**
Total number of files in the chat.
*/
    count: number;
    /**
Statistics split by file types.
*/
    by_file_type: StorageStatisticsByFileType[];
}
/**
Contains the exact storage usage statistics split by chats and file type.
*/
export interface StorageStatistics {
    '@type': 'storageStatistics';
    /**
Total size of files, in bytes.
*/
    size: number;
    /**
Total number of files.
*/
    count: number;
    /**
Statistics split by chats.
*/
    by_chat: StorageStatisticsByChat[];
}
/**
Contains approximate storage usage statistics, excluding files of unknown file type.
*/
export interface StorageStatisticsFast {
    '@type': 'storageStatisticsFast';
    /**
Approximate total size of files, in bytes.
*/
    files_size: number;
    /**
Approximate number of files.
*/
    file_count: number;
    /**
Size of the database.
*/
    database_size: number;
    /**
Size of the language pack database.
*/
    language_pack_database_size: number;
    /**
Size of the TDLib internal log.
*/
    log_size: number;
}
/**
Contains database statistics.
*/
export interface DatabaseStatistics {
    '@type': 'databaseStatistics';
    /**
Database statistics in an unspecified human-readable format.
*/
    statistics: string;
}
/**
Represents the type of network.
Subtype of {@link NetworkType}.
*/
export interface NetworkTypeNone {
    '@type': 'networkTypeNone';
}
/**
A mobile network.
Subtype of {@link NetworkType}.
*/
export interface NetworkTypeMobile {
    '@type': 'networkTypeMobile';
}
/**
A mobile roaming network.
Subtype of {@link NetworkType}.
*/
export interface NetworkTypeMobileRoaming {
    '@type': 'networkTypeMobileRoaming';
}
/**
A Wi-Fi network.
Subtype of {@link NetworkType}.
*/
export interface NetworkTypeWiFi {
    '@type': 'networkTypeWiFi';
}
/**
A different network type (e.g., Ethernet network).
Subtype of {@link NetworkType}.
*/
export interface NetworkTypeOther {
    '@type': 'networkTypeOther';
}
/**
Contains statistics about network usage.
Subtype of {@link NetworkStatisticsEntry}.
*/
export interface NetworkStatisticsEntryFile {
    '@type': 'networkStatisticsEntryFile';
    /**
Type of the file the data is part of; pass null if the data isn't related to files.
*/
    file_type: FileType;
    /**
Type of the network the data was sent through. Call setNetworkType to maintain the actual network type.
*/
    network_type: NetworkType;
    /**
Total number of bytes sent.
*/
    sent_bytes: number;
    /**
Total number of bytes received.
*/
    received_bytes: number;
}
/**
Contains information about the total amount of data that was used for calls.
Subtype of {@link NetworkStatisticsEntry}.
*/
export interface NetworkStatisticsEntryCall {
    '@type': 'networkStatisticsEntryCall';
    /**
Type of the network the data was sent through. Call setNetworkType to maintain the actual network type.
*/
    network_type: NetworkType;
    /**
Total number of bytes sent.
*/
    sent_bytes: number;
    /**
Total number of bytes received.
*/
    received_bytes: number;
    /**
Total call duration, in seconds.
*/
    duration: number;
}
/**
A full list of available network statistic entries.
*/
export interface NetworkStatistics {
    '@type': 'networkStatistics';
    /**
Point in time (Unix timestamp) from which the statistics are collected.
*/
    since_date: number;
    /**
Network statistics entries.
*/
    entries: NetworkStatisticsEntry[];
}
/**
Contains auto-download settings.
*/
export interface AutoDownloadSettings {
    '@type': 'autoDownloadSettings';
    /**
True, if the auto-download is enabled.
*/
    is_auto_download_enabled?: boolean;
    /**
The maximum size of a photo file to be auto-downloaded, in bytes.
*/
    max_photo_file_size: number;
    /**
The maximum size of a video file to be auto-downloaded, in bytes.
*/
    max_video_file_size: number;
    /**
The maximum size of other file types to be auto-downloaded, in bytes.
*/
    max_other_file_size: number;
    /**
The maximum suggested bitrate for uploaded videos, in kbit/s.
*/
    video_upload_bitrate: number;
    /**
True, if the beginning of video files needs to be preloaded for instant playback.
*/
    preload_large_videos?: boolean;
    /**
True, if the next audio track needs to be preloaded while the user is listening to an audio file.
*/
    preload_next_audio?: boolean;
    /**
True, if stories needs to be preloaded.
*/
    preload_stories?: boolean;
    /**
True, if "use less data for calls" option needs to be enabled.
*/
    use_less_data_for_calls?: boolean;
}
/**
Contains auto-download settings presets for the current user.
*/
export interface AutoDownloadSettingsPresets {
    '@type': 'autoDownloadSettingsPresets';
    /**
Preset with lowest settings; expected to be used by default when roaming.
*/
    low: AutoDownloadSettings;
    /**
Preset with medium settings; expected to be used by default when using mobile data.
*/
    medium: AutoDownloadSettings;
    /**
Preset with highest settings; expected to be used by default when connected on Wi-Fi.
*/
    high: AutoDownloadSettings;
}
/**
Describes scope of autosave settings.
Subtype of {@link AutosaveSettingsScope}.
*/
export interface AutosaveSettingsScopePrivateChats {
    '@type': 'autosaveSettingsScopePrivateChats';
}
/**
Autosave settings applied to all basic group and supergroup chats without chat-specific settings.
Subtype of {@link AutosaveSettingsScope}.
*/
export interface AutosaveSettingsScopeGroupChats {
    '@type': 'autosaveSettingsScopeGroupChats';
}
/**
Autosave settings applied to all channel chats without chat-specific settings.
Subtype of {@link AutosaveSettingsScope}.
*/
export interface AutosaveSettingsScopeChannelChats {
    '@type': 'autosaveSettingsScopeChannelChats';
}
/**
Autosave settings applied to a chat.
Subtype of {@link AutosaveSettingsScope}.
*/
export interface AutosaveSettingsScopeChat {
    '@type': 'autosaveSettingsScopeChat';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Contains autosave settings for an autosave settings scope.
*/
export interface ScopeAutosaveSettings {
    '@type': 'scopeAutosaveSettings';
    /**
True, if photo autosave is enabled.
*/
    autosave_photos?: boolean;
    /**
True, if video autosave is enabled.
*/
    autosave_videos?: boolean;
    /**
The maximum size of a video file to be autosaved, in bytes; 512 KB - 4000 MB.
*/
    max_video_file_size: number;
}
/**
Contains autosave settings for a chat, which overrides default settings for the corresponding scope.
*/
export interface AutosaveSettingsException {
    '@type': 'autosaveSettingsException';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Autosave settings for the chat.
*/
    settings: ScopeAutosaveSettings;
}
/**
Describes autosave settings.
*/
export interface AutosaveSettings {
    '@type': 'autosaveSettings';
    /**
Default autosave settings for private chats.
*/
    private_chat_settings: ScopeAutosaveSettings;
    /**
Default autosave settings for basic group and supergroup chats.
*/
    group_settings: ScopeAutosaveSettings;
    /**
Default autosave settings for channel chats.
*/
    channel_settings: ScopeAutosaveSettings;
    /**
Autosave settings for specific chats.
*/
    exceptions: AutosaveSettingsException[];
}
/**
Describes the current state of the connection to Telegram servers.
Subtype of {@link ConnectionState}.
*/
export interface ConnectionStateWaitingForNetwork {
    '@type': 'connectionStateWaitingForNetwork';
}
/**
Establishing a connection with a proxy server.
Subtype of {@link ConnectionState}.
*/
export interface ConnectionStateConnectingToProxy {
    '@type': 'connectionStateConnectingToProxy';
}
/**
Establishing a connection to the Telegram servers.
Subtype of {@link ConnectionState}.
*/
export interface ConnectionStateConnecting {
    '@type': 'connectionStateConnecting';
}
/**
Downloading data expected to be received while the application was offline.
Subtype of {@link ConnectionState}.
*/
export interface ConnectionStateUpdating {
    '@type': 'connectionStateUpdating';
}
/**
There is a working connection to the Telegram servers.
Subtype of {@link ConnectionState}.
*/
export interface ConnectionStateReady {
    '@type': 'connectionStateReady';
}
/**
Represents the categories of chats for which a list of frequently used chats can be retrieved.
Subtype of {@link TopChatCategory}.
*/
export interface TopChatCategoryUsers {
    '@type': 'topChatCategoryUsers';
}
/**
A category containing frequently used private chats with bot users.
Subtype of {@link TopChatCategory}.
*/
export interface TopChatCategoryBots {
    '@type': 'topChatCategoryBots';
}
/**
A category containing frequently used basic groups and supergroups.
Subtype of {@link TopChatCategory}.
*/
export interface TopChatCategoryGroups {
    '@type': 'topChatCategoryGroups';
}
/**
A category containing frequently used channels.
Subtype of {@link TopChatCategory}.
*/
export interface TopChatCategoryChannels {
    '@type': 'topChatCategoryChannels';
}
/**
A category containing frequently used chats with inline bots sorted by their usage in inline mode.
Subtype of {@link TopChatCategory}.
*/
export interface TopChatCategoryInlineBots {
    '@type': 'topChatCategoryInlineBots';
}
/**
A category containing frequently used chats with bots, which Web Apps were opened.
Subtype of {@link TopChatCategory}.
*/
export interface TopChatCategoryWebAppBots {
    '@type': 'topChatCategoryWebAppBots';
}
/**
A category containing frequently used chats used for calls.
Subtype of {@link TopChatCategory}.
*/
export interface TopChatCategoryCalls {
    '@type': 'topChatCategoryCalls';
}
/**
A category containing frequently used chats used to forward messages.
Subtype of {@link TopChatCategory}.
*/
export interface TopChatCategoryForwardChats {
    '@type': 'topChatCategoryForwardChats';
}
/**
Contains 0-based match position.
*/
export interface FoundPosition {
    '@type': 'foundPosition';
    /**
The position of the match.
*/
    position: number;
}
/**
Contains 0-based positions of matched objects.
*/
export interface FoundPositions {
    '@type': 'foundPositions';
    /**
Total number of matched objects.
*/
    total_count: number;
    /**
The positions of the matched objects.
*/
    positions: number[];
}
/**
Describes the type of URL linking to an internal Telegram entity.
Subtype of {@link TMeUrlType}.
*/
export interface TMeUrlTypeUser {
    '@type': 'tMeUrlTypeUser';
    /**
Identifier of the user.
*/
    user_id: number;
}
/**
A URL linking to a public supergroup or channel.
Subtype of {@link TMeUrlType}.
*/
export interface TMeUrlTypeSupergroup {
    '@type': 'tMeUrlTypeSupergroup';
    /**
Identifier of the supergroup or channel.
*/
    supergroup_id: number;
}
/**
A chat invite link.
Subtype of {@link TMeUrlType}.
*/
export interface TMeUrlTypeChatInvite {
    '@type': 'tMeUrlTypeChatInvite';
    /**
Information about the chat invite link.
*/
    info: ChatInviteLinkInfo;
}
/**
A URL linking to a sticker set.
Subtype of {@link TMeUrlType}.
*/
export interface TMeUrlTypeStickerSet {
    '@type': 'tMeUrlTypeStickerSet';
    /**
Identifier of the sticker set.
*/
    sticker_set_id: string;
}
/**
Represents a URL linking to an internal Telegram entity.
*/
export interface TMeUrl {
    '@type': 'tMeUrl';
    /**
URL.
*/
    url: string;
    /**
Type of the URL.
*/
    type: TMeUrlType;
}
/**
Contains a list of t.me URLs.
*/
export interface TMeUrls {
    '@type': 'tMeUrls';
    /**
List of URLs.
*/
    urls: TMeUrl[];
}
/**
Describes an action suggested to the current user.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionEnableArchiveAndMuteNewChats {
    '@type': 'suggestedActionEnableArchiveAndMuteNewChats';
}
/**
Suggests the user to check whether they still remember their 2-step verification password.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionCheckPassword {
    '@type': 'suggestedActionCheckPassword';
}
/**
Suggests the user to check whether authorization phone number is correct and change the phone number if it is
inaccessible.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionCheckPhoneNumber {
    '@type': 'suggestedActionCheckPhoneNumber';
}
/**
Suggests the user to view a hint about the meaning of one and two check marks on sent messages.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionViewChecksHint {
    '@type': 'suggestedActionViewChecksHint';
}
/**
Suggests the user to convert specified supergroup to a broadcast group.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionConvertToBroadcastGroup {
    '@type': 'suggestedActionConvertToBroadcastGroup';
    /**
Supergroup identifier.
*/
    supergroup_id: number;
}
/**
Suggests the user to set a 2-step verification password to be able to log in again.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionSetPassword {
    '@type': 'suggestedActionSetPassword';
    /**
The number of days to pass between consecutive authorizations if the user declines to set password; if 0, then the user
is advised to set the password for security reasons.
*/
    authorization_delay: number;
}
/**
Suggests the user to upgrade the Premium subscription from monthly payments to annual payments.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionUpgradePremium {
    '@type': 'suggestedActionUpgradePremium';
}
/**
Suggests the user to restore a recently expired Premium subscription.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionRestorePremium {
    '@type': 'suggestedActionRestorePremium';
}
/**
Suggests the user to subscribe to the Premium subscription with annual payments.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionSubscribeToAnnualPremium {
    '@type': 'suggestedActionSubscribeToAnnualPremium';
}
/**
Suggests the user to gift Telegram Premium to friends for Christmas.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionGiftPremiumForChristmas {
    '@type': 'suggestedActionGiftPremiumForChristmas';
}
/**
Suggests the user to set birthdate.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionSetBirthdate {
    '@type': 'suggestedActionSetBirthdate';
}
/**
Suggests the user to set profile photo.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionSetProfilePhoto {
    '@type': 'suggestedActionSetProfilePhoto';
}
/**
Suggests the user to extend their expiring Telegram Premium subscription.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionExtendPremium {
    '@type': 'suggestedActionExtendPremium';
    /**
A URL for managing Telegram Premium subscription.
*/
    manage_premium_subscription_url: string;
}
/**
Suggests the user to extend their expiring Telegram Star subscriptions. Call getStarSubscriptions with only_expiring ==
true to get the number of expiring subscriptions and the number of required to buy Telegram Stars.
Subtype of {@link SuggestedAction}.
*/
export interface SuggestedActionExtendStarSubscriptions {
    '@type': 'suggestedActionExtendStarSubscriptions';
}
/**
Contains a counter.
*/
export interface Count {
    '@type': 'count';
    /**
Count.
*/
    count: number;
}
/**
Contains some text.
*/
export interface Text {
    '@type': 'text';
    /**
Text.
*/
    text: string;
}
/**
Contains a value representing a number of seconds.
*/
export interface Seconds {
    '@type': 'seconds';
    /**
Number of seconds.
*/
    seconds: number;
}
/**
Contains size of downloaded prefix of a file.
*/
export interface FileDownloadedPrefixSize {
    '@type': 'fileDownloadedPrefixSize';
    /**
The prefix size, in bytes.
*/
    size: number;
}
/**
Contains a number of Telegram Stars.
*/
export interface StarCount {
    '@type': 'starCount';
    /**
Number of Telegram Stars.
*/
    star_count: number;
}
/**
Contains information about a tg: deep link.
*/
export interface DeepLinkInfo {
    '@type': 'deepLinkInfo';
    /**
Text to be shown to the user.
*/
    text: FormattedText;
    /**
True, if the user must be asked to update the application.
*/
    need_update_application?: boolean;
}
/**
Describes the way the text needs to be parsed for text entities.
Subtype of {@link TextParseMode}.
*/
export interface TextParseModeMarkdown {
    '@type': 'textParseModeMarkdown';
    /**
Version of the parser: 0 or 1 - Telegram Bot API "Markdown" parse mode, 2 - Telegram Bot API "MarkdownV2" parse mode.
*/
    version: number;
}
/**
The text uses HTML-style formatting. The same as Telegram Bot API "HTML" parse mode.
Subtype of {@link TextParseMode}.
*/
export interface TextParseModeHtml {
    '@type': 'textParseModeHTML';
}
/**
Describes the type of proxy server.
Subtype of {@link ProxyType}.
*/
export interface ProxyTypeSocks5 {
    '@type': 'proxyTypeSocks5';
    /**
Username for logging in; may be empty.
*/
    username: string;
    /**
Password for logging in; may be empty.
*/
    password: string;
}
/**
A HTTP transparent proxy server.
Subtype of {@link ProxyType}.
*/
export interface ProxyTypeHttp {
    '@type': 'proxyTypeHttp';
    /**
Username for logging in; may be empty.
*/
    username: string;
    /**
Password for logging in; may be empty.
*/
    password: string;
    /**
Pass true if the proxy supports only HTTP requests and doesn't support transparent TCP connections via HTTP CONNECT
method.
*/
    http_only?: boolean;
}
/**
An MTProto proxy server.
Subtype of {@link ProxyType}.
*/
export interface ProxyTypeMtproto {
    '@type': 'proxyTypeMtproto';
    /**
The proxy's secret in hexadecimal encoding.
*/
    secret: string;
}
/**
Contains information about a proxy server.
*/
export interface Proxy {
    '@type': 'proxy';
    /**
Unique identifier of the proxy.
*/
    id: number;
    /**
Proxy server domain or IP address.
*/
    server: string;
    /**
Proxy server port.
*/
    port: number;
    /**
Point in time (Unix timestamp) when the proxy was last used; 0 if never.
*/
    last_used_date: number;
    /**
True, if the proxy is enabled now.
*/
    is_enabled?: boolean;
    /**
Type of the proxy.
*/
    type: ProxyType;
}
/**
Represents a list of proxy servers.
*/
export interface Proxies {
    '@type': 'proxies';
    /**
List of proxy servers.
*/
    proxies: Proxy[];
}
/**
A sticker to be added to a sticker set.
*/
export interface InputSticker {
    '@type': 'inputSticker';
    /**
File with the sticker; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which
will be converted to WEBP server-side. See https://core.telegram.org/animated_stickers#technical-requirements for
technical requirements.
*/
    sticker: InputFile;
    /**
Format of the sticker.
*/
    format: StickerFormat;
    /**
String with 1-20 emoji corresponding to the sticker.
*/
    emojis: string;
    /**
Position where the mask is placed; pass null if not specified.
*/
    mask_position: MaskPosition;
    /**
List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker.
*/
    keywords: string[];
}
/**
Represents a date range.
*/
export interface DateRange {
    '@type': 'dateRange';
    /**
Point in time (Unix timestamp) at which the date range begins.
*/
    start_date: number;
    /**
Point in time (Unix timestamp) at which the date range ends.
*/
    end_date: number;
}
/**
A value with information about its recent changes.
*/
export interface StatisticalValue {
    '@type': 'statisticalValue';
    /**
The current value.
*/
    value: number;
    /**
The value for the previous day.
*/
    previous_value: number;
    /**
The growth rate of the value, as a percentage.
*/
    growth_rate_percentage: number;
}
/**
Describes a statistical graph.
Subtype of {@link StatisticalGraph}.
*/
export interface StatisticalGraphData {
    '@type': 'statisticalGraphData';
    /**
Graph data in JSON format.
*/
    json_data: string;
    /**
If non-empty, a token which can be used to receive a zoomed in graph.
*/
    zoom_token: string;
}
/**
The graph data to be asynchronously loaded through getStatisticalGraph.
Subtype of {@link StatisticalGraph}.
*/
export interface StatisticalGraphAsync {
    '@type': 'statisticalGraphAsync';
    /**
The token to use for data loading.
*/
    token: string;
}
/**
An error message to be shown to the user instead of the graph.
Subtype of {@link StatisticalGraph}.
*/
export interface StatisticalGraphError {
    '@type': 'statisticalGraphError';
    /**
The error message.
*/
    error_message: string;
}
/**
Describes type of object, for which statistics are provided.
Subtype of {@link ChatStatisticsObjectType}.
*/
export interface ChatStatisticsObjectTypeMessage {
    '@type': 'chatStatisticsObjectTypeMessage';
    /**
Message identifier.
*/
    message_id: number;
}
/**
Describes a story sent by the chat.
Subtype of {@link ChatStatisticsObjectType}.
*/
export interface ChatStatisticsObjectTypeStory {
    '@type': 'chatStatisticsObjectTypeStory';
    /**
Story identifier.
*/
    story_id: number;
}
/**
Contains statistics about interactions with a message sent in the chat or a story sent by the chat.
*/
export interface ChatStatisticsInteractionInfo {
    '@type': 'chatStatisticsInteractionInfo';
    /**
Type of the object.
*/
    object_type: ChatStatisticsObjectType;
    /**
Number of times the object was viewed.
*/
    view_count: number;
    /**
Number of times the object was forwarded.
*/
    forward_count: number;
    /**
Number of times reactions were added to the object.
*/
    reaction_count: number;
}
/**
Contains statistics about messages sent by a user.
*/
export interface ChatStatisticsMessageSenderInfo {
    '@type': 'chatStatisticsMessageSenderInfo';
    /**
User identifier.
*/
    user_id: number;
    /**
Number of sent messages.
*/
    sent_message_count: number;
    /**
Average number of characters in sent messages; 0 if unknown.
*/
    average_character_count: number;
}
/**
Contains statistics about administrator actions done by a user.
*/
export interface ChatStatisticsAdministratorActionsInfo {
    '@type': 'chatStatisticsAdministratorActionsInfo';
    /**
Administrator user identifier.
*/
    user_id: number;
    /**
Number of messages deleted by the administrator.
*/
    deleted_message_count: number;
    /**
Number of users banned by the administrator.
*/
    banned_user_count: number;
    /**
Number of users restricted by the administrator.
*/
    restricted_user_count: number;
}
/**
Contains statistics about number of new members invited by a user.
*/
export interface ChatStatisticsInviterInfo {
    '@type': 'chatStatisticsInviterInfo';
    /**
User identifier.
*/
    user_id: number;
    /**
Number of new members invited by the user.
*/
    added_member_count: number;
}
/**
Contains a detailed statistics about a chat.
Subtype of {@link ChatStatistics}.
*/
export interface ChatStatisticsSupergroup {
    '@type': 'chatStatisticsSupergroup';
    /**
A period to which the statistics applies.
*/
    period: DateRange;
    /**
Number of members in the chat.
*/
    member_count: StatisticalValue;
    /**
Number of messages sent to the chat.
*/
    message_count: StatisticalValue;
    /**
Number of users who viewed messages in the chat.
*/
    viewer_count: StatisticalValue;
    /**
Number of users who sent messages to the chat.
*/
    sender_count: StatisticalValue;
    /**
A graph containing number of members in the chat.
*/
    member_count_graph: StatisticalGraph;
    /**
A graph containing number of members joined and left the chat.
*/
    join_graph: StatisticalGraph;
    /**
A graph containing number of new member joins per source.
*/
    join_by_source_graph: StatisticalGraph;
    /**
A graph containing distribution of active users per language.
*/
    language_graph: StatisticalGraph;
    /**
A graph containing distribution of sent messages by content type.
*/
    message_content_graph: StatisticalGraph;
    /**
A graph containing number of different actions in the chat.
*/
    action_graph: StatisticalGraph;
    /**
A graph containing distribution of message views per hour.
*/
    day_graph: StatisticalGraph;
    /**
A graph containing distribution of message views per day of week.
*/
    week_graph: StatisticalGraph;
    /**
List of users sent most messages in the last week.
*/
    top_senders: ChatStatisticsMessageSenderInfo[];
    /**
List of most active administrators in the last week.
*/
    top_administrators: ChatStatisticsAdministratorActionsInfo[];
    /**
List of most active inviters of new members in the last week.
*/
    top_inviters: ChatStatisticsInviterInfo[];
}
/**
A detailed statistics about a channel chat.
Subtype of {@link ChatStatistics}.
*/
export interface ChatStatisticsChannel {
    '@type': 'chatStatisticsChannel';
    /**
A period to which the statistics applies.
*/
    period: DateRange;
    /**
Number of members in the chat.
*/
    member_count: StatisticalValue;
    /**
Mean number of times the recently sent messages were viewed.
*/
    mean_message_view_count: StatisticalValue;
    /**
Mean number of times the recently sent messages were shared.
*/
    mean_message_share_count: StatisticalValue;
    /**
Mean number of times reactions were added to the recently sent messages.
*/
    mean_message_reaction_count: StatisticalValue;
    /**
Mean number of times the recently sent stories were viewed.
*/
    mean_story_view_count: StatisticalValue;
    /**
Mean number of times the recently sent stories were shared.
*/
    mean_story_share_count: StatisticalValue;
    /**
Mean number of times reactions were added to the recently sent stories.
*/
    mean_story_reaction_count: StatisticalValue;
    /**
A percentage of users with enabled notifications for the chat; 0-100.
*/
    enabled_notifications_percentage: number;
    /**
A graph containing number of members in the chat.
*/
    member_count_graph: StatisticalGraph;
    /**
A graph containing number of members joined and left the chat.
*/
    join_graph: StatisticalGraph;
    /**
A graph containing number of members muted and unmuted the chat.
*/
    mute_graph: StatisticalGraph;
    /**
A graph containing number of message views in a given hour in the last two weeks.
*/
    view_count_by_hour_graph: StatisticalGraph;
    /**
A graph containing number of message views per source.
*/
    view_count_by_source_graph: StatisticalGraph;
    /**
A graph containing number of new member joins per source.
*/
    join_by_source_graph: StatisticalGraph;
    /**
A graph containing number of users viewed chat messages per language.
*/
    language_graph: StatisticalGraph;
    /**
A graph containing number of chat message views and shares.
*/
    message_interaction_graph: StatisticalGraph;
    /**
A graph containing number of reactions on messages.
*/
    message_reaction_graph: StatisticalGraph;
    /**
A graph containing number of story views and shares.
*/
    story_interaction_graph: StatisticalGraph;
    /**
A graph containing number of reactions on stories.
*/
    story_reaction_graph: StatisticalGraph;
    /**
A graph containing number of views of associated with the chat instant views.
*/
    instant_view_interaction_graph: StatisticalGraph;
    /**
Detailed statistics about number of views and shares of recently sent messages and stories.
*/
    recent_interactions: ChatStatisticsInteractionInfo[];
}
/**
Contains information about revenue earned from sponsored messages in a chat.
*/
export interface ChatRevenueAmount {
    '@type': 'chatRevenueAmount';
    /**
Cryptocurrency in which revenue is calculated.
*/
    cryptocurrency: string;
    /**
Total amount of the cryptocurrency earned, in the smallest units of the cryptocurrency.
*/
    total_amount: string;
    /**
Amount of the cryptocurrency that isn't withdrawn yet, in the smallest units of the cryptocurrency.
*/
    balance_amount: string;
    /**
Amount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency.
*/
    available_amount: string;
    /**
True, if Telegram Stars can be withdrawn now or later.
*/
    withdrawal_enabled?: boolean;
}
/**
A detailed statistics about revenue earned from sponsored messages in a chat.
*/
export interface ChatRevenueStatistics {
    '@type': 'chatRevenueStatistics';
    /**
A graph containing amount of revenue in a given hour.
*/
    revenue_by_hour_graph: StatisticalGraph;
    /**
A graph containing amount of revenue.
*/
    revenue_graph: StatisticalGraph;
    /**
Amount of earned revenue.
*/
    revenue_amount: ChatRevenueAmount;
    /**
Current conversion rate of the cryptocurrency in which revenue is calculated to USD.
*/
    usd_rate: number;
}
/**
A detailed statistics about a message.
*/
export interface MessageStatistics {
    '@type': 'messageStatistics';
    /**
A graph containing number of message views and shares.
*/
    message_interaction_graph: StatisticalGraph;
    /**
A graph containing number of message reactions.
*/
    message_reaction_graph: StatisticalGraph;
}
/**
A detailed statistics about a story.
*/
export interface StoryStatistics {
    '@type': 'storyStatistics';
    /**
A graph containing number of story views and shares.
*/
    story_interaction_graph: StatisticalGraph;
    /**
A graph containing number of story reactions.
*/
    story_reaction_graph: StatisticalGraph;
}
/**
Describes state of a revenue withdrawal.
Subtype of {@link RevenueWithdrawalState}.
*/
export interface RevenueWithdrawalStatePending {
    '@type': 'revenueWithdrawalStatePending';
}
/**
Withdrawal succeeded.
Subtype of {@link RevenueWithdrawalState}.
*/
export interface RevenueWithdrawalStateSucceeded {
    '@type': 'revenueWithdrawalStateSucceeded';
    /**
Point in time (Unix timestamp) when the withdrawal was completed.
*/
    date: number;
    /**
The URL where the withdrawal transaction can be viewed.
*/
    url: string;
}
/**
Withdrawal failed.
Subtype of {@link RevenueWithdrawalState}.
*/
export interface RevenueWithdrawalStateFailed {
    '@type': 'revenueWithdrawalStateFailed';
}
/**
Describes type of transaction for revenue earned from sponsored messages in a chat.
Subtype of {@link ChatRevenueTransactionType}.
*/
export interface ChatRevenueTransactionTypeEarnings {
    '@type': 'chatRevenueTransactionTypeEarnings';
    /**
Point in time (Unix timestamp) when the earnings started.
*/
    start_date: number;
    /**
Point in time (Unix timestamp) when the earnings ended.
*/
    end_date: number;
}
/**
Describes a withdrawal of earnings.
Subtype of {@link ChatRevenueTransactionType}.
*/
export interface ChatRevenueTransactionTypeWithdrawal {
    '@type': 'chatRevenueTransactionTypeWithdrawal';
    /**
Point in time (Unix timestamp) when the earnings withdrawal started.
*/
    withdrawal_date: number;
    /**
Name of the payment provider.
*/
    provider: string;
    /**
State of the withdrawal.
*/
    state: RevenueWithdrawalState;
}
/**
Describes a refund for failed withdrawal of earnings.
Subtype of {@link ChatRevenueTransactionType}.
*/
export interface ChatRevenueTransactionTypeRefund {
    '@type': 'chatRevenueTransactionTypeRefund';
    /**
Point in time (Unix timestamp) when the transaction was refunded.
*/
    refund_date: number;
    /**
Name of the payment provider.
*/
    provider: string;
}
/**
Contains a chat revenue transactions.
*/
export interface ChatRevenueTransaction {
    '@type': 'chatRevenueTransaction';
    /**
Cryptocurrency in which revenue is calculated.
*/
    cryptocurrency: string;
    /**
The withdrawn amount, in the smallest units of the cryptocurrency.
*/
    cryptocurrency_amount: string;
    /**
Type of the transaction.
*/
    type: ChatRevenueTransactionType;
}
/**
Contains a list of chat revenue transactions.
*/
export interface ChatRevenueTransactions {
    '@type': 'chatRevenueTransactions';
    /**
Total number of transactions.
*/
    total_count: number;
    /**
List of transactions.
*/
    transactions: ChatRevenueTransaction[];
}
/**
Contains information about Telegram Stars earned by a bot or a chat.
*/
export interface StarRevenueStatus {
    '@type': 'starRevenueStatus';
    /**
Total amount of Telegram Stars earned.
*/
    total_amount: StarAmount;
    /**
The amount of Telegram Stars that aren't withdrawn yet.
*/
    current_amount: StarAmount;
    /**
The amount of Telegram Stars that are available for withdrawal.
*/
    available_amount: StarAmount;
    /**
True, if Telegram Stars can be withdrawn now or later.
*/
    withdrawal_enabled?: boolean;
    /**
Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.
*/
    next_withdrawal_in: number;
}
/**
A detailed statistics about Telegram Stars earned by a bot or a chat.
*/
export interface StarRevenueStatistics {
    '@type': 'starRevenueStatistics';
    /**
A graph containing amount of revenue in a given day.
*/
    revenue_by_day_graph: StatisticalGraph;
    /**
Telegram Star revenue status.
*/
    status: StarRevenueStatus;
    /**
Current conversion rate of a Telegram Star to USD.
*/
    usd_rate: number;
}
/**
A point on a Cartesian plane.
*/
export interface Point {
    '@type': 'point';
    /**
The point's first coordinate.
*/
    x: number;
    /**
The point's second coordinate.
*/
    y: number;
}
/**
Represents a vector path command.
Subtype of {@link VectorPathCommand}.
*/
export interface VectorPathCommandLine {
    '@type': 'vectorPathCommandLine';
    /**
The end point of the straight line.
*/
    end_point: Point;
}
/**
A cubic Bézier curve to a given point.
Subtype of {@link VectorPathCommand}.
*/
export interface VectorPathCommandCubicBezierCurve {
    '@type': 'vectorPathCommandCubicBezierCurve';
    /**
The start control point of the curve.
*/
    start_control_point: Point;
    /**
The end control point of the curve.
*/
    end_control_point: Point;
    /**
The end point of the curve.
*/
    end_point: Point;
}
/**
Represents the scope to which bot commands are relevant.
Subtype of {@link BotCommandScope}.
*/
export interface BotCommandScopeDefault {
    '@type': 'botCommandScopeDefault';
}
/**
A scope covering all private chats.
Subtype of {@link BotCommandScope}.
*/
export interface BotCommandScopeAllPrivateChats {
    '@type': 'botCommandScopeAllPrivateChats';
}
/**
A scope covering all group and supergroup chats.
Subtype of {@link BotCommandScope}.
*/
export interface BotCommandScopeAllGroupChats {
    '@type': 'botCommandScopeAllGroupChats';
}
/**
A scope covering all group and supergroup chat administrators.
Subtype of {@link BotCommandScope}.
*/
export interface BotCommandScopeAllChatAdministrators {
    '@type': 'botCommandScopeAllChatAdministrators';
}
/**
A scope covering all members of a chat.
Subtype of {@link BotCommandScope}.
*/
export interface BotCommandScopeChat {
    '@type': 'botCommandScopeChat';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
A scope covering all administrators of a chat.
Subtype of {@link BotCommandScope}.
*/
export interface BotCommandScopeChatAdministrators {
    '@type': 'botCommandScopeChatAdministrators';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
A scope covering a member of a chat.
Subtype of {@link BotCommandScope}.
*/
export interface BotCommandScopeChatMember {
    '@type': 'botCommandScopeChatMember';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
User identifier.
*/
    user_id: number;
}
/**
Describes type of the request for which a code is sent to a phone number.
Subtype of {@link PhoneNumberCodeType}.
*/
export interface PhoneNumberCodeTypeChange {
    '@type': 'phoneNumberCodeTypeChange';
}
/**
Verifies ownership of a phone number to be added to the user's Telegram Passport.
Subtype of {@link PhoneNumberCodeType}.
*/
export interface PhoneNumberCodeTypeVerify {
    '@type': 'phoneNumberCodeTypeVerify';
}
/**
Confirms ownership of a phone number to prevent account deletion while handling links of the type
internalLinkTypePhoneNumberConfirmation.
Subtype of {@link PhoneNumberCodeType}.
*/
export interface PhoneNumberCodeTypeConfirmOwnership {
    '@type': 'phoneNumberCodeTypeConfirmOwnership';
    /**
Hash value from the link.
*/
    hash: string;
}
/**
Contains notifications about data changes.
Subtype of {@link Update}.
*/
export interface UpdateAuthorizationState {
    '@type': 'updateAuthorizationState';
    /**
New authorization state.
*/
    authorization_state: AuthorizationState;
}
/**
A new message was received; can also be an outgoing message.
Subtype of {@link Update}.
*/
export interface UpdateNewMessage {
    '@type': 'updateNewMessage';
    /**
The new message.
*/
    message: Message;
}
/**
A request to send a message has reached the Telegram server. This doesn't mean that the message will be sent
successfully. This update is sent only if the option "use_quick_ack" is set to true. This update may be sent multiple
times for the same message.
Subtype of {@link Update}.
*/
export interface UpdateMessageSendAcknowledged {
    '@type': 'updateMessageSendAcknowledged';
    /**
The chat identifier of the sent message.
*/
    chat_id: number;
    /**
A temporary message identifier.
*/
    message_id: number;
}
/**
A message has been successfully sent.
Subtype of {@link Update}.
*/
export interface UpdateMessageSendSucceeded {
    '@type': 'updateMessageSendSucceeded';
    /**
The sent message. Almost any field of the new message can be different from the corresponding field of the original
message. For example, the field scheduling_state may change, making the message scheduled, or non-scheduled.
*/
    message: Message;
    /**
The previous temporary message identifier.
*/
    old_message_id: number;
}
/**
A message failed to send. Be aware that some messages being sent can be irrecoverably deleted, in which case
updateDeleteMessages will be received instead of this update.
Subtype of {@link Update}.
*/
export interface UpdateMessageSendFailed {
    '@type': 'updateMessageSendFailed';
    /**
The failed to send message.
*/
    message: Message;
    /**
The previous temporary message identifier.
*/
    old_message_id: number;
    /**
The cause of the message sending failure.
*/
    error: Error;
}
/**
The message content has changed.
Subtype of {@link Update}.
*/
export interface UpdateMessageContent {
    '@type': 'updateMessageContent';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
New message content.
*/
    new_content: MessageContent;
}
/**
A message was edited. Changes in the message content will come in a separate updateMessageContent.
Subtype of {@link Update}.
*/
export interface UpdateMessageEdited {
    '@type': 'updateMessageEdited';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
Point in time (Unix timestamp) when the message was edited.
*/
    edit_date: number;
    /**
New message reply markup; may be null.
*/
    reply_markup: ReplyMarkup;
}
/**
The message pinned state was changed.
Subtype of {@link Update}.
*/
export interface UpdateMessageIsPinned {
    '@type': 'updateMessageIsPinned';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The message identifier.
*/
    message_id: number;
    /**
True, if the message is pinned.
*/
    is_pinned?: boolean;
}
/**
The information about interactions with a message has changed.
Subtype of {@link Update}.
*/
export interface UpdateMessageInteractionInfo {
    '@type': 'updateMessageInteractionInfo';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
New information about interactions with the message; may be null.
*/
    interaction_info: MessageInteractionInfo;
}
/**
The message content was opened. Updates voice note messages to "listened", video note messages to "viewed" and starts
the self-destruct timer.
Subtype of {@link Update}.
*/
export interface UpdateMessageContentOpened {
    '@type': 'updateMessageContentOpened';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
}
/**
A message with an unread mention was read.
Subtype of {@link Update}.
*/
export interface UpdateMessageMentionRead {
    '@type': 'updateMessageMentionRead';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
The new number of unread mention messages left in the chat.
*/
    unread_mention_count: number;
}
/**
The list of unread reactions added to a message was changed.
Subtype of {@link Update}.
*/
export interface UpdateMessageUnreadReactions {
    '@type': 'updateMessageUnreadReactions';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
The new list of unread reactions.
*/
    unread_reactions: UnreadReaction[];
    /**
The new number of messages with unread reactions left in the chat.
*/
    unread_reaction_count: number;
}
/**
A fact-check added to a message was changed.
Subtype of {@link Update}.
*/
export interface UpdateMessageFactCheck {
    '@type': 'updateMessageFactCheck';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
The new fact-check.
*/
    fact_check: FactCheck;
}
/**
A message with a live location was viewed. When the update is received, the application is expected to update the live
location.
Subtype of {@link Update}.
*/
export interface UpdateMessageLiveLocationViewed {
    '@type': 'updateMessageLiveLocationViewed';
    /**
Identifier of the chat with the live location message.
*/
    chat_id: number;
    /**
Identifier of the message with live location.
*/
    message_id: number;
}
/**
An automatically scheduled message with video has been successfully sent after conversion.
Subtype of {@link Update}.
*/
export interface UpdateVideoPublished {
    '@type': 'updateVideoPublished';
    /**
Identifier of the chat with the message.
*/
    chat_id: number;
    /**
Identifier of the sent message.
*/
    message_id: number;
}
/**
A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the
application. The chat field changes will be reported through separate updates.
Subtype of {@link Update}.
*/
export interface UpdateNewChat {
    '@type': 'updateNewChat';
    /**
The chat.
*/
    chat: Chat;
}
/**
The title of a chat was changed.
Subtype of {@link Update}.
*/
export interface UpdateChatTitle {
    '@type': 'updateChatTitle';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new chat title.
*/
    title: string;
}
/**
A chat photo was changed.
Subtype of {@link Update}.
*/
export interface UpdateChatPhoto {
    '@type': 'updateChatPhoto';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new chat photo; may be null.
*/
    photo: ChatPhotoInfo;
}
/**
Chat accent colors have changed.
Subtype of {@link Update}.
*/
export interface UpdateChatAccentColors {
    '@type': 'updateChatAccentColors';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new chat accent color identifier.
*/
    accent_color_id: number;
    /**
The new identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none.
*/
    background_custom_emoji_id: string;
    /**
The new chat profile accent color identifier; -1 if none.
*/
    profile_accent_color_id: number;
    /**
The new identifier of a custom emoji to be shown on the profile background; 0 if none.
*/
    profile_background_custom_emoji_id: string;
}
/**
Chat permissions were changed.
Subtype of {@link Update}.
*/
export interface UpdateChatPermissions {
    '@type': 'updateChatPermissions';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new chat permissions.
*/
    permissions: ChatPermissions;
}
/**
The last message of a chat was changed.
Subtype of {@link Update}.
*/
export interface UpdateChatLastMessage {
    '@type': 'updateChatLastMessage';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new last message in the chat; may be null if the last message became unknown. While the last message is unknown, new
messages can be added to the chat without corresponding updateNewMessage update.
*/
    last_message: Message;
    /**
The new chat positions in the chat lists.
*/
    positions: ChatPosition[];
}
/**
The position of a chat in a chat list has changed. An updateChatLastMessage or updateChatDraftMessage update might be
sent instead of the update.
Subtype of {@link Update}.
*/
export interface UpdateChatPosition {
    '@type': 'updateChatPosition';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New chat position. If new order is 0, then the chat needs to be removed from the list.
*/
    position: ChatPosition;
}
/**
A chat was added to a chat list.
Subtype of {@link Update}.
*/
export interface UpdateChatAddedToList {
    '@type': 'updateChatAddedToList';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The chat list to which the chat was added.
*/
    chat_list: ChatList;
}
/**
A chat was removed from a chat list.
Subtype of {@link Update}.
*/
export interface UpdateChatRemovedFromList {
    '@type': 'updateChatRemovedFromList';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The chat list from which the chat was removed.
*/
    chat_list: ChatList;
}
/**
Incoming messages were read or the number of unread messages has been changed.
Subtype of {@link Update}.
*/
export interface UpdateChatReadInbox {
    '@type': 'updateChatReadInbox';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the last read incoming message.
*/
    last_read_inbox_message_id: number;
    /**
The number of unread messages left in the chat.
*/
    unread_count: number;
}
/**
Outgoing messages were read.
Subtype of {@link Update}.
*/
export interface UpdateChatReadOutbox {
    '@type': 'updateChatReadOutbox';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of last read outgoing message.
*/
    last_read_outbox_message_id: number;
}
/**
The chat action bar was changed.
Subtype of {@link Update}.
*/
export interface UpdateChatActionBar {
    '@type': 'updateChatActionBar';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new value of the action bar; may be null.
*/
    action_bar: ChatActionBar;
}
/**
The bar for managing business bot was changed in a chat.
Subtype of {@link Update}.
*/
export interface UpdateChatBusinessBotManageBar {
    '@type': 'updateChatBusinessBotManageBar';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new value of the business bot manage bar; may be null.
*/
    business_bot_manage_bar: BusinessBotManageBar;
}
/**
The chat available reactions were changed.
Subtype of {@link Update}.
*/
export interface UpdateChatAvailableReactions {
    '@type': 'updateChatAvailableReactions';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new reactions, available in the chat.
*/
    available_reactions: ChatAvailableReactions;
}
/**
A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the
draft. If the user has changed the content of the draft, this update mustn't be applied.
Subtype of {@link Update}.
*/
export interface UpdateChatDraftMessage {
    '@type': 'updateChatDraftMessage';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new draft message; may be null if none.
*/
    draft_message: DraftMessage;
    /**
The new chat positions in the chat lists.
*/
    positions: ChatPosition[];
}
/**
Chat emoji status has changed.
Subtype of {@link Update}.
*/
export interface UpdateChatEmojiStatus {
    '@type': 'updateChatEmojiStatus';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new chat emoji status; may be null.
*/
    emoji_status: EmojiStatus;
}
/**
The message sender that is selected to send messages in a chat has changed.
Subtype of {@link Update}.
*/
export interface UpdateChatMessageSender {
    '@type': 'updateChatMessageSender';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of message_sender_id; may be null if the user can't change message sender.
*/
    message_sender_id: MessageSender;
}
/**
The message auto-delete or self-destruct timer setting for a chat was changed.
Subtype of {@link Update}.
*/
export interface UpdateChatMessageAutoDeleteTime {
    '@type': 'updateChatMessageAutoDeleteTime';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of message_auto_delete_time.
*/
    message_auto_delete_time: number;
}
/**
Notification settings for a chat were changed.
Subtype of {@link Update}.
*/
export interface UpdateChatNotificationSettings {
    '@type': 'updateChatNotificationSettings';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new notification settings.
*/
    notification_settings: ChatNotificationSettings;
}
/**
The chat pending join requests were changed.
Subtype of {@link Update}.
*/
export interface UpdateChatPendingJoinRequests {
    '@type': 'updateChatPendingJoinRequests';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new data about pending join requests; may be null.
*/
    pending_join_requests: ChatJoinRequestsInfo;
}
/**
The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an
old reply markup was hidden by the user.
Subtype of {@link Update}.
*/
export interface UpdateChatReplyMarkup {
    '@type': 'updateChatReplyMarkup';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the
chat.
*/
    reply_markup_message_id: number;
}
/**
The chat background was changed.
Subtype of {@link Update}.
*/
export interface UpdateChatBackground {
    '@type': 'updateChatBackground';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new chat background; may be null if background was reset to default.
*/
    background: ChatBackground;
}
/**
The chat theme was changed.
Subtype of {@link Update}.
*/
export interface UpdateChatTheme {
    '@type': 'updateChatTheme';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new name of the chat theme; may be empty if theme was reset to default.
*/
    theme_name: string;
}
/**
The chat unread_mention_count has changed.
Subtype of {@link Update}.
*/
export interface UpdateChatUnreadMentionCount {
    '@type': 'updateChatUnreadMentionCount';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The number of unread mention messages left in the chat.
*/
    unread_mention_count: number;
}
/**
The chat unread_reaction_count has changed.
Subtype of {@link Update}.
*/
export interface UpdateChatUnreadReactionCount {
    '@type': 'updateChatUnreadReactionCount';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The number of messages with unread reactions left in the chat.
*/
    unread_reaction_count: number;
}
/**
A chat video chat state has changed.
Subtype of {@link Update}.
*/
export interface UpdateChatVideoChat {
    '@type': 'updateChatVideoChat';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of video_chat.
*/
    video_chat: VideoChat;
}
/**
The value of the default disable_notification parameter, used when a message is sent to the chat, was changed.
Subtype of {@link Update}.
*/
export interface UpdateChatDefaultDisableNotification {
    '@type': 'updateChatDefaultDisableNotification';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new default_disable_notification value.
*/
    default_disable_notification?: boolean;
}
/**
A chat content was allowed or restricted for saving.
Subtype of {@link Update}.
*/
export interface UpdateChatHasProtectedContent {
    '@type': 'updateChatHasProtectedContent';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of has_protected_content.
*/
    has_protected_content?: boolean;
}
/**
Translation of chat messages was enabled or disabled.
Subtype of {@link Update}.
*/
export interface UpdateChatIsTranslatable {
    '@type': 'updateChatIsTranslatable';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of is_translatable.
*/
    is_translatable?: boolean;
}
/**
A chat was marked as unread or was read.
Subtype of {@link Update}.
*/
export interface UpdateChatIsMarkedAsUnread {
    '@type': 'updateChatIsMarkedAsUnread';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of is_marked_as_unread.
*/
    is_marked_as_unread?: boolean;
}
/**
A chat default appearance has changed.
Subtype of {@link Update}.
*/
export interface UpdateChatViewAsTopics {
    '@type': 'updateChatViewAsTopics';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of view_as_topics.
*/
    view_as_topics?: boolean;
}
/**
A chat was blocked or unblocked.
Subtype of {@link Update}.
*/
export interface UpdateChatBlockList {
    '@type': 'updateChatBlockList';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Block list to which the chat is added; may be null if none.
*/
    block_list: BlockList;
}
/**
A chat's has_scheduled_messages field has changed.
Subtype of {@link Update}.
*/
export interface UpdateChatHasScheduledMessages {
    '@type': 'updateChatHasScheduledMessages';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of has_scheduled_messages.
*/
    has_scheduled_messages?: boolean;
}
/**
The list of chat folders or a chat folder has changed.
Subtype of {@link Update}.
*/
export interface UpdateChatFolders {
    '@type': 'updateChatFolders';
    /**
The new list of chat folders.
*/
    chat_folders: ChatFolderInfo[];
    /**
Position of the main chat list among chat folders, 0-based.
*/
    main_chat_list_position: number;
    /**
True, if folder tags are enabled.
*/
    are_tags_enabled?: boolean;
}
/**
The number of online group members has changed. This update with non-zero number of online group members is sent only
for currently opened chats. There is no guarantee that it is sent just after the number of online users has changed.
Subtype of {@link Update}.
*/
export interface UpdateChatOnlineMemberCount {
    '@type': 'updateChatOnlineMemberCount';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
New number of online members in the chat, or 0 if unknown.
*/
    online_member_count: number;
}
/**
Basic information about a Saved Messages topic has changed. This update is guaranteed to come before the topic
identifier is returned to the application.
Subtype of {@link Update}.
*/
export interface UpdateSavedMessagesTopic {
    '@type': 'updateSavedMessagesTopic';
    /**
New data about the topic.
*/
    topic: SavedMessagesTopic;
}
/**
Number of Saved Messages topics has changed.
Subtype of {@link Update}.
*/
export interface UpdateSavedMessagesTopicCount {
    '@type': 'updateSavedMessagesTopicCount';
    /**
Approximate total number of Saved Messages topics.
*/
    topic_count: number;
}
/**
Basic information about a quick reply shortcut has changed. This update is guaranteed to come before the quick shortcut
name is returned to the application.
Subtype of {@link Update}.
*/
export interface UpdateQuickReplyShortcut {
    '@type': 'updateQuickReplyShortcut';
    /**
New data about the shortcut.
*/
    shortcut: QuickReplyShortcut;
}
/**
A quick reply shortcut and all its messages were deleted.
Subtype of {@link Update}.
*/
export interface UpdateQuickReplyShortcutDeleted {
    '@type': 'updateQuickReplyShortcutDeleted';
    /**
The identifier of the deleted shortcut.
*/
    shortcut_id: number;
}
/**
The list of quick reply shortcuts has changed.
Subtype of {@link Update}.
*/
export interface UpdateQuickReplyShortcuts {
    '@type': 'updateQuickReplyShortcuts';
    /**
The new list of identifiers of quick reply shortcuts.
*/
    shortcut_ids: number[];
}
/**
The list of quick reply shortcut messages has changed.
Subtype of {@link Update}.
*/
export interface UpdateQuickReplyShortcutMessages {
    '@type': 'updateQuickReplyShortcutMessages';
    /**
The identifier of the shortcut.
*/
    shortcut_id: number;
    /**
The new list of quick reply messages for the shortcut in order from the first to the last sent.
*/
    messages: QuickReplyMessage[];
}
/**
Basic information about a topic in a forum chat was changed.
Subtype of {@link Update}.
*/
export interface UpdateForumTopicInfo {
    '@type': 'updateForumTopicInfo';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New information about the topic.
*/
    info: ForumTopicInfo;
}
/**
Notification settings for some type of chats were updated.
Subtype of {@link Update}.
*/
export interface UpdateScopeNotificationSettings {
    '@type': 'updateScopeNotificationSettings';
    /**
Types of chats for which notification settings were updated.
*/
    scope: NotificationSettingsScope;
    /**
The new notification settings.
*/
    notification_settings: ScopeNotificationSettings;
}
/**
Notification settings for reactions were updated.
Subtype of {@link Update}.
*/
export interface UpdateReactionNotificationSettings {
    '@type': 'updateReactionNotificationSettings';
    /**
The new notification settings.
*/
    notification_settings: ReactionNotificationSettings;
}
/**
A notification was changed.
Subtype of {@link Update}.
*/
export interface UpdateNotification {
    '@type': 'updateNotification';
    /**
Unique notification group identifier.
*/
    notification_group_id: number;
    /**
Changed notification.
*/
    notification: Notification;
}
/**
A list of active notifications in a notification group has changed.
Subtype of {@link Update}.
*/
export interface UpdateNotificationGroup {
    '@type': 'updateNotificationGroup';
    /**
Unique notification group identifier.
*/
    notification_group_id: number;
    /**
New type of the notification group.
*/
    type: NotificationGroupType;
    /**
Identifier of a chat to which all notifications in the group belong.
*/
    chat_id: number;
    /**
Chat identifier, which notification settings must be applied to the added notifications.
*/
    notification_settings_chat_id: number;
    /**
Identifier of the notification sound to be played; 0 if sound is disabled.
*/
    notification_sound_id: string;
    /**
Total number of unread notifications in the group, can be bigger than number of active notifications.
*/
    total_count: number;
    /**
List of added group notifications, sorted by notification identifier.
*/
    added_notifications: Notification[];
    /**
Identifiers of removed group notifications, sorted by notification identifier.
*/
    removed_notification_ids: number[];
}
/**
Contains active notifications that were shown on previous application launches. This update is sent only if the message
database is used. In that case it comes once before any updateNotification and updateNotificationGroup update.
Subtype of {@link Update}.
*/
export interface UpdateActiveNotifications {
    '@type': 'updateActiveNotifications';
    /**
Lists of active notification groups.
*/
    groups: NotificationGroup[];
}
/**
Describes whether there are some pending notification updates. Can be used to prevent application from killing, while
there are some pending notifications.
Subtype of {@link Update}.
*/
export interface UpdateHavePendingNotifications {
    '@type': 'updateHavePendingNotifications';
    /**
True, if there are some delayed notification updates, which will be sent soon.
*/
    have_delayed_notifications?: boolean;
    /**
True, if there can be some yet unreceived notifications, which are being fetched from the server.
*/
    have_unreceived_notifications?: boolean;
}
/**
Some messages were deleted.
Subtype of {@link Update}.
*/
export interface UpdateDeleteMessages {
    '@type': 'updateDeleteMessages';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifiers of the deleted messages.
*/
    message_ids: number[];
    /**
True, if the messages are permanently deleted by a user (as opposed to just becoming inaccessible).
*/
    is_permanent?: boolean;
    /**
True, if the messages are deleted only from the cache and can possibly be retrieved again in the future.
*/
    from_cache?: boolean;
}
/**
A message sender activity in the chat has changed.
Subtype of {@link Update}.
*/
export interface UpdateChatAction {
    '@type': 'updateChatAction';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
If not 0, the message thread identifier in which the action was performed.
*/
    message_thread_id: number;
    /**
Identifier of a message sender performing the action.
*/
    sender_id: MessageSender;
    /**
The action.
*/
    action: ChatAction;
}
/**
The user went online or offline.
Subtype of {@link Update}.
*/
export interface UpdateUserStatus {
    '@type': 'updateUserStatus';
    /**
User identifier.
*/
    user_id: number;
    /**
New status of the user.
*/
    status: UserStatus;
}
/**
Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the
application.
Subtype of {@link Update}.
*/
export interface UpdateUser {
    '@type': 'updateUser';
    /**
New data about the user.
*/
    user: User;
}
/**
Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned
to the application.
Subtype of {@link Update}.
*/
export interface UpdateBasicGroup {
    '@type': 'updateBasicGroup';
    /**
New data about the group.
*/
    basic_group: BasicGroup;
}
/**
Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier
is returned to the application.
Subtype of {@link Update}.
*/
export interface UpdateSupergroup {
    '@type': 'updateSupergroup';
    /**
New data about the supergroup.
*/
    supergroup: Supergroup;
}
/**
Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned
to the application.
Subtype of {@link Update}.
*/
export interface UpdateSecretChat {
    '@type': 'updateSecretChat';
    /**
New data about the secret chat.
*/
    secret_chat: SecretChat;
}
/**
Some data in userFullInfo has been changed.
Subtype of {@link Update}.
*/
export interface UpdateUserFullInfo {
    '@type': 'updateUserFullInfo';
    /**
User identifier.
*/
    user_id: number;
    /**
New full information about the user.
*/
    user_full_info: UserFullInfo;
}
/**
Some data in basicGroupFullInfo has been changed.
Subtype of {@link Update}.
*/
export interface UpdateBasicGroupFullInfo {
    '@type': 'updateBasicGroupFullInfo';
    /**
Identifier of a basic group.
*/
    basic_group_id: number;
    /**
New full information about the group.
*/
    basic_group_full_info: BasicGroupFullInfo;
}
/**
Some data in supergroupFullInfo has been changed.
Subtype of {@link Update}.
*/
export interface UpdateSupergroupFullInfo {
    '@type': 'updateSupergroupFullInfo';
    /**
Identifier of the supergroup or channel.
*/
    supergroup_id: number;
    /**
New full information about the supergroup.
*/
    supergroup_full_info: SupergroupFullInfo;
}
/**
A service notification from the server was received. Upon receiving this the application must show a popup with the
content of the notification.
Subtype of {@link Update}.
*/
export interface UpdateServiceNotification {
    '@type': 'updateServiceNotification';
    /**
Notification type. If type begins with "AUTH_KEY_DROP_", then two buttons "Cancel" and "Log out" must be shown under
notification; if user presses the second, all local data must be destroyed using Destroy method.
*/
    type: string;
    /**
Notification content.
*/
    content: MessageContent;
}
/**
Information about a file was updated.
Subtype of {@link Update}.
*/
export interface UpdateFile {
    '@type': 'updateFile';
    /**
New data about the file.
*/
    file: File;
}
/**
The file generation process needs to be started by the application. Use setFileGenerationProgress and
finishFileGeneration to generate the file.
Subtype of {@link Update}.
*/
export interface UpdateFileGenerationStart {
    '@type': 'updateFileGenerationStart';
    /**
Unique identifier for the generation process.
*/
    generation_id: string;
    /**
The original path specified by the application in inputFileGenerated.
*/
    original_path: string;
    /**
The path to a file that must be created and where the new file must be generated by the application. If the application
has no access to the path, it can use writeGeneratedFilePart to generate the file.
*/
    destination_path: string;
    /**
If the conversion is "#url#" than original_path contains an HTTP/HTTPS URL of a file that must be downloaded by the
application. Otherwise, this is the conversion specified by the application in inputFileGenerated.
*/
    conversion: string;
}
/**
File generation is no longer needed.
Subtype of {@link Update}.
*/
export interface UpdateFileGenerationStop {
    '@type': 'updateFileGenerationStop';
    /**
Unique identifier for the generation process.
*/
    generation_id: string;
}
/**
The state of the file download list has changed.
Subtype of {@link Update}.
*/
export interface UpdateFileDownloads {
    '@type': 'updateFileDownloads';
    /**
Total size of files in the file download list, in bytes.
*/
    total_size: number;
    /**
Total number of files in the file download list.
*/
    total_count: number;
    /**
Total downloaded size of files in the file download list, in bytes.
*/
    downloaded_size: number;
}
/**
A file was added to the file download list. This update is sent only after file download list is loaded for the first
time.
Subtype of {@link Update}.
*/
export interface UpdateFileAddedToDownloads {
    '@type': 'updateFileAddedToDownloads';
    /**
The added file download.
*/
    file_download: FileDownload;
    /**
New number of being downloaded and recently downloaded files found.
*/
    counts: DownloadedFileCounts;
}
/**
A file download was changed. This update is sent only after file download list is loaded for the first time.
Subtype of {@link Update}.
*/
export interface UpdateFileDownload {
    '@type': 'updateFileDownload';
    /**
File identifier.
*/
    file_id: number;
    /**
Point in time (Unix timestamp) when the file downloading was completed; 0 if the file downloading isn't completed.
*/
    complete_date: number;
    /**
True, if downloading of the file is paused.
*/
    is_paused?: boolean;
    /**
New number of being downloaded and recently downloaded files found.
*/
    counts: DownloadedFileCounts;
}
/**
A file was removed from the file download list. This update is sent only after file download list is loaded for the
first time.
Subtype of {@link Update}.
*/
export interface UpdateFileRemovedFromDownloads {
    '@type': 'updateFileRemovedFromDownloads';
    /**
File identifier.
*/
    file_id: number;
    /**
New number of being downloaded and recently downloaded files found.
*/
    counts: DownloadedFileCounts;
}
/**
A request can't be completed unless application verification is performed; for official mobile applications only. The
method setApplicationVerificationToken must be called once the verification is completed or failed.
Subtype of {@link Update}.
*/
export interface UpdateAppVerificationRequired {
    '@type': 'updateApplicationVerificationRequired';
    /**
Unique identifier for the verification process.
*/
    verification_id: number;
    /**
Unique base64url-encoded nonce for the classic Play Integrity verification
(https://developer.android.com/google/play/integrity/classic) for Android, or a unique string to compare with
verify_nonce field from a push notification for iOS.
*/
    nonce: string;
    /**
Cloud project number to pass to the Play Integrity API on Android.
*/
    cloud_project_number: string;
}
/**
A request can't be completed unless reCAPTCHA verification is performed; for official mobile applications only. The
method setApplicationVerificationToken must be called once the verification is completed or failed.
Subtype of {@link Update}.
*/
export interface UpdateAppRecaptchaVerificationRequired {
    '@type': 'updateApplicationRecaptchaVerificationRequired';
    /**
Unique identifier for the verification process.
*/
    verification_id: number;
    /**
The action for the check.
*/
    action: string;
    /**
Identifier of the reCAPTCHA key.
*/
    recaptcha_key_id: string;
}
/**
New call was created or information about a call was updated.
Subtype of {@link Update}.
*/
export interface UpdateCall {
    '@type': 'updateCall';
    /**
New data about a call.
*/
    call: Call;
}
/**
Information about a group call was updated.
Subtype of {@link Update}.
*/
export interface UpdateGroupCall {
    '@type': 'updateGroupCall';
    /**
New data about a group call.
*/
    group_call: GroupCall;
}
/**
Information about a group call participant was changed. The updates are sent only after the group call is received
through getGroupCall and only if the call is joined or being joined.
Subtype of {@link Update}.
*/
export interface UpdateGroupCallParticipant {
    '@type': 'updateGroupCallParticipant';
    /**
Identifier of group call.
*/
    group_call_id: number;
    /**
New data about a participant.
*/
    participant: GroupCallParticipant;
}
/**
New call signaling data arrived.
Subtype of {@link Update}.
*/
export interface UpdateNewCallSignalingData {
    '@type': 'updateNewCallSignalingData';
    /**
The call identifier.
*/
    call_id: number;
    /**
The data.
*/
    data: string;
}
/**
Some privacy setting rules have been changed.
Subtype of {@link Update}.
*/
export interface UpdateUserPrivacySettingRules {
    '@type': 'updateUserPrivacySettingRules';
    /**
The privacy setting.
*/
    setting: UserPrivacySetting;
    /**
New privacy rules.
*/
    rules: UserPrivacySettingRules;
}
/**
Number of unread messages in a chat list has changed. This update is sent only if the message database is used.
Subtype of {@link Update}.
*/
export interface UpdateUnreadMessageCount {
    '@type': 'updateUnreadMessageCount';
    /**
The chat list with changed number of unread messages.
*/
    chat_list: ChatList;
    /**
Total number of unread messages.
*/
    unread_count: number;
    /**
Total number of unread messages in unmuted chats.
*/
    unread_unmuted_count: number;
}
/**
Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the
message database is used.
Subtype of {@link Update}.
*/
export interface UpdateUnreadChatCount {
    '@type': 'updateUnreadChatCount';
    /**
The chat list with changed number of unread messages.
*/
    chat_list: ChatList;
    /**
Approximate total number of chats in the chat list.
*/
    total_count: number;
    /**
Total number of unread chats.
*/
    unread_count: number;
    /**
Total number of unread unmuted chats.
*/
    unread_unmuted_count: number;
    /**
Total number of chats marked as unread.
*/
    marked_as_unread_count: number;
    /**
Total number of unmuted chats marked as unread.
*/
    marked_as_unread_unmuted_count: number;
}
/**
A story was changed.
Subtype of {@link Update}.
*/
export interface UpdateStory {
    '@type': 'updateStory';
    /**
The new information about the story.
*/
    story: Story;
}
/**
A story became inaccessible.
Subtype of {@link Update}.
*/
export interface UpdateStoryDeleted {
    '@type': 'updateStoryDeleted';
    /**
Identifier of the chat that posted the story.
*/
    story_sender_chat_id: number;
    /**
Story identifier.
*/
    story_id: number;
}
/**
A story has been successfully sent.
Subtype of {@link Update}.
*/
export interface UpdateStorySendSucceeded {
    '@type': 'updateStorySendSucceeded';
    /**
The sent story.
*/
    story: Story;
    /**
The previous temporary story identifier.
*/
    old_story_id: number;
}
/**
A story failed to send. If the story sending is canceled, then updateStoryDeleted will be received instead of this
update.
Subtype of {@link Update}.
*/
export interface UpdateStorySendFailed {
    '@type': 'updateStorySendFailed';
    /**
The failed to send story.
*/
    story: Story;
    /**
The cause of the story sending failure.
*/
    error: Error;
    /**
Type of the error; may be null if unknown.
*/
    error_type: CanSendStoryResult;
}
/**
The list of active stories posted by a specific chat has changed.
Subtype of {@link Update}.
*/
export interface UpdateChatActiveStories {
    '@type': 'updateChatActiveStories';
    /**
The new list of active stories.
*/
    active_stories: ChatActiveStories;
}
/**
Number of chats in a story list has changed.
Subtype of {@link Update}.
*/
export interface UpdateStoryListChatCount {
    '@type': 'updateStoryListChatCount';
    /**
The story list.
*/
    story_list: StoryList;
    /**
Approximate total number of chats with active stories in the list.
*/
    chat_count: number;
}
/**
Story stealth mode settings have changed.
Subtype of {@link Update}.
*/
export interface UpdateStoryStealthMode {
    '@type': 'updateStoryStealthMode';
    /**
Point in time (Unix timestamp) until stealth mode is active; 0 if it is disabled.
*/
    active_until_date: number;
    /**
Point in time (Unix timestamp) when stealth mode can be enabled again; 0 if there is no active cooldown.
*/
    cooldown_until_date: number;
}
/**
An option changed its value.
Subtype of {@link Update}.
*/
export interface UpdateOption {
    '@type': 'updateOption';
    /**
The option name.
*/
    name: string;
    /**
The new option value.
*/
    value: OptionValue;
}
/**
A sticker set has changed.
Subtype of {@link Update}.
*/
export interface UpdateStickerSet {
    '@type': 'updateStickerSet';
    /**
The sticker set.
*/
    sticker_set: StickerSet;
}
/**
The list of installed sticker sets was updated.
Subtype of {@link Update}.
*/
export interface UpdateInstalledStickerSets {
    '@type': 'updateInstalledStickerSets';
    /**
Type of the affected stickers.
*/
    sticker_type: StickerType;
    /**
The new list of installed ordinary sticker sets.
*/
    sticker_set_ids: string[];
}
/**
The list of trending sticker sets was updated or some of them were viewed.
Subtype of {@link Update}.
*/
export interface UpdateTrendingStickerSets {
    '@type': 'updateTrendingStickerSets';
    /**
Type of the affected stickers.
*/
    sticker_type: StickerType;
    /**
The prefix of the list of trending sticker sets with the newest trending sticker sets.
*/
    sticker_sets: TrendingStickerSets;
}
/**
The list of recently used stickers was updated.
Subtype of {@link Update}.
*/
export interface UpdateRecentStickers {
    '@type': 'updateRecentStickers';
    /**
True, if the list of stickers attached to photo or video files was updated; otherwise, the list of sent stickers is
updated.
*/
    is_attached?: boolean;
    /**
The new list of file identifiers of recently used stickers.
*/
    sticker_ids: number[];
}
/**
The list of favorite stickers was updated.
Subtype of {@link Update}.
*/
export interface UpdateFavoriteStickers {
    '@type': 'updateFavoriteStickers';
    /**
The new list of file identifiers of favorite stickers.
*/
    sticker_ids: number[];
}
/**
The list of saved animations was updated.
Subtype of {@link Update}.
*/
export interface UpdateSavedAnimations {
    '@type': 'updateSavedAnimations';
    /**
The new list of file identifiers of saved animations.
*/
    animation_ids: number[];
}
/**
The list of saved notification sounds was updated. This update may not be sent until information about a notification
sound was requested for the first time.
Subtype of {@link Update}.
*/
export interface UpdateSavedNotificationSounds {
    '@type': 'updateSavedNotificationSounds';
    /**
The new list of identifiers of saved notification sounds.
*/
    notification_sound_ids: string[];
}
/**
The default background has changed.
Subtype of {@link Update}.
*/
export interface UpdateDefaultBackground {
    '@type': 'updateDefaultBackground';
    /**
True, if default background for dark theme has changed.
*/
    for_dark_theme?: boolean;
    /**
The new default background; may be null.
*/
    background: Background;
}
/**
The list of available chat themes has changed.
Subtype of {@link Update}.
*/
export interface UpdateChatThemes {
    '@type': 'updateChatThemes';
    /**
The new list of chat themes.
*/
    chat_themes: ChatTheme[];
}
/**
The list of supported accent colors has changed.
Subtype of {@link Update}.
*/
export interface UpdateAccentColors {
    '@type': 'updateAccentColors';
    /**
Information about supported colors; colors with identifiers 0 (red), 1 (orange), 2 (purple/violet), 3 (green), 4 (cyan),
5 (blue), 6 (pink) must always be supported and aren't included in the list. The exact colors for the accent colors with
identifiers 0-6 must be taken from the app theme.
*/
    colors: AccentColor[];
    /**
The list of accent color identifiers, which can be set through setAccentColor and setChatAccentColor. The colors must be
shown in the specified order.
*/
    available_accent_color_ids: number[];
}
/**
The list of supported accent colors for user profiles has changed.
Subtype of {@link Update}.
*/
export interface UpdateProfileAccentColors {
    '@type': 'updateProfileAccentColors';
    /**
Information about supported colors.
*/
    colors: ProfileAccentColor[];
    /**
The list of accent color identifiers, which can be set through setProfileAccentColor and setChatProfileAccentColor. The
colors must be shown in the specified order.
*/
    available_accent_color_ids: number[];
}
/**
Some language pack strings have been updated.
Subtype of {@link Update}.
*/
export interface UpdateLanguagePackStrings {
    '@type': 'updateLanguagePackStrings';
    /**
Localization target to which the language pack belongs.
*/
    localization_target: string;
    /**
Identifier of the updated language pack.
*/
    language_pack_id: string;
    /**
List of changed language pack strings; empty if all strings have changed.
*/
    strings: LanguagePackString[];
}
/**
The connection state has changed. This update must be used only to show a human-readable description of the connection
state.
Subtype of {@link Update}.
*/
export interface UpdateConnectionState {
    '@type': 'updateConnectionState';
    /**
The new connection state.
*/
    state: ConnectionState;
}
/**
New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method
must be called with the reason "Decline ToS update".
Subtype of {@link Update}.
*/
export interface UpdateTermsOfService {
    '@type': 'updateTermsOfService';
    /**
Identifier of the terms of service.
*/
    terms_of_service_id: string;
    /**
The new terms of service.
*/
    terms_of_service: TermsOfService;
}
/**
The first unconfirmed session has changed.
Subtype of {@link Update}.
*/
export interface UpdateUnconfirmedSession {
    '@type': 'updateUnconfirmedSession';
    /**
The unconfirmed session; may be null if none.
*/
    session: UnconfirmedSession;
}
/**
The list of bots added to attachment or side menu has changed.
Subtype of {@link Update}.
*/
export interface UpdateAttachmentMenuBots {
    '@type': 'updateAttachmentMenuBots';
    /**
The new list of bots. The bots must not be shown on scheduled messages screen.
*/
    bots: AttachmentMenuBot[];
}
/**
A message was sent by an opened Web App, so the Web App needs to be closed.
Subtype of {@link Update}.
*/
export interface UpdateWebAppMessageSent {
    '@type': 'updateWebAppMessageSent';
    /**
Identifier of Web App launch.
*/
    web_app_launch_id: string;
}
/**
The list of active emoji reactions has changed.
Subtype of {@link Update}.
*/
export interface UpdateActiveEmojiReactions {
    '@type': 'updateActiveEmojiReactions';
    /**
The new list of active emoji reactions.
*/
    emojis: string[];
}
/**
The list of available message effects has changed.
Subtype of {@link Update}.
*/
export interface UpdateAvailableMessageEffects {
    '@type': 'updateAvailableMessageEffects';
    /**
The new list of available message effects from emoji reactions.
*/
    reaction_effect_ids: string[];
    /**
The new list of available message effects from Premium stickers.
*/
    sticker_effect_ids: string[];
}
/**
The type of default reaction has changed.
Subtype of {@link Update}.
*/
export interface UpdateDefaultReactionType {
    '@type': 'updateDefaultReactionType';
    /**
The new type of the default reaction.
*/
    reaction_type: ReactionType;
}
/**
The type of default paid reaction has changed.
Subtype of {@link Update}.
*/
export interface UpdateDefaultPaidReactionType {
    '@type': 'updateDefaultPaidReactionType';
    /**
The new type of the default paid reaction.
*/
    type: PaidReactionType;
}
/**
Tags used in Saved Messages or a Saved Messages topic have changed.
Subtype of {@link Update}.
*/
export interface UpdateSavedMessagesTags {
    '@type': 'updateSavedMessagesTags';
    /**
Identifier of Saved Messages topic which tags were changed; 0 if tags for the whole chat has changed.
*/
    saved_messages_topic_id: number;
    /**
The new tags.
*/
    tags: SavedMessagesTags;
}
/**
The list of messages with active live location that need to be updated by the application has changed. The list is
persistent across application restarts only if the message database is used.
Subtype of {@link Update}.
*/
export interface UpdateActiveLiveLocationMessages {
    '@type': 'updateActiveLiveLocationMessages';
    /**
The list of messages with active live locations.
*/
    messages: Message[];
}
/**
The number of Telegram Stars owned by the current user has changed.
Subtype of {@link Update}.
*/
export interface UpdateOwnedStarCount {
    '@type': 'updateOwnedStarCount';
    /**
The new amount of owned Telegram Stars.
*/
    star_amount: StarAmount;
}
/**
The revenue earned from sponsored messages in a chat has changed. If chat revenue screen is opened, then
getChatRevenueTransactions may be called to fetch new transactions.
Subtype of {@link Update}.
*/
export interface UpdateChatRevenueAmount {
    '@type': 'updateChatRevenueAmount';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
New amount of earned revenue.
*/
    revenue_amount: ChatRevenueAmount;
}
/**
The Telegram Star revenue earned by a bot or a chat has changed. If Telegram Star transaction screen of the chat is
opened, then getStarTransactions may be called to fetch new transactions.
Subtype of {@link Update}.
*/
export interface UpdateStarRevenueStatus {
    '@type': 'updateStarRevenueStatus';
    /**
Identifier of the owner of the Telegram Stars.
*/
    owner_id: MessageSender;
    /**
New Telegram Star revenue status.
*/
    status: StarRevenueStatus;
}
/**
The parameters of speech recognition without Telegram Premium subscription has changed.
Subtype of {@link Update}.
*/
export interface UpdateSpeechRecognitionTrial {
    '@type': 'updateSpeechRecognitionTrial';
    /**
The maximum allowed duration of media for speech recognition without Telegram Premium subscription, in seconds.
*/
    max_media_duration: number;
    /**
The total number of allowed speech recognitions per week; 0 if none.
*/
    weekly_count: number;
    /**
Number of left speech recognition attempts this week.
*/
    left_count: number;
    /**
Point in time (Unix timestamp) when the weekly number of tries will reset; 0 if unknown.
*/
    next_reset_date: number;
}
/**
The list of supported dice emojis has changed.
Subtype of {@link Update}.
*/
export interface UpdateDiceEmojis {
    '@type': 'updateDiceEmojis';
    /**
The new list of supported dice emojis.
*/
    emojis: string[];
}
/**
Some animated emoji message was clicked and a big animated sticker must be played if the message is visible on the
screen. chatActionWatchingAnimations with the text of the message needs to be sent if the sticker is played.
Subtype of {@link Update}.
*/
export interface UpdateAnimatedEmojiMessageClicked {
    '@type': 'updateAnimatedEmojiMessageClicked';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
The animated sticker to be played.
*/
    sticker: Sticker;
}
/**
The parameters of animation search through getOption("animation_search_bot_username") bot has changed.
Subtype of {@link Update}.
*/
export interface UpdateAnimationSearchParameters {
    '@type': 'updateAnimationSearchParameters';
    /**
Name of the animation search provider.
*/
    provider: string;
    /**
The new list of emojis suggested for searching.
*/
    emojis: string[];
}
/**
The list of suggested to the user actions has changed.
Subtype of {@link Update}.
*/
export interface UpdateSuggestedActions {
    '@type': 'updateSuggestedActions';
    /**
Added suggested actions.
*/
    added_actions: SuggestedAction[];
    /**
Removed suggested actions.
*/
    removed_actions: SuggestedAction[];
}
/**
Download or upload file speed for the user was limited, but it can be restored by subscription to Telegram Premium. The
notification can be postponed until a being downloaded or uploaded file is visible to the user. Use
getOption("premium_download_speedup") or getOption("premium_upload_speedup") to get expected speedup after subscription
to Telegram Premium.
Subtype of {@link Update}.
*/
export interface UpdateSpeedLimitNotification {
    '@type': 'updateSpeedLimitNotification';
    /**
True, if upload speed was limited; false, if download speed was limited.
*/
    is_upload?: boolean;
}
/**
The list of contacts that had birthdays recently or will have birthday soon has changed.
Subtype of {@link Update}.
*/
export interface UpdateContactCloseBirthdays {
    '@type': 'updateContactCloseBirthdays';
    /**
List of contact users with close birthday.
*/
    close_birthday_users: CloseBirthdayUser[];
}
/**
Autosave settings for some type of chats were updated.
Subtype of {@link Update}.
*/
export interface UpdateAutosaveSettings {
    '@type': 'updateAutosaveSettings';
    /**
Type of chats for which autosave settings were updated.
*/
    scope: AutosaveSettingsScope;
    /**
The new autosave settings; may be null if the settings are reset to default.
*/
    settings: ScopeAutosaveSettings;
}
/**
A business connection has changed; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateBusinessConnection {
    '@type': 'updateBusinessConnection';
    /**
New data about the connection.
*/
    connection: BusinessConnection;
}
/**
A new message was added to a business account; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateNewBusinessMessage {
    '@type': 'updateNewBusinessMessage';
    /**
Unique identifier of the business connection.
*/
    connection_id: string;
    /**
The new message.
*/
    message: BusinessMessage;
}
/**
A message in a business account was edited; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateBusinessMessageEdited {
    '@type': 'updateBusinessMessageEdited';
    /**
Unique identifier of the business connection.
*/
    connection_id: string;
    /**
The edited message.
*/
    message: BusinessMessage;
}
/**
Messages in a business account were deleted; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateBusinessMessagesDeleted {
    '@type': 'updateBusinessMessagesDeleted';
    /**
Unique identifier of the business connection.
*/
    connection_id: string;
    /**
Identifier of a chat in the business account in which messages were deleted.
*/
    chat_id: number;
    /**
Unique message identifiers of the deleted messages.
*/
    message_ids: number[];
}
/**
A new incoming inline query; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateNewInlineQuery {
    '@type': 'updateNewInlineQuery';
    /**
Unique query identifier.
*/
    id: string;
    /**
Identifier of the user who sent the query.
*/
    sender_user_id: number;
    /**
User location; may be null.
*/
    user_location: Location;
    /**
The type of the chat from which the query originated; may be null if unknown.
*/
    chat_type: ChatType;
    /**
Text of the query.
*/
    query: string;
    /**
Offset of the first entry to return.
*/
    offset: string;
}
/**
The user has chosen a result of an inline query; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateNewChosenInlineResult {
    '@type': 'updateNewChosenInlineResult';
    /**
Identifier of the user who sent the query.
*/
    sender_user_id: number;
    /**
User location; may be null.
*/
    user_location: Location;
    /**
Text of the query.
*/
    query: string;
    /**
Identifier of the chosen result.
*/
    result_id: string;
    /**
Identifier of the sent inline message, if known.
*/
    inline_message_id: string;
}
/**
A new incoming callback query; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateNewCallbackQuery {
    '@type': 'updateNewCallbackQuery';
    /**
Unique query identifier.
*/
    id: string;
    /**
Identifier of the user who sent the query.
*/
    sender_user_id: number;
    /**
Identifier of the chat where the query was sent.
*/
    chat_id: number;
    /**
Identifier of the message from which the query originated.
*/
    message_id: number;
    /**
Identifier that uniquely corresponds to the chat to which the message was sent.
*/
    chat_instance: string;
    /**
Query payload.
*/
    payload: CallbackQueryPayload;
}
/**
A new incoming callback query from a message sent via a bot; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateNewInlineCallbackQuery {
    '@type': 'updateNewInlineCallbackQuery';
    /**
Unique query identifier.
*/
    id: string;
    /**
Identifier of the user who sent the query.
*/
    sender_user_id: number;
    /**
Identifier of the inline message from which the query originated.
*/
    inline_message_id: string;
    /**
An identifier uniquely corresponding to the chat a message was sent to.
*/
    chat_instance: string;
    /**
Query payload.
*/
    payload: CallbackQueryPayload;
}
/**
A new incoming callback query from a business message; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateNewBusinessCallbackQuery {
    '@type': 'updateNewBusinessCallbackQuery';
    /**
Unique query identifier.
*/
    id: string;
    /**
Identifier of the user who sent the query.
*/
    sender_user_id: number;
    /**
Unique identifier of the business connection.
*/
    connection_id: string;
    /**
The message from the business account from which the query originated.
*/
    message: BusinessMessage;
    /**
An identifier uniquely corresponding to the chat a message was sent to.
*/
    chat_instance: string;
    /**
Query payload.
*/
    payload: CallbackQueryPayload;
}
/**
A new incoming shipping query; for bots only. Only for invoices with flexible price.
Subtype of {@link Update}.
*/
export interface UpdateNewShippingQuery {
    '@type': 'updateNewShippingQuery';
    /**
Unique query identifier.
*/
    id: string;
    /**
Identifier of the user who sent the query.
*/
    sender_user_id: number;
    /**
Invoice payload.
*/
    invoice_payload: string;
    /**
User shipping address.
*/
    shipping_address: Address;
}
/**
A new incoming pre-checkout query; for bots only. Contains full information about a checkout.
Subtype of {@link Update}.
*/
export interface UpdateNewPreCheckoutQuery {
    '@type': 'updateNewPreCheckoutQuery';
    /**
Unique query identifier.
*/
    id: string;
    /**
Identifier of the user who sent the query.
*/
    sender_user_id: number;
    /**
Currency for the product price.
*/
    currency: string;
    /**
Total price for the product, in the smallest units of the currency.
*/
    total_amount: number;
    /**
Invoice payload.
*/
    invoice_payload: string;
    /**
Identifier of a shipping option chosen by the user; may be empty if not applicable.
*/
    shipping_option_id: string;
    /**
Information about the order; may be null.
*/
    order_info: OrderInfo;
}
/**
A new incoming event; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateNewCustomEvent {
    '@type': 'updateNewCustomEvent';
    /**
A JSON-serialized event.
*/
    event: string;
}
/**
A new incoming query; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateNewCustomQuery {
    '@type': 'updateNewCustomQuery';
    /**
The query identifier.
*/
    id: string;
    /**
JSON-serialized query data.
*/
    data: string;
    /**
Query timeout.
*/
    timeout: number;
}
/**
A poll was updated; for bots only.
Subtype of {@link Update}.
*/
export interface UpdatePoll {
    '@type': 'updatePoll';
    /**
New data about the poll.
*/
    poll: Poll;
}
/**
A user changed the answer to a poll; for bots only.
Subtype of {@link Update}.
*/
export interface UpdatePollAnswer {
    '@type': 'updatePollAnswer';
    /**
Unique poll identifier.
*/
    poll_id: string;
    /**
Identifier of the message sender that changed the answer to the poll.
*/
    voter_id: MessageSender;
    /**
0-based identifiers of answer options, chosen by the user.
*/
    option_ids: number[];
}
/**
User rights changed in a chat; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateChatMember {
    '@type': 'updateChatMember';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the user, changing the rights.
*/
    actor_user_id: number;
    /**
Point in time (Unix timestamp) when the user rights were changed.
*/
    date: number;
    /**
If user has joined the chat using an invite link, the invite link; may be null.
*/
    invite_link: ChatInviteLink;
    /**
True, if the user has joined the chat after sending a join request and being approved by an administrator.
*/
    via_join_request?: boolean;
    /**
True, if the user has joined the chat using an invite link for a chat folder.
*/
    via_chat_folder_invite_link?: boolean;
    /**
Previous chat member.
*/
    old_chat_member: ChatMember;
    /**
New chat member.
*/
    new_chat_member: ChatMember;
}
/**
A user sent a join request to a chat; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateNewChatJoinRequest {
    '@type': 'updateNewChatJoinRequest';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Join request.
*/
    request: ChatJoinRequest;
    /**
Chat identifier of the private chat with the user.
*/
    user_chat_id: number;
    /**
The invite link, which was used to send join request; may be null.
*/
    invite_link: ChatInviteLink;
}
/**
A chat boost has changed; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateChatBoost {
    '@type': 'updateChatBoost';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New information about the boost.
*/
    boost: ChatBoost;
}
/**
User changed its reactions on a message with public reactions; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateMessageReaction {
    '@type': 'updateMessageReaction';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
Identifier of the user or chat that changed reactions.
*/
    actor_id: MessageSender;
    /**
Point in time (Unix timestamp) when the reactions were changed.
*/
    date: number;
    /**
Old list of chosen reactions.
*/
    old_reaction_types: ReactionType[];
    /**
New list of chosen reactions.
*/
    new_reaction_types: ReactionType[];
}
/**
Reactions added to a message with anonymous reactions have changed; for bots only.
Subtype of {@link Update}.
*/
export interface UpdateMessageReactions {
    '@type': 'updateMessageReactions';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
Point in time (Unix timestamp) when the reactions were changed.
*/
    date: number;
    /**
The list of reactions added to the message.
*/
    reactions: MessageReaction[];
}
/**
Paid media were purchased by a user; for bots only.
Subtype of {@link Update}.
*/
export interface UpdatePaidMediaPurchased {
    '@type': 'updatePaidMediaPurchased';
    /**
User identifier.
*/
    user_id: number;
    /**
Bot-specified payload for the paid media.
*/
    payload: string;
}
/**
Contains a list of updates.
*/
export interface Updates {
    '@type': 'updates';
    /**
List of updates.
*/
    updates: Update[];
}
/**
Describes a stream to which TDLib internal log is written.
Subtype of {@link LogStream}.
*/
export interface LogStreamDefault {
    '@type': 'logStreamDefault';
}
/**
The log is written to a file.
Subtype of {@link LogStream}.
*/
export interface LogStreamFile {
    '@type': 'logStreamFile';
    /**
Path to the file to where the internal TDLib log will be written.
*/
    path: string;
    /**
The maximum size of the file to where the internal TDLib log is written before the file will automatically be rotated,
in bytes.
*/
    max_file_size: number;
    /**
Pass true to additionally redirect stderr to the log file. Ignored on Windows.
*/
    redirect_stderr?: boolean;
}
/**
The log is written nowhere.
Subtype of {@link LogStream}.
*/
export interface LogStreamEmpty {
    '@type': 'logStreamEmpty';
}
/**
Contains a TDLib internal log verbosity level.
*/
export interface LogVerbosityLevel {
    '@type': 'logVerbosityLevel';
    /**
Log verbosity level.
*/
    verbosity_level: number;
}
/**
Contains a list of available TDLib internal log tags.
*/
export interface LogTags {
    '@type': 'logTags';
    /**
List of log tags.
*/
    tags: string[];
}
/**
Contains custom information about the user.
*/
export interface UserSupportInfo {
    '@type': 'userSupportInfo';
    /**
Information message.
*/
    message: FormattedText;
    /**
Information author.
*/
    author: string;
    /**
Information change date.
*/
    date: number;
}
/**
A simple object containing a number; for testing only.
*/
export interface TestInt {
    '@type': 'testInt';
    /**
Number.
*/
    value: number;
}
/**
A simple object containing a string; for testing only.
*/
export interface TestString {
    '@type': 'testString';
    /**
String.
*/
    value: string;
}
/**
A simple object containing a sequence of bytes; for testing only.
*/
export interface TestBytes {
    '@type': 'testBytes';
    /**
Bytes.
*/
    value: string;
}
/**
A simple object containing a vector of numbers; for testing only.
*/
export interface TestVectorInt {
    '@type': 'testVectorInt';
    /**
Vector of numbers.
*/
    value: number[];
}
/**
A simple object containing a vector of objects that hold a number; for testing only.
*/
export interface TestVectorIntObject {
    '@type': 'testVectorIntObject';
    /**
Vector of objects.
*/
    value: TestInt[];
}
/**
A simple object containing a vector of strings; for testing only.
*/
export interface TestVectorString {
    '@type': 'testVectorString';
    /**
Vector of strings.
*/
    value: string[];
}
/**
A simple object containing a vector of objects that hold a string; for testing only.
*/
export interface TestVectorStringObject {
    '@type': 'testVectorStringObject';
    /**
Vector of objects.
*/
    value: TestString[];
}
export type AuthenticationCodeType = AuthenticationCodeTypeTelegramMessage | AuthenticationCodeTypeSms | AuthenticationCodeTypeSmsWord | AuthenticationCodeTypeSmsPhrase | AuthenticationCodeTypeCall | AuthenticationCodeTypeFlashCall | AuthenticationCodeTypeMissedCall | AuthenticationCodeTypeFragment | AuthenticationCodeTypeFirebaseAndroid | AuthenticationCodeTypeFirebaseIos;
export type EmailAddressAuthentication = EmailAddressAuthenticationCode | EmailAddressAuthenticationAppleId | EmailAddressAuthenticationGoogleId;
export type EmailAddressResetState = EmailAddressResetStateAvailable | EmailAddressResetStatePending;
export type AuthorizationState = AuthorizationStateWaitTdlibParameters | AuthorizationStateWaitPhoneNumber | AuthorizationStateWaitEmailAddress | AuthorizationStateWaitEmailCode | AuthorizationStateWaitCode | AuthorizationStateWaitOtherDeviceConfirmation | AuthorizationStateWaitRegistration | AuthorizationStateWaitPassword | AuthorizationStateReady | AuthorizationStateLoggingOut | AuthorizationStateClosing | AuthorizationStateClosed;
export type FirebaseDeviceVerificationParameters = FirebaseDeviceVerificationParametersSafetyNet | FirebaseDeviceVerificationParametersPlayIntegrity;
export type InputFile = InputFileId | InputFileRemote | InputFileLocal | InputFileGenerated;
export type ThumbnailFormat = ThumbnailFormatJpeg | ThumbnailFormatGif | ThumbnailFormatMpeg4 | ThumbnailFormatPng | ThumbnailFormatTgs | ThumbnailFormatWebm | ThumbnailFormatWebp;
export type MaskPoint = MaskPointForehead | MaskPointEyes | MaskPointMouth | MaskPointChin;
export type StickerFormat = StickerFormatWebp | StickerFormatTgs | StickerFormatWebm;
export type StickerType = StickerTypeRegular | StickerTypeMask | StickerTypeCustomEmoji;
export type StickerFullType = StickerFullTypeRegular | StickerFullTypeMask | StickerFullTypeCustomEmoji;
export type PollType = PollTypeRegular | PollTypeQuiz;
export type UserType = UserTypeRegular | UserTypeDeleted | UserTypeBot | UserTypeUnknown;
export type BusinessAwayMessageSchedule = BusinessAwayMessageScheduleAlways | BusinessAwayMessageScheduleOutsideOfOpeningHours | BusinessAwayMessageScheduleCustom;
export type ChatPhotoStickerType = ChatPhotoStickerTypeRegularOrMask | ChatPhotoStickerTypeCustomEmoji;
export type InputChatPhoto = InputChatPhotoPrevious | InputChatPhotoStatic | InputChatPhotoAnimation | InputChatPhotoSticker;
export type StarSubscriptionType = StarSubscriptionTypeChannel | StarSubscriptionTypeBot;
export type AffiliateType = AffiliateTypeCurrentUser | AffiliateTypeBot | AffiliateTypeChannel;
export type AffiliateProgramSortOrder = AffiliateProgramSortOrderProfitability | AffiliateProgramSortOrderCreationDate | AffiliateProgramSortOrderRevenue;
export type SentGift = SentGiftRegular | SentGiftUpgraded;
export type StarTransactionDirection = StarTransactionDirectionIncoming | StarTransactionDirectionOutgoing;
export type StarTransactionType = StarTransactionTypePremiumBotDeposit | StarTransactionTypeAppStoreDeposit | StarTransactionTypeGooglePlayDeposit | StarTransactionTypeFragmentDeposit | StarTransactionTypeUserDeposit | StarTransactionTypeGiveawayDeposit | StarTransactionTypeFragmentWithdrawal | StarTransactionTypeTelegramAdsWithdrawal | StarTransactionTypeTelegramApiUsage | StarTransactionTypeBotPaidMediaPurchase | StarTransactionTypeBotPaidMediaSale | StarTransactionTypeChannelPaidMediaPurchase | StarTransactionTypeChannelPaidMediaSale | StarTransactionTypeBotInvoicePurchase | StarTransactionTypeBotInvoiceSale | StarTransactionTypeBotSubscriptionPurchase | StarTransactionTypeBotSubscriptionSale | StarTransactionTypeChannelSubscriptionPurchase | StarTransactionTypeChannelSubscriptionSale | StarTransactionTypeGiftPurchase | StarTransactionTypeGiftTransfer | StarTransactionTypeGiftSale | StarTransactionTypeGiftUpgrade | StarTransactionTypeChannelPaidReactionSend | StarTransactionTypeChannelPaidReactionReceive | StarTransactionTypeAffiliateProgramCommission | StarTransactionTypePaidMessageSend | StarTransactionTypePaidMessageReceive | StarTransactionTypePremiumPurchase | StarTransactionTypeUnsupported;
export type GiveawayParticipantStatus = GiveawayParticipantStatusEligible | GiveawayParticipantStatusParticipating | GiveawayParticipantStatusAlreadyWasMember | GiveawayParticipantStatusAdministrator | GiveawayParticipantStatusDisallowedCountry;
export type GiveawayInfo = GiveawayInfoOngoing | GiveawayInfoCompleted;
export type GiveawayPrize = GiveawayPrizePremium | GiveawayPrizeStars;
export type EmojiStatusType = EmojiStatusTypeCustomEmoji | EmojiStatusTypeUpgradedGift;
export type ChatMemberStatus = ChatMemberStatusCreator | ChatMemberStatusAdministrator | ChatMemberStatusMember | ChatMemberStatusRestricted | ChatMemberStatusLeft | ChatMemberStatusBanned;
export type ChatMembersFilter = ChatMembersFilterContacts | ChatMembersFilterAdministrators | ChatMembersFilterMembers | ChatMembersFilterMention | ChatMembersFilterRestricted | ChatMembersFilterBanned | ChatMembersFilterBots;
export type SupergroupMembersFilter = SupergroupMembersFilterRecent | SupergroupMembersFilterContacts | SupergroupMembersFilterAdministrators | SupergroupMembersFilterSearch | SupergroupMembersFilterRestricted | SupergroupMembersFilterBanned | SupergroupMembersFilterMention | SupergroupMembersFilterBots;
export type InviteLinkChatType = InviteLinkChatTypeBasicGroup | InviteLinkChatTypeSupergroup | InviteLinkChatTypeChannel;
export type SecretChatState = SecretChatStatePending | SecretChatStateReady | SecretChatStateClosed;
export type MessageSender = MessageSenderUser | MessageSenderChat;
export type MessageReadDate = MessageReadDateRead | MessageReadDateUnread | MessageReadDateTooOld | MessageReadDateUserPrivacyRestricted | MessageReadDateMyPrivacyRestricted;
export type MessageOrigin = MessageOriginUser | MessageOriginHiddenUser | MessageOriginChat | MessageOriginChannel;
export type ReactionType = ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid;
export type PaidReactionType = PaidReactionTypeRegular | PaidReactionTypeAnonymous | PaidReactionTypeChat;
export type MessageEffectType = MessageEffectTypeEmojiReaction | MessageEffectTypePremiumSticker;
export type MessageSendingState = MessageSendingStatePending | MessageSendingStateFailed;
export type MessageReplyTo = MessageReplyToMessage | MessageReplyToStory;
export type InputMessageReplyTo = InputMessageReplyToMessage | InputMessageReplyToExternalMessage | InputMessageReplyToStory;
export type MessageSource = MessageSourceChatHistory | MessageSourceMessageThreadHistory | MessageSourceForumTopicHistory | MessageSourceHistoryPreview | MessageSourceChatList | MessageSourceSearch | MessageSourceChatEventLog | MessageSourceNotification | MessageSourceScreenshot | MessageSourceOther;
export type ReportChatSponsoredMessageResult = ReportChatSponsoredMessageResultOk | ReportChatSponsoredMessageResultFailed | ReportChatSponsoredMessageResultOptionRequired | ReportChatSponsoredMessageResultAdsHidden | ReportChatSponsoredMessageResultPremiumRequired;
export type NotificationSettingsScope = NotificationSettingsScopePrivateChats | NotificationSettingsScopeGroupChats | NotificationSettingsScopeChannelChats;
export type ReactionNotificationSource = ReactionNotificationSourceNone | ReactionNotificationSourceContacts | ReactionNotificationSourceAll;
export type ChatType = ChatTypePrivate | ChatTypeBasicGroup | ChatTypeSupergroup | ChatTypeSecret;
export type ChatList = ChatListMain | ChatListArchive | ChatListFolder;
export type ChatSource = ChatSourceMtprotoProxy | ChatSourcePublicServiceAnnouncement;
export type ChatAvailableReactions = ChatAvailableReactionsAll | ChatAvailableReactionsSome;
export type PublicChatType = PublicChatTypeHasUsername | PublicChatTypeIsLocationBased;
export type ChatActionBar = ChatActionBarReportSpam | ChatActionBarInviteMembers | ChatActionBarReportAddBlock | ChatActionBarAddContact | ChatActionBarSharePhoneNumber | ChatActionBarJoinRequest;
export type KeyboardButtonType = KeyboardButtonTypeText | KeyboardButtonTypeRequestPhoneNumber | KeyboardButtonTypeRequestLocation | KeyboardButtonTypeRequestPoll | KeyboardButtonTypeRequestUsers | KeyboardButtonTypeRequestChat | KeyboardButtonTypeWebApp;
export type InlineKeyboardButtonType = InlineKeyboardButtonTypeUrl | InlineKeyboardButtonTypeLoginUrl | InlineKeyboardButtonTypeWebApp | InlineKeyboardButtonTypeCallback | InlineKeyboardButtonTypeCallbackWithPassword | InlineKeyboardButtonTypeCallbackGame | InlineKeyboardButtonTypeSwitchInline | InlineKeyboardButtonTypeBuy | InlineKeyboardButtonTypeUser | InlineKeyboardButtonTypeCopyText;
export type ReplyMarkup = ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | ReplyMarkupShowKeyboard | ReplyMarkupInlineKeyboard;
export type LoginUrlInfo = LoginUrlInfoOpen | LoginUrlInfoRequestConfirmation;
export type WebAppOpenMode = WebAppOpenModeCompact | WebAppOpenModeFullSize | WebAppOpenModeFullScreen;
export type SavedMessagesTopicType = SavedMessagesTopicTypeMyNotes | SavedMessagesTopicTypeAuthorHidden | SavedMessagesTopicTypeSavedFromChat;
export type RichText = RichTextPlain | RichTextBold | RichTextItalic | RichTextUnderline | RichTextStrikethrough | RichTextFixed | RichTextUrl | RichTextEmailAddress | RichTextSubscript | RichTextSuperscript | RichTextMarked | RichTextPhoneNumber | RichTextIcon | RichTextReference | RichTextAnchor | RichTextAnchorLink | RichTexts;
export type PageBlockHorizontalAlignment = PageBlockHorizontalAlignmentLeft | PageBlockHorizontalAlignmentCenter | PageBlockHorizontalAlignmentRight;
export type PageBlockVerticalAlignment = PageBlockVerticalAlignmentTop | PageBlockVerticalAlignmentMiddle | PageBlockVerticalAlignmentBottom;
export type PageBlock = PageBlockTitle | PageBlockSubtitle | PageBlockAuthorDate | PageBlockHeader | PageBlockSubheader | PageBlockKicker | PageBlockParagraph | PageBlockPreformatted | PageBlockFooter | PageBlockDivider | PageBlockAnchor | PageBlockList | PageBlockBlockQuote | PageBlockPullQuote | PageBlockAnimation | PageBlockAudio | PageBlockPhoto | PageBlockVideo | PageBlockVoiceNote | PageBlockCover | PageBlockEmbedded | PageBlockEmbeddedPost | PageBlockCollage | PageBlockSlideshow | PageBlockChatLink | PageBlockTable | PageBlockDetails | PageBlockRelatedArticles | PageBlockMap;
export type LinkPreviewAlbumMedia = LinkPreviewAlbumMediaPhoto | LinkPreviewAlbumMediaVideo;
export type LinkPreviewType = LinkPreviewTypeAlbum | LinkPreviewTypeAnimation | LinkPreviewTypeApp | LinkPreviewTypeArticle | LinkPreviewTypeAudio | LinkPreviewTypeBackground | LinkPreviewTypeChannelBoost | LinkPreviewTypeChat | LinkPreviewTypeDocument | LinkPreviewTypeEmbeddedAnimationPlayer | LinkPreviewTypeEmbeddedAudioPlayer | LinkPreviewTypeEmbeddedVideoPlayer | LinkPreviewTypeExternalAudio | LinkPreviewTypeExternalVideo | LinkPreviewTypeInvoice | LinkPreviewTypeMessage | LinkPreviewTypePhoto | LinkPreviewTypePremiumGiftCode | LinkPreviewTypeShareableChatFolder | LinkPreviewTypeSticker | LinkPreviewTypeStickerSet | LinkPreviewTypeStory | LinkPreviewTypeSupergroupBoost | LinkPreviewTypeTheme | LinkPreviewTypeUnsupported | LinkPreviewTypeUpgradedGift | LinkPreviewTypeUser | LinkPreviewTypeVideo | LinkPreviewTypeVideoChat | LinkPreviewTypeVideoNote | LinkPreviewTypeVoiceNote | LinkPreviewTypeWebApp;
export type CollectibleItemType = CollectibleItemTypeUsername | CollectibleItemTypePhoneNumber;
export type InputCredentials = InputCredentialsSaved | InputCredentialsNew | InputCredentialsApplePay | InputCredentialsGooglePay;
export type PaymentProvider = PaymentProviderSmartGlocal | PaymentProviderStripe | PaymentProviderOther;
export type PaymentFormType = PaymentFormTypeRegular | PaymentFormTypeStars | PaymentFormTypeStarSubscription;
export type PaymentReceiptType = PaymentReceiptTypeRegular | PaymentReceiptTypeStars;
export type InputInvoice = InputInvoiceMessage | InputInvoiceName | InputInvoiceTelegram;
export type PaidMedia = PaidMediaPreview | PaidMediaPhoto | PaidMediaVideo | PaidMediaUnsupported;
export type PassportElementType = PassportElementTypePersonalDetails | PassportElementTypePassport | PassportElementTypeDriverLicense | PassportElementTypeIdentityCard | PassportElementTypeInternalPassport | PassportElementTypeAddress | PassportElementTypeUtilityBill | PassportElementTypeBankStatement | PassportElementTypeRentalAgreement | PassportElementTypePassportRegistration | PassportElementTypeTemporaryRegistration | PassportElementTypePhoneNumber | PassportElementTypeEmailAddress;
export type PassportElement = PassportElementPersonalDetails | PassportElementPassport | PassportElementDriverLicense | PassportElementIdentityCard | PassportElementInternalPassport | PassportElementAddress | PassportElementUtilityBill | PassportElementBankStatement | PassportElementRentalAgreement | PassportElementPassportRegistration | PassportElementTemporaryRegistration | PassportElementPhoneNumber | PassportElementEmailAddress;
export type InputPassportElement = InputPassportElementPersonalDetails | InputPassportElementPassport | InputPassportElementDriverLicense | InputPassportElementIdentityCard | InputPassportElementInternalPassport | InputPassportElementAddress | InputPassportElementUtilityBill | InputPassportElementBankStatement | InputPassportElementRentalAgreement | InputPassportElementPassportRegistration | InputPassportElementTemporaryRegistration | InputPassportElementPhoneNumber | InputPassportElementEmailAddress;
export type PassportElementErrorSource = PassportElementErrorSourceUnspecified | PassportElementErrorSourceDataField | PassportElementErrorSourceFrontSide | PassportElementErrorSourceReverseSide | PassportElementErrorSourceSelfie | PassportElementErrorSourceTranslationFile | PassportElementErrorSourceTranslationFiles | PassportElementErrorSourceFile | PassportElementErrorSourceFiles;
export type InputPassportElementErrorSource = InputPassportElementErrorSourceUnspecified | InputPassportElementErrorSourceDataField | InputPassportElementErrorSourceFrontSide | InputPassportElementErrorSourceReverseSide | InputPassportElementErrorSourceSelfie | InputPassportElementErrorSourceTranslationFile | InputPassportElementErrorSourceTranslationFiles | InputPassportElementErrorSourceFile | InputPassportElementErrorSourceFiles;
export type MessageContent = MessageText | MessageAnimation | MessageAudio | MessageDocument | MessagePaidMedia | MessagePhoto | MessageSticker | MessageVideo | MessageVideoNote | MessageVoiceNote | MessageExpiredPhoto | MessageExpiredVideo | MessageExpiredVideoNote | MessageExpiredVoiceNote | MessageLocation | MessageVenue | MessageContact | MessageAnimatedEmoji | MessageDice | MessageGame | MessagePoll | MessageStory | MessageInvoice | MessageCall | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageInviteVideoChatParticipants | MessageBasicGroupChatCreate | MessageSupergroupChatCreate | MessageChatChangeTitle | MessageChatChangePhoto | MessageChatDeletePhoto | MessageChatAddMembers | MessageChatJoinByLink | MessageChatJoinByRequest | MessageChatDeleteMember | MessageChatUpgradeTo | MessageChatUpgradeFrom | MessagePinMessage | MessageScreenshotTaken | MessageChatSetBackground | MessageChatSetTheme | MessageChatSetMessageAutoDeleteTime | MessageChatBoost | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicIsClosedToggled | MessageForumTopicIsHiddenToggled | MessageSuggestProfilePhoto | MessageCustomServiceAction | MessageGameScore | MessagePaymentSuccessful | MessagePaymentSuccessfulBot | MessagePaymentRefunded | MessageGiftedPremium | MessagePremiumGiftCode | MessageGiveawayCreated | MessageGiveaway | MessageGiveawayCompleted | MessageGiveawayWinners | MessageGiftedStars | MessageGiveawayPrizeStars | MessageGift | MessageUpgradedGift | MessageRefundedUpgradedGift | MessageContactRegistered | MessageUsersShared | MessageChatShared | MessageBotWriteAccessAllowed | MessageWebAppDataSent | MessageWebAppDataReceived | MessagePassportDataSent | MessagePassportDataReceived | MessageProximityAlertTriggered | MessageUnsupported;
export type TextEntityType = TextEntityTypeMention | TextEntityTypeHashtag | TextEntityTypeCashtag | TextEntityTypeBotCommand | TextEntityTypeUrl | TextEntityTypeEmailAddress | TextEntityTypePhoneNumber | TextEntityTypeBankCardNumber | TextEntityTypeBold | TextEntityTypeItalic | TextEntityTypeUnderline | TextEntityTypeStrikethrough | TextEntityTypeSpoiler | TextEntityTypeCode | TextEntityTypePre | TextEntityTypePreCode | TextEntityTypeBlockQuote | TextEntityTypeExpandableBlockQuote | TextEntityTypeTextUrl | TextEntityTypeMentionName | TextEntityTypeCustomEmoji | TextEntityTypeMediaTimestamp;
export type InputPaidMediaType = InputPaidMediaTypePhoto | InputPaidMediaTypeVideo;
export type MessageSchedulingState = MessageSchedulingStateSendAtDate | MessageSchedulingStateSendWhenOnline | MessageSchedulingStateSendWhenVideoProcessed;
export type MessageSelfDestructType = MessageSelfDestructTypeTimer | MessageSelfDestructTypeImmediately;
export type InputMessageContent = InputMessageText | InputMessageAnimation | InputMessageAudio | InputMessageDocument | InputMessagePaidMedia | InputMessagePhoto | InputMessageSticker | InputMessageVideo | InputMessageVideoNote | InputMessageVoiceNote | InputMessageLocation | InputMessageVenue | InputMessageContact | InputMessageDice | InputMessageGame | InputMessageInvoice | InputMessagePoll | InputMessageStory | InputMessageForwarded;
export type SearchMessagesFilter = SearchMessagesFilterEmpty | SearchMessagesFilterAnimation | SearchMessagesFilterAudio | SearchMessagesFilterDocument | SearchMessagesFilterPhoto | SearchMessagesFilterVideo | SearchMessagesFilterVoiceNote | SearchMessagesFilterPhotoAndVideo | SearchMessagesFilterUrl | SearchMessagesFilterChatPhoto | SearchMessagesFilterVideoNote | SearchMessagesFilterVoiceAndVideoNote | SearchMessagesFilterMention | SearchMessagesFilterUnreadMention | SearchMessagesFilterUnreadReaction | SearchMessagesFilterFailedToSend | SearchMessagesFilterPinned;
export type SearchMessagesChatTypeFilter = SearchMessagesChatTypeFilterPrivate | SearchMessagesChatTypeFilterGroup | SearchMessagesChatTypeFilterChannel;
export type ChatAction = ChatActionTyping | ChatActionRecordingVideo | ChatActionUploadingVideo | ChatActionRecordingVoiceNote | ChatActionUploadingVoiceNote | ChatActionUploadingPhoto | ChatActionUploadingDocument | ChatActionChoosingSticker | ChatActionChoosingLocation | ChatActionChoosingContact | ChatActionStartPlayingGame | ChatActionRecordingVideoNote | ChatActionUploadingVideoNote | ChatActionWatchingAnimations | ChatActionCancel;
export type UserStatus = UserStatusEmpty | UserStatusOnline | UserStatusOffline | UserStatusRecently | UserStatusLastWeek | UserStatusLastMonth;
export type EmojiCategorySource = EmojiCategorySourceSearch | EmojiCategorySourcePremium;
export type EmojiCategoryType = EmojiCategoryTypeDefault | EmojiCategoryTypeRegularStickers | EmojiCategoryTypeEmojiStatus | EmojiCategoryTypeChatPhoto;
export type StoryAreaType = StoryAreaTypeLocation | StoryAreaTypeVenue | StoryAreaTypeSuggestedReaction | StoryAreaTypeMessage | StoryAreaTypeLink | StoryAreaTypeWeather | StoryAreaTypeUpgradedGift;
export type InputStoryAreaType = InputStoryAreaTypeLocation | InputStoryAreaTypeFoundVenue | InputStoryAreaTypePreviousVenue | InputStoryAreaTypeSuggestedReaction | InputStoryAreaTypeMessage | InputStoryAreaTypeLink | InputStoryAreaTypeWeather | InputStoryAreaTypeUpgradedGift;
export type StoryContent = StoryContentPhoto | StoryContentVideo | StoryContentUnsupported;
export type InputStoryContent = InputStoryContentPhoto | InputStoryContentVideo;
export type StoryList = StoryListMain | StoryListArchive;
export type StoryOrigin = StoryOriginPublicStory | StoryOriginHiddenUser;
export type StoryInteractionType = StoryInteractionTypeView | StoryInteractionTypeForward | StoryInteractionTypeRepost;
export type PublicForward = PublicForwardMessage | PublicForwardStory;
export type ChatBoostSource = ChatBoostSourceGiftCode | ChatBoostSourceGiveaway | ChatBoostSourcePremium;
export type ResendCodeReason = ResendCodeReasonUserRequest | ResendCodeReasonVerificationFailed;
export type CallDiscardReason = CallDiscardReasonEmpty | CallDiscardReasonMissed | CallDiscardReasonDeclined | CallDiscardReasonDisconnected | CallDiscardReasonHungUp | CallDiscardReasonAllowGroupCall;
export type CallServerType = CallServerTypeTelegramReflector | CallServerTypeWebrtc;
export type CallState = CallStatePending | CallStateExchangingKeys | CallStateReady | CallStateHangingUp | CallStateDiscarded | CallStateError;
export type GroupCallVideoQuality = GroupCallVideoQualityThumbnail | GroupCallVideoQualityMedium | GroupCallVideoQualityFull;
export type CallProblem = CallProblemEcho | CallProblemNoise | CallProblemInterruptions | CallProblemDistortedSpeech | CallProblemSilentLocal | CallProblemSilentRemote | CallProblemDropped | CallProblemDistortedVideo | CallProblemPixelatedVideo;
export type FirebaseAuthenticationSettings = FirebaseAuthenticationSettingsAndroid | FirebaseAuthenticationSettingsIos;
export type ReactionUnavailabilityReason = ReactionUnavailabilityReasonAnonymousAdministrator | ReactionUnavailabilityReasonGuest;
export type DiceStickers = DiceStickersRegular | DiceStickersSlotMachine;
export type SpeechRecognitionResult = SpeechRecognitionResultPending | SpeechRecognitionResultText | SpeechRecognitionResultError;
export type BotWriteAccessAllowReason = BotWriteAccessAllowReasonConnectedWebsite | BotWriteAccessAllowReasonAddedToAttachmentMenu | BotWriteAccessAllowReasonLaunchedWebApp | BotWriteAccessAllowReasonAcceptedRequest;
export type TargetChat = TargetChatCurrent | TargetChatChosen | TargetChatInternalLink;
export type InputInlineQueryResult = InputInlineQueryResultAnimation | InputInlineQueryResultArticle | InputInlineQueryResultAudio | InputInlineQueryResultContact | InputInlineQueryResultDocument | InputInlineQueryResultGame | InputInlineQueryResultLocation | InputInlineQueryResultPhoto | InputInlineQueryResultSticker | InputInlineQueryResultVenue | InputInlineQueryResultVideo | InputInlineQueryResultVoiceNote;
export type InlineQueryResult = InlineQueryResultArticle | InlineQueryResultContact | InlineQueryResultLocation | InlineQueryResultVenue | InlineQueryResultGame | InlineQueryResultAnimation | InlineQueryResultAudio | InlineQueryResultDocument | InlineQueryResultPhoto | InlineQueryResultSticker | InlineQueryResultVideo | InlineQueryResultVoiceNote;
export type InlineQueryResultsButtonType = InlineQueryResultsButtonTypeStartBot | InlineQueryResultsButtonTypeWebApp;
export type CallbackQueryPayload = CallbackQueryPayloadData | CallbackQueryPayloadDataWithPassword | CallbackQueryPayloadGame;
export type ChatEventAction = ChatEventMessageEdited | ChatEventMessageDeleted | ChatEventMessagePinned | ChatEventMessageUnpinned | ChatEventPollStopped | ChatEventMemberJoined | ChatEventMemberJoinedByInviteLink | ChatEventMemberJoinedByRequest | ChatEventMemberInvited | ChatEventMemberLeft | ChatEventMemberPromoted | ChatEventMemberRestricted | ChatEventMemberSubscriptionExtended | ChatEventAvailableReactionsChanged | ChatEventBackgroundChanged | ChatEventDescriptionChanged | ChatEventEmojiStatusChanged | ChatEventLinkedChatChanged | ChatEventLocationChanged | ChatEventMessageAutoDeleteTimeChanged | ChatEventPermissionsChanged | ChatEventPhotoChanged | ChatEventSlowModeDelayChanged | ChatEventStickerSetChanged | ChatEventCustomEmojiStickerSetChanged | ChatEventTitleChanged | ChatEventUsernameChanged | ChatEventActiveUsernamesChanged | ChatEventAccentColorChanged | ChatEventProfileAccentColorChanged | ChatEventHasProtectedContentToggled | ChatEventInvitesToggled | ChatEventIsAllHistoryAvailableToggled | ChatEventHasAggressiveAntiSpamEnabledToggled | ChatEventSignMessagesToggled | ChatEventShowMessageSenderToggled | ChatEventInviteLinkEdited | ChatEventInviteLinkRevoked | ChatEventInviteLinkDeleted | ChatEventVideoChatCreated | ChatEventVideoChatEnded | ChatEventVideoChatMuteNewParticipantsToggled | ChatEventVideoChatParticipantIsMutedToggled | ChatEventVideoChatParticipantVolumeLevelChanged | ChatEventIsForumToggled | ChatEventForumTopicCreated | ChatEventForumTopicEdited | ChatEventForumTopicToggleIsClosed | ChatEventForumTopicToggleIsHidden | ChatEventForumTopicDeleted | ChatEventForumTopicPinned;
export type LanguagePackStringValue = LanguagePackStringValueOrdinary | LanguagePackStringValuePluralized | LanguagePackStringValueDeleted;
export type PremiumLimitType = PremiumLimitTypeSupergroupCount | PremiumLimitTypePinnedChatCount | PremiumLimitTypeCreatedPublicChatCount | PremiumLimitTypeSavedAnimationCount | PremiumLimitTypeFavoriteStickerCount | PremiumLimitTypeChatFolderCount | PremiumLimitTypeChatFolderChosenChatCount | PremiumLimitTypePinnedArchivedChatCount | PremiumLimitTypePinnedSavedMessagesTopicCount | PremiumLimitTypeCaptionLength | PremiumLimitTypeBioLength | PremiumLimitTypeChatFolderInviteLinkCount | PremiumLimitTypeShareableChatFolderCount | PremiumLimitTypeActiveStoryCount | PremiumLimitTypeWeeklySentStoryCount | PremiumLimitTypeMonthlySentStoryCount | PremiumLimitTypeStoryCaptionLength | PremiumLimitTypeStorySuggestedReactionAreaCount | PremiumLimitTypeSimilarChatCount;
export type PremiumFeature = PremiumFeatureIncreasedLimits | PremiumFeatureIncreasedUploadFileSize | PremiumFeatureImprovedDownloadSpeed | PremiumFeatureVoiceRecognition | PremiumFeatureDisabledAds | PremiumFeatureUniqueReactions | PremiumFeatureUniqueStickers | PremiumFeatureCustomEmoji | PremiumFeatureAdvancedChatManagement | PremiumFeatureProfileBadge | PremiumFeatureEmojiStatus | PremiumFeatureAnimatedProfilePhoto | PremiumFeatureForumTopicIcon | PremiumFeatureAppIcons | PremiumFeatureRealTimeChatTranslation | PremiumFeatureUpgradedStories | PremiumFeatureChatBoost | PremiumFeatureAccentColor | PremiumFeatureBackgroundForBoth | PremiumFeatureSavedMessagesTags | PremiumFeatureMessagePrivacy | PremiumFeatureLastSeenTimes | PremiumFeatureBusiness | PremiumFeatureMessageEffects;
export type BusinessFeature = BusinessFeatureLocation | BusinessFeatureOpeningHours | BusinessFeatureQuickReplies | BusinessFeatureGreetingMessage | BusinessFeatureAwayMessage | BusinessFeatureAccountLinks | BusinessFeatureStartPage | BusinessFeatureBots | BusinessFeatureEmojiStatus | BusinessFeatureChatFolderTags | BusinessFeatureUpgradedStories;
export type PremiumStoryFeature = PremiumStoryFeaturePriorityOrder | PremiumStoryFeatureStealthMode | PremiumStoryFeaturePermanentViewsHistory | PremiumStoryFeatureCustomExpirationDuration | PremiumStoryFeatureSaveStories | PremiumStoryFeatureLinksAndFormatting | PremiumStoryFeatureVideoQuality;
export type PremiumSource = PremiumSourceLimitExceeded | PremiumSourceFeature | PremiumSourceBusinessFeature | PremiumSourceStoryFeature | PremiumSourceLink | PremiumSourceSettings;
export type StorePaymentPurpose = StorePaymentPurposePremiumSubscription | StorePaymentPurposePremiumGift | StorePaymentPurposePremiumGiftCodes | StorePaymentPurposePremiumGiveaway | StorePaymentPurposeStarGiveaway | StorePaymentPurposeStars | StorePaymentPurposeGiftedStars;
export type TelegramPaymentPurpose = TelegramPaymentPurposePremiumGift | TelegramPaymentPurposePremiumGiftCodes | TelegramPaymentPurposePremiumGiveaway | TelegramPaymentPurposeStars | TelegramPaymentPurposeGiftedStars | TelegramPaymentPurposeStarGiveaway | TelegramPaymentPurposeJoinChat;
export type DeviceToken = DeviceTokenFirebaseCloudMessaging | DeviceTokenApplePush | DeviceTokenApplePushVoIp | DeviceTokenWindowsPush | DeviceTokenMicrosoftPush | DeviceTokenMicrosoftPushVoIp | DeviceTokenWebPush | DeviceTokenSimplePush | DeviceTokenUbuntuPush | DeviceTokenBlackBerryPush | DeviceTokenTizenPush | DeviceTokenHuaweiPush;
export type BackgroundFill = BackgroundFillSolid | BackgroundFillGradient | BackgroundFillFreeformGradient;
export type BackgroundType = BackgroundTypeWallpaper | BackgroundTypePattern | BackgroundTypeFill | BackgroundTypeChatTheme;
export type InputBackground = InputBackgroundLocal | InputBackgroundRemote | InputBackgroundPrevious;
export type CanSendStoryResult = CanSendStoryResultOk | CanSendStoryResultPremiumNeeded | CanSendStoryResultBoostNeeded | CanSendStoryResultActiveStoryLimitExceeded | CanSendStoryResultWeeklyLimitExceeded | CanSendStoryResultMonthlyLimitExceeded;
export type CanTransferOwnershipResult = CanTransferOwnershipResultOk | CanTransferOwnershipResultPasswordNeeded | CanTransferOwnershipResultPasswordTooFresh | CanTransferOwnershipResultSessionTooFresh;
export type CheckChatUsernameResult = CheckChatUsernameResultOk | CheckChatUsernameResultUsernameInvalid | CheckChatUsernameResultUsernameOccupied | CheckChatUsernameResultUsernamePurchasable | CheckChatUsernameResultPublicChatsTooMany | CheckChatUsernameResultPublicGroupsUnavailable;
export type CheckStickerSetNameResult = CheckStickerSetNameResultOk | CheckStickerSetNameResultNameInvalid | CheckStickerSetNameResultNameOccupied;
export type ResetPasswordResult = ResetPasswordResultOk | ResetPasswordResultPending | ResetPasswordResultDeclined;
export type MessageFileType = MessageFileTypePrivate | MessageFileTypeGroup | MessageFileTypeUnknown;
export type PushMessageContent = PushMessageContentHidden | PushMessageContentAnimation | PushMessageContentAudio | PushMessageContentContact | PushMessageContentContactRegistered | PushMessageContentDocument | PushMessageContentGame | PushMessageContentGameScore | PushMessageContentInvoice | PushMessageContentLocation | PushMessageContentPaidMedia | PushMessageContentPhoto | PushMessageContentPoll | PushMessageContentPremiumGiftCode | PushMessageContentGiveaway | PushMessageContentGift | PushMessageContentUpgradedGift | PushMessageContentScreenshotTaken | PushMessageContentSticker | PushMessageContentStory | PushMessageContentText | PushMessageContentVideo | PushMessageContentVideoNote | PushMessageContentVoiceNote | PushMessageContentBasicGroupChatCreate | PushMessageContentVideoChatStarted | PushMessageContentVideoChatEnded | PushMessageContentInviteVideoChatParticipants | PushMessageContentChatAddMembers | PushMessageContentChatChangePhoto | PushMessageContentChatChangeTitle | PushMessageContentChatSetBackground | PushMessageContentChatSetTheme | PushMessageContentChatDeleteMember | PushMessageContentChatJoinByLink | PushMessageContentChatJoinByRequest | PushMessageContentRecurringPayment | PushMessageContentSuggestProfilePhoto | PushMessageContentProximityAlertTriggered | PushMessageContentMessageForwards | PushMessageContentMediaAlbum;
export type NotificationType = NotificationTypeNewMessage | NotificationTypeNewSecretChat | NotificationTypeNewCall | NotificationTypeNewPushMessage;
export type NotificationGroupType = NotificationGroupTypeMessages | NotificationGroupTypeMentions | NotificationGroupTypeSecretChat | NotificationGroupTypeCalls;
export type OptionValue = OptionValueBoolean | OptionValueEmpty | OptionValueInteger | OptionValueString;
export type JsonValue = JsonValueNull | JsonValueBoolean | JsonValueNumber | JsonValueString | JsonValueArray | JsonValueObject;
export type StoryPrivacySettings = StoryPrivacySettingsEveryone | StoryPrivacySettingsContacts | StoryPrivacySettingsCloseFriends | StoryPrivacySettingsSelectedUsers;
export type UserPrivacySettingRule = UserPrivacySettingRuleAllowAll | UserPrivacySettingRuleAllowContacts | UserPrivacySettingRuleAllowBots | UserPrivacySettingRuleAllowPremiumUsers | UserPrivacySettingRuleAllowUsers | UserPrivacySettingRuleAllowChatMembers | UserPrivacySettingRuleRestrictAll | UserPrivacySettingRuleRestrictContacts | UserPrivacySettingRuleRestrictBots | UserPrivacySettingRuleRestrictUsers | UserPrivacySettingRuleRestrictChatMembers;
export type UserPrivacySetting = UserPrivacySettingShowStatus | UserPrivacySettingShowProfilePhoto | UserPrivacySettingShowLinkInForwardedMessages | UserPrivacySettingShowPhoneNumber | UserPrivacySettingShowBio | UserPrivacySettingShowBirthdate | UserPrivacySettingAllowChatInvites | UserPrivacySettingAllowCalls | UserPrivacySettingAllowPeerToPeerCalls | UserPrivacySettingAllowFindingByPhoneNumber | UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages | UserPrivacySettingAutosaveGifts | UserPrivacySettingAllowUnpaidMessages;
export type CanSendMessageToUserResult = CanSendMessageToUserResultOk | CanSendMessageToUserResultUserHasPaidMessages | CanSendMessageToUserResultUserIsDeleted | CanSendMessageToUserResultUserRestrictsNewChats;
export type SessionType = SessionTypeAndroid | SessionTypeApple | SessionTypeBrave | SessionTypeChrome | SessionTypeEdge | SessionTypeFirefox | SessionTypeIpad | SessionTypeIphone | SessionTypeLinux | SessionTypeMac | SessionTypeOpera | SessionTypeSafari | SessionTypeUbuntu | SessionTypeUnknown | SessionTypeVivaldi | SessionTypeWindows | SessionTypeXbox;
export type ReportReason = ReportReasonSpam | ReportReasonViolence | ReportReasonPornography | ReportReasonChildAbuse | ReportReasonCopyright | ReportReasonUnrelatedLocation | ReportReasonFake | ReportReasonIllegalDrugs | ReportReasonPersonalDetails | ReportReasonCustom;
export type ReportChatResult = ReportChatResultOk | ReportChatResultOptionRequired | ReportChatResultTextRequired | ReportChatResultMessagesRequired;
export type ReportStoryResult = ReportStoryResultOk | ReportStoryResultOptionRequired | ReportStoryResultTextRequired;
export type InternalLinkType = InternalLinkTypeActiveSessions | InternalLinkTypeAttachmentMenuBot | InternalLinkTypeAuthenticationCode | InternalLinkTypeBackground | InternalLinkTypeBotAddToChannel | InternalLinkTypeBotStart | InternalLinkTypeBotStartInGroup | InternalLinkTypeBusinessChat | InternalLinkTypeBuyStars | InternalLinkTypeChangePhoneNumber | InternalLinkTypeChatAffiliateProgram | InternalLinkTypeChatBoost | InternalLinkTypeChatFolderInvite | InternalLinkTypeChatFolderSettings | InternalLinkTypeChatInvite | InternalLinkTypeDefaultMessageAutoDeleteTimerSettings | InternalLinkTypeEditProfileSettings | InternalLinkTypeGame | InternalLinkTypeInstantView | InternalLinkTypeInvoice | InternalLinkTypeLanguagePack | InternalLinkTypeLanguageSettings | InternalLinkTypeMainWebApp | InternalLinkTypeMessage | InternalLinkTypeMessageDraft | InternalLinkTypePassportDataRequest | InternalLinkTypePhoneNumberConfirmation | InternalLinkTypePremiumFeatures | InternalLinkTypePremiumGift | InternalLinkTypePremiumGiftCode | InternalLinkTypePrivacyAndSecuritySettings | InternalLinkTypeProxy | InternalLinkTypePublicChat | InternalLinkTypeQrCodeAuthentication | InternalLinkTypeRestorePurchases | InternalLinkTypeSettings | InternalLinkTypeStickerSet | InternalLinkTypeStory | InternalLinkTypeTheme | InternalLinkTypeThemeSettings | InternalLinkTypeUnknownDeepLink | InternalLinkTypeUnsupportedProxy | InternalLinkTypeUpgradedGift | InternalLinkTypeUserPhoneNumber | InternalLinkTypeUserToken | InternalLinkTypeVideoChat | InternalLinkTypeWebApp;
export type BlockList = BlockListMain | BlockListStories;
export type FileType = FileTypeNone | FileTypeAnimation | FileTypeAudio | FileTypeDocument | FileTypeNotificationSound | FileTypePhoto | FileTypePhotoStory | FileTypeProfilePhoto | FileTypeSecret | FileTypeSecretThumbnail | FileTypeSecure | FileTypeSelfDestructingPhoto | FileTypeSelfDestructingVideo | FileTypeSelfDestructingVideoNote | FileTypeSelfDestructingVoiceNote | FileTypeSticker | FileTypeThumbnail | FileTypeUnknown | FileTypeVideo | FileTypeVideoNote | FileTypeVideoStory | FileTypeVoiceNote | FileTypeWallpaper;
export type NetworkType = NetworkTypeNone | NetworkTypeMobile | NetworkTypeMobileRoaming | NetworkTypeWiFi | NetworkTypeOther;
export type NetworkStatisticsEntry = NetworkStatisticsEntryFile | NetworkStatisticsEntryCall;
export type AutosaveSettingsScope = AutosaveSettingsScopePrivateChats | AutosaveSettingsScopeGroupChats | AutosaveSettingsScopeChannelChats | AutosaveSettingsScopeChat;
export type ConnectionState = ConnectionStateWaitingForNetwork | ConnectionStateConnectingToProxy | ConnectionStateConnecting | ConnectionStateUpdating | ConnectionStateReady;
export type TopChatCategory = TopChatCategoryUsers | TopChatCategoryBots | TopChatCategoryGroups | TopChatCategoryChannels | TopChatCategoryInlineBots | TopChatCategoryWebAppBots | TopChatCategoryCalls | TopChatCategoryForwardChats;
export type TMeUrlType = TMeUrlTypeUser | TMeUrlTypeSupergroup | TMeUrlTypeChatInvite | TMeUrlTypeStickerSet;
export type SuggestedAction = SuggestedActionEnableArchiveAndMuteNewChats | SuggestedActionCheckPassword | SuggestedActionCheckPhoneNumber | SuggestedActionViewChecksHint | SuggestedActionConvertToBroadcastGroup | SuggestedActionSetPassword | SuggestedActionUpgradePremium | SuggestedActionRestorePremium | SuggestedActionSubscribeToAnnualPremium | SuggestedActionGiftPremiumForChristmas | SuggestedActionSetBirthdate | SuggestedActionSetProfilePhoto | SuggestedActionExtendPremium | SuggestedActionExtendStarSubscriptions;
export type TextParseMode = TextParseModeMarkdown | TextParseModeHtml;
export type ProxyType = ProxyTypeSocks5 | ProxyTypeHttp | ProxyTypeMtproto;
export type StatisticalGraph = StatisticalGraphData | StatisticalGraphAsync | StatisticalGraphError;
export type ChatStatisticsObjectType = ChatStatisticsObjectTypeMessage | ChatStatisticsObjectTypeStory;
export type ChatStatistics = ChatStatisticsSupergroup | ChatStatisticsChannel;
export type RevenueWithdrawalState = RevenueWithdrawalStatePending | RevenueWithdrawalStateSucceeded | RevenueWithdrawalStateFailed;
export type ChatRevenueTransactionType = ChatRevenueTransactionTypeEarnings | ChatRevenueTransactionTypeWithdrawal | ChatRevenueTransactionTypeRefund;
export type VectorPathCommand = VectorPathCommandLine | VectorPathCommandCubicBezierCurve;
export type BotCommandScope = BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember;
export type PhoneNumberCodeType = PhoneNumberCodeTypeChange | PhoneNumberCodeTypeVerify | PhoneNumberCodeTypeConfirmOwnership;
export type Update = UpdateAuthorizationState | UpdateNewMessage | UpdateMessageSendAcknowledged | UpdateMessageSendSucceeded | UpdateMessageSendFailed | UpdateMessageContent | UpdateMessageEdited | UpdateMessageIsPinned | UpdateMessageInteractionInfo | UpdateMessageContentOpened | UpdateMessageMentionRead | UpdateMessageUnreadReactions | UpdateMessageFactCheck | UpdateMessageLiveLocationViewed | UpdateVideoPublished | UpdateNewChat | UpdateChatTitle | UpdateChatPhoto | UpdateChatAccentColors | UpdateChatPermissions | UpdateChatLastMessage | UpdateChatPosition | UpdateChatAddedToList | UpdateChatRemovedFromList | UpdateChatReadInbox | UpdateChatReadOutbox | UpdateChatActionBar | UpdateChatBusinessBotManageBar | UpdateChatAvailableReactions | UpdateChatDraftMessage | UpdateChatEmojiStatus | UpdateChatMessageSender | UpdateChatMessageAutoDeleteTime | UpdateChatNotificationSettings | UpdateChatPendingJoinRequests | UpdateChatReplyMarkup | UpdateChatBackground | UpdateChatTheme | UpdateChatUnreadMentionCount | UpdateChatUnreadReactionCount | UpdateChatVideoChat | UpdateChatDefaultDisableNotification | UpdateChatHasProtectedContent | UpdateChatIsTranslatable | UpdateChatIsMarkedAsUnread | UpdateChatViewAsTopics | UpdateChatBlockList | UpdateChatHasScheduledMessages | UpdateChatFolders | UpdateChatOnlineMemberCount | UpdateSavedMessagesTopic | UpdateSavedMessagesTopicCount | UpdateQuickReplyShortcut | UpdateQuickReplyShortcutDeleted | UpdateQuickReplyShortcuts | UpdateQuickReplyShortcutMessages | UpdateForumTopicInfo | UpdateScopeNotificationSettings | UpdateReactionNotificationSettings | UpdateNotification | UpdateNotificationGroup | UpdateActiveNotifications | UpdateHavePendingNotifications | UpdateDeleteMessages | UpdateChatAction | UpdateUserStatus | UpdateUser | UpdateBasicGroup | UpdateSupergroup | UpdateSecretChat | UpdateUserFullInfo | UpdateBasicGroupFullInfo | UpdateSupergroupFullInfo | UpdateServiceNotification | UpdateFile | UpdateFileGenerationStart | UpdateFileGenerationStop | UpdateFileDownloads | UpdateFileAddedToDownloads | UpdateFileDownload | UpdateFileRemovedFromDownloads | UpdateAppVerificationRequired | UpdateAppRecaptchaVerificationRequired | UpdateCall | UpdateGroupCall | UpdateGroupCallParticipant | UpdateNewCallSignalingData | UpdateUserPrivacySettingRules | UpdateUnreadMessageCount | UpdateUnreadChatCount | UpdateStory | UpdateStoryDeleted | UpdateStorySendSucceeded | UpdateStorySendFailed | UpdateChatActiveStories | UpdateStoryListChatCount | UpdateStoryStealthMode | UpdateOption | UpdateStickerSet | UpdateInstalledStickerSets | UpdateTrendingStickerSets | UpdateRecentStickers | UpdateFavoriteStickers | UpdateSavedAnimations | UpdateSavedNotificationSounds | UpdateDefaultBackground | UpdateChatThemes | UpdateAccentColors | UpdateProfileAccentColors | UpdateLanguagePackStrings | UpdateConnectionState | UpdateTermsOfService | UpdateUnconfirmedSession | UpdateAttachmentMenuBots | UpdateWebAppMessageSent | UpdateActiveEmojiReactions | UpdateAvailableMessageEffects | UpdateDefaultReactionType | UpdateDefaultPaidReactionType | UpdateSavedMessagesTags | UpdateActiveLiveLocationMessages | UpdateOwnedStarCount | UpdateChatRevenueAmount | UpdateStarRevenueStatus | UpdateSpeechRecognitionTrial | UpdateDiceEmojis | UpdateAnimatedEmojiMessageClicked | UpdateAnimationSearchParameters | UpdateSuggestedActions | UpdateSpeedLimitNotification | UpdateContactCloseBirthdays | UpdateAutosaveSettings | UpdateBusinessConnection | UpdateNewBusinessMessage | UpdateBusinessMessageEdited | UpdateBusinessMessagesDeleted | UpdateNewInlineQuery | UpdateNewChosenInlineResult | UpdateNewCallbackQuery | UpdateNewInlineCallbackQuery | UpdateNewBusinessCallbackQuery | UpdateNewShippingQuery | UpdateNewPreCheckoutQuery | UpdateNewCustomEvent | UpdateNewCustomQuery | UpdatePoll | UpdatePollAnswer | UpdateChatMember | UpdateNewChatJoinRequest | UpdateChatBoost | UpdateMessageReaction | UpdateMessageReactions | UpdatePaidMediaPurchased;
export type LogStream = LogStreamDefault | LogStreamFile | LogStreamEmpty;
/**
Returns the current authorization state; this is an offline request. For informational purposes only. Use
updateAuthorizationState instead to maintain the current authorization state. Can be called before initialization.
Request type for {@link Tdjson#getAuthorizationState}.
*/
export interface GetAuthorizationState {
    '@type': 'getAuthorizationState';
}
/**
Sets the parameters for TDLib initialization. Works only when the current authorization state is
authorizationStateWaitTdlibParameters.
Request type for {@link Tdjson#setTdlibParameters}.
*/
export interface SetTdlibParameters {
    '@type': 'setTdlibParameters';
    /**
Pass true to use Telegram test environment instead of the production environment.
*/
    use_test_dc?: boolean;
    /**
The path to the directory for the persistent database; if empty, the current working directory will be used.
*/
    database_directory: string;
    /**
The path to the directory for storing files; if empty, database_directory will be used.
*/
    files_directory: string;
    /**
Encryption key for the database. If the encryption key is invalid, then an error with code 401 will be returned.
*/
    database_encryption_key: string;
    /**
Pass true to keep information about downloaded and uploaded files between application restarts.
*/
    use_file_database?: boolean;
    /**
Pass true to keep cache of users, basic groups, supergroups, channels and secret chats between restarts. Implies
use_file_database.
*/
    use_chat_info_database?: boolean;
    /**
Pass true to keep cache of chats and messages between restarts. Implies use_chat_info_database.
*/
    use_message_database?: boolean;
    /**
Pass true to enable support for secret chats.
*/
    use_secret_chats?: boolean;
    /**
Application identifier for Telegram API access, which can be obtained at https://my.telegram.org.
*/
    api_id: number;
    /**
Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org.
*/
    api_hash: string;
    /**
IETF language tag of the user's operating system language; must be non-empty.
*/
    system_language_code: string;
    /**
Model of the device the application is being run on; must be non-empty.
*/
    device_model: string;
    /**
Version of the operating system the application is being run on. If empty, the version is automatically detected by
TDLib.
*/
    system_version: string;
    /**
Application version; must be non-empty.
*/
    application_version: string;
}
/**
Sets the phone number of the user and sends an authentication code to the user. Works only when the current
authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current
authorization state is authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode,
authorizationStateWaitRegistration, or authorizationStateWaitPassword.
Request type for {@link Tdjson#setAuthenticationPhoneNumber}.
*/
export interface SetAuthenticationPhoneNumber {
    '@type': 'setAuthenticationPhoneNumber';
    /**
The phone number of the user, in international format.
*/
    phone_number: string;
    /**
Settings for the authentication of the user's phone number; pass null to use default settings.
*/
    settings: PhoneNumberAuthenticationSettings;
}
/**
Sets the email address of the user and sends an authentication code to the email address. Works only when the current
authorization state is authorizationStateWaitEmailAddress.
Request type for {@link Tdjson#setAuthenticationEmailAddress}.
*/
export interface SetAuthenticationEmailAddress {
    '@type': 'setAuthenticationEmailAddress';
    /**
The email address of the user.
*/
    email_address: string;
}
/**
Resends an authentication code to the user. Works only when the current authorization state is
authorizationStateWaitCode, the next_code_type of the result is not null and the server-specified timeout has passed, or
when the current authorization state is authorizationStateWaitEmailCode.
Request type for {@link Tdjson#resendAuthenticationCode}.
*/
export interface ResendAuthenticationCode {
    '@type': 'resendAuthenticationCode';
    /**
Reason of code resending; pass null if unknown.
*/
    reason: ResendCodeReason;
}
/**
Checks the authentication of an email address. Works only when the current authorization state is
authorizationStateWaitEmailCode.
Request type for {@link Tdjson#checkAuthenticationEmailCode}.
*/
export interface CheckAuthenticationEmailCode {
    '@type': 'checkAuthenticationEmailCode';
    /**
Email address authentication to check.
*/
    code: EmailAddressAuthentication;
}
/**
Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode.
Request type for {@link Tdjson#checkAuthenticationCode}.
*/
export interface CheckAuthenticationCode {
    '@type': 'checkAuthenticationCode';
    /**
Authentication code to check.
*/
    code: string;
}
/**
Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current
authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current
authorization state is authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode,
authorizationStateWaitRegistration, or authorizationStateWaitPassword.
Request type for {@link Tdjson#requestQrCodeAuthentication}.
*/
export interface RequestQrCodeAuthentication {
    '@type': 'requestQrCodeAuthentication';
    /**
List of user identifiers of other users currently using the application.
*/
    other_user_ids: number[];
}
/**
Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration.
Request type for {@link Tdjson#registerUser}.
*/
export interface RegisterUser {
    '@type': 'registerUser';
    /**
The first name of the user; 1-64 characters.
*/
    first_name: string;
    /**
The last name of the user; 0-64 characters.
*/
    last_name: string;
    /**
Pass true to disable notification about the current user joining Telegram for other users that added them to contact
list.
*/
    disable_notification?: boolean;
}
/**
Resets the login email address. May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending.
Works only when the current authorization state is authorizationStateWaitEmailCode and
authorization_state.can_reset_email_address == true.
Request type for {@link Tdjson#resetAuthenticationEmailAddress}.
*/
export interface ResetAuthenticationEmailAddress {
    '@type': 'resetAuthenticationEmailAddress';
}
/**
Checks the 2-step verification password for correctness. Works only when the current authorization state is
authorizationStateWaitPassword.
Request type for {@link Tdjson#checkAuthenticationPassword}.
*/
export interface CheckAuthenticationPassword {
    '@type': 'checkAuthenticationPassword';
    /**
The 2-step verification password to check.
*/
    password: string;
}
/**
Requests to send a 2-step verification password recovery code to an email address that was previously set up. Works only
when the current authorization state is authorizationStateWaitPassword.
Request type for {@link Tdjson#requestAuthenticationPasswordRecovery}.
*/
export interface RequestAuthenticationPasswordRecovery {
    '@type': 'requestAuthenticationPasswordRecovery';
}
/**
Checks whether a 2-step verification password recovery code sent to an email address is valid. Works only when the
current authorization state is authorizationStateWaitPassword.
Request type for {@link Tdjson#checkAuthenticationPasswordRecoveryCode}.
*/
export interface CheckAuthenticationPasswordRecoveryCode {
    '@type': 'checkAuthenticationPasswordRecoveryCode';
    /**
Recovery code to check.
*/
    recovery_code: string;
}
/**
Recovers the 2-step verification password with a password recovery code sent to an email address that was previously set
up. Works only when the current authorization state is authorizationStateWaitPassword.
Request type for {@link Tdjson#recoverAuthenticationPassword}.
*/
export interface RecoverAuthenticationPassword {
    '@type': 'recoverAuthenticationPassword';
    /**
Recovery code to check.
*/
    recovery_code: string;
    /**
New 2-step verification password of the user; may be empty to remove the password.
*/
    new_password: string;
    /**
New password hint; may be empty.
*/
    new_hint: string;
}
/**
Sends Firebase Authentication SMS to the phone number of the user. Works only when the current authorization state is
authorizationStateWaitCode and the server returned code of the type authenticationCodeTypeFirebaseAndroid or
authenticationCodeTypeFirebaseIos.
Request type for {@link Tdjson#sendAuthenticationFirebaseSms}.
*/
export interface SendAuthenticationFirebaseSms {
    '@type': 'sendAuthenticationFirebaseSms';
    /**
Play Integrity API or SafetyNet Attestation API token for the Android application, or secret from push notification for
the iOS application.
*/
    token: string;
}
/**
Reports that authentication code wasn't delivered via SMS; for official mobile applications only. Works only when the
current authorization state is authorizationStateWaitCode.
Request type for {@link Tdjson#reportAuthenticationCodeMissing}.
*/
export interface ReportAuthenticationCodeMissing {
    '@type': 'reportAuthenticationCodeMissing';
    /**
Current mobile network code.
*/
    mobile_network_code: string;
}
/**
Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is
authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to
log in.
Request type for {@link Tdjson#checkAuthenticationBotToken}.
*/
export interface CheckAuthenticationBotToken {
    '@type': 'checkAuthenticationBotToken';
    /**
The bot token.
*/
    token: string;
}
/**
Closes the TDLib instance after a proper logout. Requires an available network connection. All local data will be
destroyed. After the logout completes, updateAuthorizationState with authorizationStateClosed will be sent.
Request type for {@link Tdjson#logOut}.
*/
export interface LogOut {
    '@type': 'logOut';
}
/**
Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes,
updateAuthorizationState with authorizationStateClosed will be sent. Can be called before initialization.
Request type for {@link Tdjson#close}.
*/
export interface Close {
    '@type': 'close';
}
/**
Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in
the list of all active sessions. All local data will be destroyed. After the destruction completes
updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization.
Request type for {@link Tdjson#destroy}.
*/
export interface Destroy {
    '@type': 'destroy';
}
/**
Confirms QR code authentication on another device. Returns created session on success.
Request type for {@link Tdjson#confirmQrCodeAuthentication}.
*/
export interface ConfirmQrCodeAuthentication {
    '@type': 'confirmQrCodeAuthentication';
    /**
A link from a QR code. The link must be scanned by the in-app camera.
*/
    link: string;
}
/**
Returns all updates needed to restore current TDLib state, i.e. all actual
updateAuthorizationState/updateUser/updateNewChat and others. This is especially useful if TDLib is run in a separate
process. Can be called before initialization.
Request type for {@link Tdjson#getCurrentState}.
*/
export interface GetCurrentState {
    '@type': 'getCurrentState';
}
/**
Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain.
Request type for {@link Tdjson#setDatabaseEncryptionKey}.
*/
export interface SetDatabaseEncryptionKey {
    '@type': 'setDatabaseEncryptionKey';
    /**
New encryption key.
*/
    new_encryption_key: string;
}
/**
Returns the current state of 2-step verification.
Request type for {@link Tdjson#getPasswordState}.
*/
export interface GetPasswordState {
    '@type': 'getPasswordState';
}
/**
Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the
change will not be applied until the new recovery email address is confirmed.
Request type for {@link Tdjson#setPassword}.
*/
export interface SetPassword {
    '@type': 'setPassword';
    /**
Previous 2-step verification password of the user.
*/
    old_password: string;
    /**
New 2-step verification password of the user; may be empty to remove the password.
*/
    new_password: string;
    /**
New password hint; may be empty.
*/
    new_hint: string;
    /**
Pass true to change also the recovery email address.
*/
    set_recovery_email_address?: boolean;
    /**
New recovery email address; may be empty.
*/
    new_recovery_email_address: string;
}
/**
Changes the login email address of the user. The email address can be changed only if the current user already has login
email and passwordState.login_email_address_pattern is non-empty. The change will not be applied until the new login
email address is confirmed with checkLoginEmailAddressCode. To use Apple ID/Google ID instead of an email address, call
checkLoginEmailAddressCode directly.
Request type for {@link Tdjson#setLoginEmailAddress}.
*/
export interface SetLoginEmailAddress {
    '@type': 'setLoginEmailAddress';
    /**
New login email address.
*/
    new_login_email_address: string;
}
/**
Resends the login email address verification code.
Request type for {@link Tdjson#resendLoginEmailAddressCode}.
*/
export interface ResendLoginEmailAddressCode {
    '@type': 'resendLoginEmailAddressCode';
}
/**
Checks the login email address authentication.
Request type for {@link Tdjson#checkLoginEmailAddressCode}.
*/
export interface CheckLoginEmailAddressCode {
    '@type': 'checkLoginEmailAddressCode';
    /**
Email address authentication to check.
*/
    code: EmailAddressAuthentication;
}
/**
Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a
password provided by the user.
Request type for {@link Tdjson#getRecoveryEmailAddress}.
*/
export interface GetRecoveryEmailAddress {
    '@type': 'getRecoveryEmailAddress';
    /**
The 2-step verification password for the current user.
*/
    password: string;
}
/**
Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then
the change will not be applied until the new recovery email address is confirmed. If new_recovery_email_address is the
same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting
for an email confirmation.
Request type for {@link Tdjson#setRecoveryEmailAddress}.
*/
export interface SetRecoveryEmailAddress {
    '@type': 'setRecoveryEmailAddress';
    /**
The 2-step verification password of the current user.
*/
    password: string;
    /**
New recovery email address.
*/
    new_recovery_email_address: string;
}
/**
Checks the 2-step verification recovery email address verification code.
Request type for {@link Tdjson#checkRecoveryEmailAddressCode}.
*/
export interface CheckRecoveryEmailAddressCode {
    '@type': 'checkRecoveryEmailAddressCode';
    /**
Verification code to check.
*/
    code: string;
}
/**
Resends the 2-step verification recovery email address verification code.
Request type for {@link Tdjson#resendRecoveryEmailAddressCode}.
*/
export interface ResendRecoveryEmailAddressCode {
    '@type': 'resendRecoveryEmailAddressCode';
}
/**
Cancels verification of the 2-step verification recovery email address.
Request type for {@link Tdjson#cancelRecoveryEmailAddressVerification}.
*/
export interface CancelRecoveryEmailAddressVerification {
    '@type': 'cancelRecoveryEmailAddressVerification';
}
/**
Requests to send a 2-step verification password recovery code to an email address that was previously set up.
Request type for {@link Tdjson#requestPasswordRecovery}.
*/
export interface RequestPasswordRecovery {
    '@type': 'requestPasswordRecovery';
}
/**
Checks whether a 2-step verification password recovery code sent to an email address is valid.
Request type for {@link Tdjson#checkPasswordRecoveryCode}.
*/
export interface CheckPasswordRecoveryCode {
    '@type': 'checkPasswordRecoveryCode';
    /**
Recovery code to check.
*/
    recovery_code: string;
}
/**
Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up.
Request type for {@link Tdjson#recoverPassword}.
*/
export interface RecoverPassword {
    '@type': 'recoverPassword';
    /**
Recovery code to check.
*/
    recovery_code: string;
    /**
New 2-step verification password of the user; may be empty to remove the password.
*/
    new_password: string;
    /**
New password hint; may be empty.
*/
    new_hint: string;
}
/**
Removes 2-step verification password without previous password and access to recovery email address. The password can't
be reset immediately and the request needs to be repeated after the specified time.
Request type for {@link Tdjson#resetPassword}.
*/
export interface ResetPassword {
    '@type': 'resetPassword';
}
/**
Cancels reset of 2-step verification password. The method can be called if passwordState.pending_reset_date > 0.
Request type for {@link Tdjson#cancelPasswordReset}.
*/
export interface CancelPasswordReset {
    '@type': 'cancelPasswordReset';
}
/**
Creates a new temporary password for processing payments.
Request type for {@link Tdjson#createTemporaryPassword}.
*/
export interface CreateTemporaryPassword {
    '@type': 'createTemporaryPassword';
    /**
The 2-step verification password of the current user.
*/
    password: string;
    /**
Time during which the temporary password will be valid, in seconds; must be between 60 and 86400.
*/
    valid_for: number;
}
/**
Returns information about the current temporary password.
Request type for {@link Tdjson#getTemporaryPasswordState}.
*/
export interface GetTemporaryPasswordState {
    '@type': 'getTemporaryPasswordState';
}
/**
Returns the current user.
Request type for {@link Tdjson#getMe}.
*/
export interface GetMe {
    '@type': 'getMe';
}
/**
Returns information about a user by their identifier. This is an offline request if the current user is not a bot.
Request type for {@link Tdjson#getUser}.
*/
export interface GetUser {
    '@type': 'getUser';
    /**
User identifier.
*/
    user_id: number;
}
/**
Returns full information about a user by their identifier.
Request type for {@link Tdjson#getUserFullInfo}.
*/
export interface GetUserFullInfo {
    '@type': 'getUserFullInfo';
    /**
User identifier.
*/
    user_id: number;
}
/**
Returns information about a basic group by its identifier. This is an offline request if the current user is not a bot.
Request type for {@link Tdjson#getBasicGroup}.
*/
export interface GetBasicGroup {
    '@type': 'getBasicGroup';
    /**
Basic group identifier.
*/
    basic_group_id: number;
}
/**
Returns full information about a basic group by its identifier.
Request type for {@link Tdjson#getBasicGroupFullInfo}.
*/
export interface GetBasicGroupFullInfo {
    '@type': 'getBasicGroupFullInfo';
    /**
Basic group identifier.
*/
    basic_group_id: number;
}
/**
Returns information about a supergroup or a channel by its identifier. This is an offline request if the current user is
not a bot.
Request type for {@link Tdjson#getSupergroup}.
*/
export interface GetSupergroup {
    '@type': 'getSupergroup';
    /**
Supergroup or channel identifier.
*/
    supergroup_id: number;
}
/**
Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute.
Request type for {@link Tdjson#getSupergroupFullInfo}.
*/
export interface GetSupergroupFullInfo {
    '@type': 'getSupergroupFullInfo';
    /**
Supergroup or channel identifier.
*/
    supergroup_id: number;
}
/**
Returns information about a secret chat by its identifier. This is an offline request.
Request type for {@link Tdjson#getSecretChat}.
*/
export interface GetSecretChat {
    '@type': 'getSecretChat';
    /**
Secret chat identifier.
*/
    secret_chat_id: number;
}
/**
Returns information about a chat by its identifier; this is an offline request if the current user is not a bot.
Request type for {@link Tdjson#getChat}.
*/
export interface GetChat {
    '@type': 'getChat';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Returns information about a message. Returns a 404 error if the message doesn't exist.
Request type for {@link Tdjson#getMessage}.
*/
export interface GetMessage {
    '@type': 'getMessage';
    /**
Identifier of the chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message to get.
*/
    message_id: number;
}
/**
Returns information about a message, if it is available without sending network request. Returns a 404 error if message
isn't available locally. This is an offline request.
Request type for {@link Tdjson#getMessageLocally}.
*/
export interface GetMessageLocally {
    '@type': 'getMessageLocally';
    /**
Identifier of the chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message to get.
*/
    message_id: number;
}
/**
Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message,
the game message, the invoice message, the message with a previously set same background, the giveaway message, and the
topic creation message for messages of the types messagePinMessage, messageGameScore, messagePaymentSuccessful,
messageChatSetBackground, messageGiveawayCompleted and topic messages without non-bundled replied message respectively.
Returns a 404 error if the message doesn't exist.
Request type for {@link Tdjson#getRepliedMessage}.
*/
export interface GetRepliedMessage {
    '@type': 'getRepliedMessage';
    /**
Identifier of the chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the reply message.
*/
    message_id: number;
}
/**
Returns information about a newest pinned message in the chat. Returns a 404 error if the message doesn't exist.
Request type for {@link Tdjson#getChatPinnedMessage}.
*/
export interface GetChatPinnedMessage {
    '@type': 'getChatPinnedMessage';
    /**
Identifier of the chat the message belongs to.
*/
    chat_id: number;
}
/**
Returns information about a message with the callback button that originated a callback query; for bots only.
Request type for {@link Tdjson#getCallbackQueryMessage}.
*/
export interface GetCallbackQueryMessage {
    '@type': 'getCallbackQueryMessage';
    /**
Identifier of the chat the message belongs to.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
Identifier of the callback query.
*/
    callback_query_id: string;
}
/**
Returns information about messages. If a message is not found, returns null on the corresponding position of the result.
Request type for {@link Tdjson#getMessages}.
*/
export interface GetMessages {
    '@type': 'getMessages';
    /**
Identifier of the chat the messages belong to.
*/
    chat_id: number;
    /**
Identifiers of the messages to get.
*/
    message_ids: number[];
}
/**
Returns properties of a message; this is an offline request.
Request type for {@link Tdjson#getMessageProperties}.
*/
export interface GetMessageProperties {
    '@type': 'getMessageProperties';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
}
/**
Returns information about a message thread. Can be used only if messageProperties.can_get_message_thread == true.
Request type for {@link Tdjson#getMessageThread}.
*/
export interface GetMessageThread {
    '@type': 'getMessageThread';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
}
/**
Returns read date of a recent outgoing message in a private chat. The method can be called if
messageProperties.can_get_read_date == true.
Request type for {@link Tdjson#getMessageReadDate}.
*/
export interface GetMessageReadDate {
    '@type': 'getMessageReadDate';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
}
/**
Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only
users, opened content of the message, are returned. The method can be called if messageProperties.can_get_viewers ==
true.
Request type for {@link Tdjson#getMessageViewers}.
*/
export interface GetMessageViewers {
    '@type': 'getMessageViewers';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
}
/**
Returns information about a file; this is an offline request.
Request type for {@link Tdjson#getFile}.
*/
export interface GetFile {
    '@type': 'getFile';
    /**
Identifier of the file to get.
*/
    file_id: number;
}
/**
Returns information about a file by its remote identifier; this is an offline request. Can be used to register a URL as
a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is
still accessible to the user. For example, if the file is from a message, then the message must be not deleted and
accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded
by the application.
Request type for {@link Tdjson#getRemoteFile}.
*/
export interface GetRemoteFile {
    '@type': 'getRemoteFile';
    /**
Remote identifier of the file to get.
*/
    remote_file_id: string;
    /**
File type; pass null if unknown.
*/
    file_type: FileType;
}
/**
Loads more chats from a chat list. The loaded chats and their positions in the chat list will be sent through updates.
Chats are sorted by the pair (chat.position.order, chat.id) in descending order. Returns a 404 error if all chats have
been loaded.
Request type for {@link Tdjson#loadChats}.
*/
export interface LoadChats {
    '@type': 'loadChats';
    /**
The chat list in which to load chats; pass null to load chats from the main chat list.
*/
    chat_list: ChatList;
    /**
The maximum number of chats to be loaded. For optimal performance, the number of loaded chats is chosen by TDLib and can
be smaller than the specified limit, even if the end of the list is not reached.
*/
    limit: number;
}
/**
Returns an ordered list of chats from the beginning of a chat list. For informational purposes only. Use loadChats and
updates processing instead to maintain chat lists in a consistent state.
Request type for {@link Tdjson#getChats}.
*/
export interface GetChats {
    '@type': 'getChats';
    /**
The chat list in which to return chats; pass null to get chats from the main chat list.
*/
    chat_list: ChatList;
    /**
The maximum number of chats to be returned.
*/
    limit: number;
}
/**
Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns
the chat if found; otherwise, an error is returned.
Request type for {@link Tdjson#searchPublicChat}.
*/
export interface SearchPublicChat {
    '@type': 'searchPublicChat';
    /**
Username to be resolved.
*/
    username: string;
}
/**
Searches public chats by looking for specified query in their username and title. Currently, only private chats,
supergroups and channels can be public. Returns a meaningful number of results. Excludes private chats with contacts and
chats from the chat list from the results.
Request type for {@link Tdjson#searchPublicChats}.
*/
export interface SearchPublicChats {
    '@type': 'searchPublicChats';
    /**
Query to search for.
*/
    query: string;
}
/**
Searches for the specified query in the title and username of already known chats; this is an offline request. Returns
chats in the order seen in the main chat list.
Request type for {@link Tdjson#searchChats}.
*/
export interface SearchChats {
    '@type': 'searchChats';
    /**
Query to search for. If the query is empty, returns up to 50 recently found chats.
*/
    query: string;
    /**
The maximum number of chats to be returned.
*/
    limit: number;
}
/**
Searches for the specified query in the title and username of already known chats via request to the server. Returns
chats in the order seen in the main chat list.
Request type for {@link Tdjson#searchChatsOnServer}.
*/
export interface SearchChatsOnServer {
    '@type': 'searchChatsOnServer';
    /**
Query to search for.
*/
    query: string;
    /**
The maximum number of chats to be returned.
*/
    limit: number;
}
/**
Returns a list of channel chats recommended to the current user.
Request type for {@link Tdjson#getRecommendedChats}.
*/
export interface GetRecommendedChats {
    '@type': 'getRecommendedChats';
}
/**
Returns a list of chats similar to the given chat.
Request type for {@link Tdjson#getChatSimilarChats}.
*/
export interface GetChatSimilarChats {
    '@type': 'getChatSimilarChats';
    /**
Identifier of the target chat; must be an identifier of a channel chat.
*/
    chat_id: number;
}
/**
Returns approximate number of chats similar to the given chat.
Request type for {@link Tdjson#getChatSimilarChatCount}.
*/
export interface GetChatSimilarChatCount {
    '@type': 'getChatSimilarChatCount';
    /**
Identifier of the target chat; must be an identifier of a channel chat.
*/
    chat_id: number;
    /**
Pass true to get the number of chats without sending network requests, or -1 if the number of chats is unknown locally.
*/
    return_local?: boolean;
}
/**
Informs TDLib that a chat was opened from the list of similar chats. The method is independent of openChat and closeChat
methods.
Request type for {@link Tdjson#openChatSimilarChat}.
*/
export interface OpenChatSimilarChat {
    '@type': 'openChatSimilarChat';
    /**
Identifier of the original chat, which similar chats were requested.
*/
    chat_id: number;
    /**
Identifier of the opened chat.
*/
    opened_chat_id: number;
}
/**
Returns a list of bots similar to the given bot.
Request type for {@link Tdjson#getBotSimilarBots}.
*/
export interface GetBotSimilarBots {
    '@type': 'getBotSimilarBots';
    /**
User identifier of the target bot.
*/
    bot_user_id: number;
}
/**
Returns approximate number of bots similar to the given bot.
Request type for {@link Tdjson#getBotSimilarBotCount}.
*/
export interface GetBotSimilarBotCount {
    '@type': 'getBotSimilarBotCount';
    /**
User identifier of the target bot.
*/
    bot_user_id: number;
    /**
Pass true to get the number of bots without sending network requests, or -1 if the number of bots is unknown locally.
*/
    return_local?: boolean;
}
/**
Informs TDLib that a bot was opened from the list of similar bots.
Request type for {@link Tdjson#openBotSimilarBot}.
*/
export interface OpenBotSimilarBot {
    '@type': 'openBotSimilarBot';
    /**
Identifier of the original bot, which similar bots were requested.
*/
    bot_user_id: number;
    /**
Identifier of the opened bot.
*/
    opened_bot_user_id: number;
}
/**
Returns a list of frequently used chats.
Request type for {@link Tdjson#getTopChats}.
*/
export interface GetTopChats {
    '@type': 'getTopChats';
    /**
Category of chats to be returned.
*/
    category: TopChatCategory;
    /**
The maximum number of chats to be returned; up to 30.
*/
    limit: number;
}
/**
Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled.
Request type for {@link Tdjson#removeTopChat}.
*/
export interface RemoveTopChat {
    '@type': 'removeTopChat';
    /**
Category of frequently used chats.
*/
    category: TopChatCategory;
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Searches for the specified query in the title and username of up to 50 recently found chats; this is an offline request.
Request type for {@link Tdjson#searchRecentlyFoundChats}.
*/
export interface SearchRecentlyFoundChats {
    '@type': 'searchRecentlyFoundChats';
    /**
Query to search for.
*/
    query: string;
    /**
The maximum number of chats to be returned.
*/
    limit: number;
}
/**
Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already
in the list, it will be removed from the list first.
Request type for {@link Tdjson#addRecentlyFoundChat}.
*/
export interface AddRecentlyFoundChat {
    '@type': 'addRecentlyFoundChat';
    /**
Identifier of the chat to add.
*/
    chat_id: number;
}
/**
Removes a chat from the list of recently found chats.
Request type for {@link Tdjson#removeRecentlyFoundChat}.
*/
export interface RemoveRecentlyFoundChat {
    '@type': 'removeRecentlyFoundChat';
    /**
Identifier of the chat to be removed.
*/
    chat_id: number;
}
/**
Clears the list of recently found chats.
Request type for {@link Tdjson#clearRecentlyFoundChats}.
*/
export interface ClearRecentlyFoundChats {
    '@type': 'clearRecentlyFoundChats';
}
/**
Returns recently opened chats; this is an offline request. Returns chats in the order of last opening.
Request type for {@link Tdjson#getRecentlyOpenedChats}.
*/
export interface GetRecentlyOpenedChats {
    '@type': 'getRecentlyOpenedChats';
    /**
The maximum number of chats to be returned.
*/
    limit: number;
}
/**
Checks whether a username can be set for a chat.
Request type for {@link Tdjson#checkChatUsername}.
*/
export interface CheckChatUsername {
    '@type': 'checkChatUsername';
    /**
Chat identifier; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or 0 if the
chat is being created.
*/
    chat_id: number;
    /**
Username to be checked.
*/
    username: string;
}
/**
Returns a list of public chats of the specified type, owned by the user.
Request type for {@link Tdjson#getCreatedPublicChats}.
*/
export interface GetCreatedPublicChats {
    '@type': 'getCreatedPublicChats';
    /**
Type of the public chats to return.
*/
    type: PublicChatType;
}
/**
Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was
reached. The limit can be increased with Telegram Premium.
Request type for {@link Tdjson#checkCreatedPublicChatsLimit}.
*/
export interface CheckCreatedPublicChatsLimit {
    '@type': 'checkCreatedPublicChatsLimit';
    /**
Type of the public chats, for which to check the limit.
*/
    type: PublicChatType;
}
/**
Returns a list of basic group and supergroup chats, which can be used as a discussion group for a channel. Returned
basic group chats must be first upgraded to supergroups before they can be set as a discussion group. To set a returned
supergroup as a discussion group, access to its old messages must be enabled using toggleSupergroupIsAllHistoryAvailable
first.
Request type for {@link Tdjson#getSuitableDiscussionChats}.
*/
export interface GetSuitableDiscussionChats {
    '@type': 'getSuitableDiscussionChats';
}
/**
Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of
joined supergroups and channels and receives CHANNELS_TOO_MUCH error. Also, the limit can be increased with Telegram
Premium.
Request type for {@link Tdjson#getInactiveSupergroupChats}.
*/
export interface GetInactiveSupergroupChats {
    '@type': 'getInactiveSupergroupChats';
}
/**
Returns a list of channel chats, which can be used as a personal chat.
Request type for {@link Tdjson#getSuitablePersonalChats}.
*/
export interface GetSuitablePersonalChats {
    '@type': 'getSuitablePersonalChats';
}
/**
Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by
their topic.order in descending order. Returns a 404 error if all topics have been loaded.
Request type for {@link Tdjson#loadSavedMessagesTopics}.
*/
export interface LoadSavedMessagesTopics {
    '@type': 'loadSavedMessagesTopics';
    /**
The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and
can be smaller than the specified limit, even if the end of the list is not reached.
*/
    limit: number;
}
/**
Returns messages in a Saved Messages topic. The messages are returned in reverse chronological order (i.e., in order of
decreasing message_id).
Request type for {@link Tdjson#getSavedMessagesTopicHistory}.
*/
export interface GetSavedMessagesTopicHistory {
    '@type': 'getSavedMessagesTopicHistory';
    /**
Identifier of Saved Messages topic which messages will be fetched.
*/
    saved_messages_topic_id: number;
    /**
Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message.
*/
    from_message_id: number;
    /**
Specify 0 to get results from exactly the message from_message_id or a negative offset up to 99 to get additionally some
newer messages.
*/
    offset: number;
    /**
The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is
negative, the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages
is chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Returns the last message sent in a Saved Messages topic no later than the specified date.
Request type for {@link Tdjson#getSavedMessagesTopicMessageByDate}.
*/
export interface GetSavedMessagesTopicMessageByDate {
    '@type': 'getSavedMessagesTopicMessageByDate';
    /**
Identifier of Saved Messages topic which message will be returned.
*/
    saved_messages_topic_id: number;
    /**
Point in time (Unix timestamp) relative to which to search for messages.
*/
    date: number;
}
/**
Deletes all messages in a Saved Messages topic.
Request type for {@link Tdjson#deleteSavedMessagesTopicHistory}.
*/
export interface DeleteSavedMessagesTopicHistory {
    '@type': 'deleteSavedMessagesTopicHistory';
    /**
Identifier of Saved Messages topic which messages will be deleted.
*/
    saved_messages_topic_id: number;
}
/**
Deletes all messages between the specified dates in a Saved Messages topic. Messages sent in the last 30 seconds will
not be deleted.
Request type for {@link Tdjson#deleteSavedMessagesTopicMessagesByDate}.
*/
export interface DeleteSavedMessagesTopicMessagesByDate {
    '@type': 'deleteSavedMessagesTopicMessagesByDate';
    /**
Identifier of Saved Messages topic which messages will be deleted.
*/
    saved_messages_topic_id: number;
    /**
The minimum date of the messages to delete.
*/
    min_date: number;
    /**
The maximum date of the messages to delete.
*/
    max_date: number;
}
/**
Changes the pinned state of a Saved Messages topic. There can be up to
getOption("pinned_saved_messages_topic_count_max") pinned topics. The limit can be increased with Telegram Premium.
Request type for {@link Tdjson#toggleSavedMessagesTopicIsPinned}.
*/
export interface ToggleSavedMessagesTopicIsPinned {
    '@type': 'toggleSavedMessagesTopicIsPinned';
    /**
Identifier of Saved Messages topic to pin or unpin.
*/
    saved_messages_topic_id: number;
    /**
Pass true to pin the topic; pass false to unpin it.
*/
    is_pinned?: boolean;
}
/**
Changes the order of pinned Saved Messages topics.
Request type for {@link Tdjson#setPinnedSavedMessagesTopics}.
*/
export interface SetPinnedSavedMessagesTopics {
    '@type': 'setPinnedSavedMessagesTopics';
    /**
Identifiers of the new pinned Saved Messages topics.
*/
    saved_messages_topic_ids: number[];
}
/**
Returns a list of common group chats with a given user. Chats are sorted by their type and creation date.
Request type for {@link Tdjson#getGroupsInCommon}.
*/
export interface GetGroupsInCommon {
    '@type': 'getGroupsInCommon';
    /**
User identifier.
*/
    user_id: number;
    /**
Chat identifier starting from which to return chats; use 0 for the first request.
*/
    offset_chat_id: number;
    /**
The maximum number of chats to be returned; up to 100.
*/
    limit: number;
}
/**
Returns messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing
message_id). For optimal performance, the number of returned messages is chosen by TDLib. This is an offline request if
only_local is true.
Request type for {@link Tdjson#getChatHistory}.
*/
export interface GetChatHistory {
    '@type': 'getChatHistory';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the message starting from which history must be fetched; use 0 to get results from the last message.
*/
    from_message_id: number;
    /**
Specify 0 to get results from exactly the message from_message_id or a negative offset up to 99 to get additionally some
newer messages.
*/
    offset: number;
    /**
The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is
negative, the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages
is chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
    /**
Pass true to get only messages that are available without sending network requests.
*/
    only_local?: boolean;
}
/**
Returns messages in a message thread of a message. Can be used only if messageProperties.can_get_message_thread == true.
Message thread of a channel message is in the channel's linked supergroup. The messages are returned in reverse
chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages
is chosen by TDLib.
Request type for {@link Tdjson#getMessageThreadHistory}.
*/
export interface GetMessageThreadHistory {
    '@type': 'getMessageThreadHistory';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier, which thread history needs to be returned.
*/
    message_id: number;
    /**
Identifier of the message starting from which history must be fetched; use 0 to get results from the last message.
*/
    from_message_id: number;
    /**
Specify 0 to get results from exactly the message from_message_id or a negative offset up to 99 to get additionally some
newer messages.
*/
    offset: number;
    /**
The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is
negative, the limit must be greater than or equal to -offset. For optimal performance, the number of returned messages
is chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to
find whether and how the method can be applied to the chat.
Request type for {@link Tdjson#deleteChatHistory}.
*/
export interface DeleteChatHistory {
    '@type': 'deleteChatHistory';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Pass true to remove the chat from all chat lists.
*/
    remove_from_chat_list?: boolean;
    /**
Pass true to delete chat history for all users.
*/
    revoke?: boolean;
}
/**
Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release
the usernames and remove all members. Use the field chat.can_be_deleted_for_all_users to find whether the method can be
applied to the chat.
Request type for {@link Tdjson#deleteChat}.
*/
export interface DeleteChat {
    '@type': 'deleteChat';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of
decreasing message_id. Cannot be used in secret chats with a non-empty query (searchSecretMessages must be used
instead), or without an enabled message database. For optimal performance, the number of returned messages is chosen by
TDLib and can be smaller than the specified limit. A combination of query, sender_id, filter and message_thread_id
search criteria is expected to be supported, only if it is required for Telegram official application implementation.
Request type for {@link Tdjson#searchChatMessages}.
*/
export interface SearchChatMessages {
    '@type': 'searchChatMessages';
    /**
Identifier of the chat in which to search messages.
*/
    chat_id: number;
    /**
Query to search for.
*/
    query: string;
    /**
Identifier of the sender of messages to search for; pass null to search for messages from any sender. Not supported in
secret chats.
*/
    sender_id: MessageSender;
    /**
Identifier of the message starting from which history must be fetched; use 0 to get results from the last message.
*/
    from_message_id: number;
    /**
Specify 0 to get results from exactly the message from_message_id or a negative offset to get the specified message and
some newer messages.
*/
    offset: number;
    /**
The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is
negative, the limit must be greater than -offset. For optimal performance, the number of returned messages is chosen by
TDLib and can be smaller than the specified limit.
*/
    limit: number;
    /**
Additional filter for messages to search; pass null to search for all messages.
*/
    filter: SearchMessagesFilter;
    /**
If not 0, only messages in the specified thread will be returned; supergroups only.
*/
    message_thread_id: number;
    /**
If not 0, only messages in the specified Saved Messages topic will be returned; pass 0 to return all messages, or for
chats other than Saved Messages.
*/
    saved_messages_topic_id: number;
}
/**
Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in
order of decreasing (date, chat_id, message_id)). For optimal performance, the number of returned messages is chosen by
TDLib and can be smaller than the specified limit.
Request type for {@link Tdjson#searchMessages}.
*/
export interface SearchMessages {
    '@type': 'searchMessages';
    /**
Chat list in which to search messages; pass null to search in all chats regardless of their chat list. Only Main and
Archive chat lists are supported.
*/
    chat_list: ChatList;
    /**
Query to search for.
*/
    query: string;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is
chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
    /**
Additional filter for messages to search; pass null to search for all messages. Filters searchMessagesFilterMention,
searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, searchMessagesFilterFailedToSend, and
searchMessagesFilterPinned are unsupported in this function.
*/
    filter: SearchMessagesFilter;
    /**
Additional filter for type of the chat of the searched messages; pass null to search for messages in all chats.
*/
    chat_type_filter: SearchMessagesChatTypeFilter;
    /**
If not 0, the minimum date of the messages to return.
*/
    min_date: number;
    /**
If not 0, the maximum date of the messages to return.
*/
    max_date: number;
}
/**
Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance, the
number of returned messages is chosen by TDLib.
Request type for {@link Tdjson#searchSecretMessages}.
*/
export interface SearchSecretMessages {
    '@type': 'searchSecretMessages';
    /**
Identifier of the chat in which to search. Specify 0 to search in all secret chats.
*/
    chat_id: number;
    /**
Query to search for. If empty, searchChatMessages must be used instead.
*/
    query: string;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is
chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
    /**
Additional filter for messages to search; pass null to search for all messages.
*/
    filter: SearchMessagesFilter;
}
/**
Searches for messages tagged by the given reaction and with the given words in the Saved Messages chat; for Telegram
Premium users only. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. For
optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit.
Request type for {@link Tdjson#searchSavedMessages}.
*/
export interface SearchSavedMessages {
    '@type': 'searchSavedMessages';
    /**
If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages.
*/
    saved_messages_topic_id: number;
    /**
Tag to search for; pass null to return all suitable messages.
*/
    tag: ReactionType;
    /**
Query to search for.
*/
    query: string;
    /**
Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message.
*/
    from_message_id: number;
    /**
Specify 0 to get results from exactly the message from_message_id or a negative offset to get the specified message and
some newer messages.
*/
    offset: number;
    /**
The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is
negative, the limit must be greater than -offset. For optimal performance, the number of returned messages is chosen by
TDLib and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Searches for call messages. Returns the results in reverse chronological order (i.e., in order of decreasing
message_id). For optimal performance, the number of returned messages is chosen by TDLib.
Request type for {@link Tdjson#searchCallMessages}.
*/
export interface SearchCallMessages {
    '@type': 'searchCallMessages';
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is
chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
    /**
Pass true to search only for messages with missed/declined calls.
*/
    only_missed?: boolean;
}
/**
Searches for outgoing messages with content of the type messageDocument in all chats except secret chats. Returns the
results in reverse chronological order.
Request type for {@link Tdjson#searchOutgoingDocumentMessages}.
*/
export interface SearchOutgoingDocumentMessages {
    '@type': 'searchOutgoingDocumentMessages';
    /**
Query to search for in document file name and message caption.
*/
    query: string;
    /**
The maximum number of messages to be returned; up to 100.
*/
    limit: number;
}
/**
Searches for public channel posts containing the given hashtag or cashtag. For optimal performance, the number of
returned messages is chosen by TDLib and can be smaller than the specified limit.
Request type for {@link Tdjson#searchPublicMessagesByTag}.
*/
export interface SearchPublicMessagesByTag {
    '@type': 'searchPublicMessagesByTag';
    /**
Hashtag or cashtag to search for.
*/
    tag: string;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is
chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Searches for public stories containing the given hashtag or cashtag. For optimal performance, the number of returned
stories is chosen by TDLib and can be smaller than the specified limit.
Request type for {@link Tdjson#searchPublicStoriesByTag}.
*/
export interface SearchPublicStoriesByTag {
    '@type': 'searchPublicStoriesByTag';
    /**
Identifier of the chat that posted the stories to search for; pass 0 to search stories in all chats.
*/
    story_sender_chat_id: number;
    /**
Hashtag or cashtag to search for.
*/
    tag: string;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of stories to be returned; up to 100. For optimal performance, the number of returned stories is
chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Searches for public stories by the given address location. For optimal performance, the number of returned stories is
chosen by TDLib and can be smaller than the specified limit.
Request type for {@link Tdjson#searchPublicStoriesByLocation}.
*/
export interface SearchPublicStoriesByLocation {
    '@type': 'searchPublicStoriesByLocation';
    /**
Address of the location.
*/
    address: LocationAddress;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of stories to be returned; up to 100. For optimal performance, the number of returned stories is
chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Searches for public stories from the given venue. For optimal performance, the number of returned stories is chosen by
TDLib and can be smaller than the specified limit.
Request type for {@link Tdjson#searchPublicStoriesByVenue}.
*/
export interface SearchPublicStoriesByVenue {
    '@type': 'searchPublicStoriesByVenue';
    /**
Provider of the venue.
*/
    venue_provider: string;
    /**
Identifier of the venue in the provider database.
*/
    venue_id: string;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of stories to be returned; up to 100. For optimal performance, the number of returned stories is
chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Returns recently searched for hashtags or cashtags by their prefix.
Request type for {@link Tdjson#getSearchedForTags}.
*/
export interface GetSearchedForTags {
    '@type': 'getSearchedForTags';
    /**
Prefix of hashtags or cashtags to return.
*/
    tag_prefix: string;
    /**
The maximum number of items to be returned.
*/
    limit: number;
}
/**
Removes a hashtag or a cashtag from the list of recently searched for hashtags or cashtags.
Request type for {@link Tdjson#removeSearchedForTag}.
*/
export interface RemoveSearchedForTag {
    '@type': 'removeSearchedForTag';
    /**
Hashtag or cashtag to delete.
*/
    tag: string;
}
/**
Clears the list of recently searched for hashtags or cashtags.
Request type for {@link Tdjson#clearSearchedForTags}.
*/
export interface ClearSearchedForTags {
    '@type': 'clearSearchedForTags';
    /**
Pass true to clear the list of recently searched for cashtags; otherwise, the list of recently searched for hashtags
will be cleared.
*/
    clear_cashtags?: boolean;
}
/**
Deletes all call messages.
Request type for {@link Tdjson#deleteAllCallMessages}.
*/
export interface DeleteAllCallMessages {
    '@type': 'deleteAllCallMessages';
    /**
Pass true to delete the messages for all users.
*/
    revoke?: boolean;
}
/**
Returns information about the recent locations of chat members that were sent to the chat. Returns up to 1 location
message per user.
Request type for {@link Tdjson#searchChatRecentLocationMessages}.
*/
export interface SearchChatRecentLocationMessages {
    '@type': 'searchChatRecentLocationMessages';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The maximum number of messages to be returned.
*/
    limit: number;
}
/**
Returns the last message sent in a chat no later than the specified date. Returns a 404 error if such message doesn't
exist.
Request type for {@link Tdjson#getChatMessageByDate}.
*/
export interface GetChatMessageByDate {
    '@type': 'getChatMessageByDate';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Point in time (Unix timestamp) relative to which to search for messages.
*/
    date: number;
}
/**
Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll
implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). Cannot be
used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database.
Request type for {@link Tdjson#getChatSparseMessagePositions}.
*/
export interface GetChatSparseMessagePositions {
    '@type': 'getChatSparseMessagePositions';
    /**
Identifier of the chat in which to return information about message positions.
*/
    chat_id: number;
    /**
Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention,
searchMessagesFilterUnreadMention, and searchMessagesFilterUnreadReaction are unsupported in this function.
*/
    filter: SearchMessagesFilter;
    /**
The message identifier from which to return information about message positions.
*/
    from_message_id: number;
    /**
The expected number of message positions to be returned; 50-2000. A smaller number of positions can be returned, if
there are not enough appropriate messages.
*/
    limit: number;
    /**
If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages, or
for chats other than Saved Messages.
*/
    saved_messages_topic_id: number;
}
/**
Returns information about the next messages of the specified type in the chat split by days. Returns the results in
reverse chronological order. Can return partial result for the last returned day. Behavior of this method depends on the
value of the option "utc_time_offset".
Request type for {@link Tdjson#getChatMessageCalendar}.
*/
export interface GetChatMessageCalendar {
    '@type': 'getChatMessageCalendar';
    /**
Identifier of the chat in which to return information about messages.
*/
    chat_id: number;
    /**
Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention,
searchMessagesFilterUnreadMention, and searchMessagesFilterUnreadReaction are unsupported in this function.
*/
    filter: SearchMessagesFilter;
    /**
The message identifier from which to return information about messages; use 0 to get results from the last message.
*/
    from_message_id: number;
    /**
If not0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages, or for
chats other than Saved Messages.
*/
    saved_messages_topic_id: number;
}
/**
Returns approximate number of messages of the specified type in the chat.
Request type for {@link Tdjson#getChatMessageCount}.
*/
export interface GetChatMessageCount {
    '@type': 'getChatMessageCount';
    /**
Identifier of the chat in which to count messages.
*/
    chat_id: number;
    /**
Filter for message content; searchMessagesFilterEmpty is unsupported in this function.
*/
    filter: SearchMessagesFilter;
    /**
If not 0, only messages in the specified Saved Messages topic will be counted; pass 0 to count all messages, or for
chats other than Saved Messages.
*/
    saved_messages_topic_id: number;
    /**
Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown
locally.
*/
    return_local?: boolean;
}
/**
Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the
chat. Cannot be used in secret chats.
Request type for {@link Tdjson#getChatMessagePosition}.
*/
export interface GetChatMessagePosition {
    '@type': 'getChatMessagePosition';
    /**
Identifier of the chat in which to find message position.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention,
searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function.
*/
    filter: SearchMessagesFilter;
    /**
If not 0, only messages in the specified thread will be considered; supergroups only.
*/
    message_thread_id: number;
    /**
If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all relevant
messages, or for chats other than Saved Messages.
*/
    saved_messages_topic_id: number;
}
/**
Returns all scheduled messages in a chat. The messages are returned in reverse chronological order (i.e., in order of
decreasing message_id).
Request type for {@link Tdjson#getChatScheduledMessages}.
*/
export interface GetChatScheduledMessages {
    '@type': 'getChatScheduledMessages';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Returns sponsored messages to be shown in a chat; for channel chats and chats with bots only.
Request type for {@link Tdjson#getChatSponsoredMessages}.
*/
export interface GetChatSponsoredMessages {
    '@type': 'getChatSponsoredMessages';
    /**
Identifier of the chat.
*/
    chat_id: number;
}
/**
Informs TDLib that the user opened the sponsored chat via the button, the name, the chat photo, a mention in the
sponsored message text, or the media in the sponsored message.
Request type for {@link Tdjson#clickChatSponsoredMessage}.
*/
export interface ClickChatSponsoredMessage {
    '@type': 'clickChatSponsoredMessage';
    /**
Chat identifier of the sponsored message.
*/
    chat_id: number;
    /**
Identifier of the sponsored message.
*/
    message_id: number;
    /**
Pass true if the media was clicked in the sponsored message.
*/
    is_media_click?: boolean;
    /**
Pass true if the user expanded the video from the sponsored message fullscreen before the click.
*/
    from_fullscreen?: boolean;
}
/**
Reports a sponsored message to Telegram moderators.
Request type for {@link Tdjson#reportChatSponsoredMessage}.
*/
export interface ReportChatSponsoredMessage {
    '@type': 'reportChatSponsoredMessage';
    /**
Chat identifier of the sponsored message.
*/
    chat_id: number;
    /**
Identifier of the sponsored message.
*/
    message_id: number;
    /**
Option identifier chosen by the user; leave empty for the initial request.
*/
    option_id: string;
}
/**
Removes an active notification from notification list. Needs to be called only if the notification is removed by the
current user.
Request type for {@link Tdjson#removeNotification}.
*/
export interface RemoveNotification {
    '@type': 'removeNotification';
    /**
Identifier of notification group to which the notification belongs.
*/
    notification_group_id: number;
    /**
Identifier of removed notification.
*/
    notification_id: number;
}
/**
Removes a group of active notifications. Needs to be called only if the notification group is removed by the current
user.
Request type for {@link Tdjson#removeNotificationGroup}.
*/
export interface RemoveNotificationGroup {
    '@type': 'removeNotificationGroup';
    /**
Notification group identifier.
*/
    notification_group_id: number;
    /**
The maximum identifier of removed notifications.
*/
    max_notification_id: number;
}
/**
Returns an HTTPS link to a message in a chat. Available only if messageProperties.can_get_link, or if
messageProperties.can_get_media_timestamp_links and a media timestamp link is generated. This is an offline request.
Request type for {@link Tdjson#getMessageLink}.
*/
export interface GetMessageLink {
    '@type': 'getMessageLink';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
If not 0, timestamp from which the video/audio/video note/voice note/story playing must start, in seconds. The media can
be in the message content or in its link preview.
*/
    media_timestamp: number;
    /**
Pass true to create a link for the whole media album.
*/
    for_album?: boolean;
    /**
Pass true to create a link to the message as a channel post comment, in a message thread, or a forum topic.
*/
    in_message_thread?: boolean;
}
/**
Returns an HTML code for embedding the message. Available only if messageProperties.can_get_embedding_code.
Request type for {@link Tdjson#getMessageEmbeddingCode}.
*/
export interface GetMessageEmbeddingCode {
    '@type': 'getMessageEmbeddingCode';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
Pass true to return an HTML code for embedding of the whole media album.
*/
    for_album?: boolean;
}
/**
Returns information about a public or private message link. Can be called for any internal link of the type
internalLinkTypeMessage.
Request type for {@link Tdjson#getMessageLinkInfo}.
*/
export interface GetMessageLinkInfo {
    '@type': 'getMessageLinkInfo';
    /**
The message link.
*/
    url: string;
}
/**
Translates a text to the given language. If the current user is a Telegram Premium user, then text formatting is
preserved.
Request type for {@link Tdjson#translateText}.
*/
export interface TranslateText {
    '@type': 'translateText';
    /**
Text to translate.
*/
    text: FormattedText;
    /**
Language code of the language to which the message is translated. Must be one of "af", "sq", "am", "ar", "hy", "az",
"eu", "be", "bn", "bs", "bg", "ca", "ceb", "zh-CN", "zh", "zh-Hans", "zh-TW", "zh-Hant", "co", "hr", "cs", "da", "nl",
"en", "eo", "et", "fi", "fr", "fy", "gl", "ka", "de", "el", "gu", "ht", "ha", "haw", "he", "iw", "hi", "hmn", "hu",
"is", "ig", "id", "in", "ga", "it", "ja", "jv", "kn", "kk", "km", "rw", "ko", "ku", "ky", "lo", "la", "lv", "lt", "lb",
"mk", "mg", "ms", "ml", "mt", "mi", "mr", "mn", "my", "ne", "no", "ny", "or", "ps", "fa", "pl", "pt", "pa", "ro", "ru",
"sm", "gd", "sr", "st", "sn", "sd", "si", "sk", "sl", "so", "es", "su", "sw", "sv", "tl", "tg", "ta", "tt", "te", "th",
"tr", "tk", "uk", "ur", "ug", "uz", "vi", "cy", "xh", "yi", "ji", "yo", "zu".
*/
    to_language_code: string;
}
/**
Extracts text or caption of the given message and translates it to the given language. If the current user is a Telegram
Premium user, then text formatting is preserved.
Request type for {@link Tdjson#translateMessageText}.
*/
export interface TranslateMessageText {
    '@type': 'translateMessageText';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
Language code of the language to which the message is translated. Must be one of "af", "sq", "am", "ar", "hy", "az",
"eu", "be", "bn", "bs", "bg", "ca", "ceb", "zh-CN", "zh", "zh-Hans", "zh-TW", "zh-Hant", "co", "hr", "cs", "da", "nl",
"en", "eo", "et", "fi", "fr", "fy", "gl", "ka", "de", "el", "gu", "ht", "ha", "haw", "he", "iw", "hi", "hmn", "hu",
"is", "ig", "id", "in", "ga", "it", "ja", "jv", "kn", "kk", "km", "rw", "ko", "ku", "ky", "lo", "la", "lv", "lt", "lb",
"mk", "mg", "ms", "ml", "mt", "mi", "mr", "mn", "my", "ne", "no", "ny", "or", "ps", "fa", "pl", "pt", "pa", "ro", "ru",
"sm", "gd", "sr", "st", "sn", "sd", "si", "sk", "sl", "so", "es", "su", "sw", "sv", "tl", "tg", "ta", "tt", "te", "th",
"tr", "tk", "uk", "ur", "ug", "uz", "vi", "cy", "xh", "yi", "ji", "yo", "zu".
*/
    to_language_code: string;
}
/**
Recognizes speech in a video note or a voice note message.
Request type for {@link Tdjson#recognizeSpeech}.
*/
export interface RecognizeSpeech {
    '@type': 'recognizeSpeech';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message. Use messageProperties.can_recognize_speech to check whether the message is suitable.
*/
    message_id: number;
}
/**
Rates recognized speech in a video note or a voice note message.
Request type for {@link Tdjson#rateSpeechRecognition}.
*/
export interface RateSpeechRecognition {
    '@type': 'rateSpeechRecognition';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
Pass true if the speech recognition is good.
*/
    is_good?: boolean;
}
/**
Returns the list of message sender identifiers, which can be used to send messages in a chat.
Request type for {@link Tdjson#getChatAvailableMessageSenders}.
*/
export interface GetChatAvailableMessageSenders {
    '@type': 'getChatAvailableMessageSenders';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Selects a message sender to send messages in a chat.
Request type for {@link Tdjson#setChatMessageSender}.
*/
export interface SetChatMessageSender {
    '@type': 'setChatMessageSender';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New message sender for the chat.
*/
    message_sender_id: MessageSender;
}
/**
Sends a message. Returns the sent message.
Request type for {@link Tdjson#sendMessage}.
*/
export interface SendMessage {
    '@type': 'sendMessage';
    /**
Target chat.
*/
    chat_id: number;
    /**
If not 0, the message thread identifier in which the message will be sent.
*/
    message_thread_id: number;
    /**
Information about the message or story to be replied; pass null if none.
*/
    reply_to: InputMessageReplyTo;
    /**
Options to be used to send the message; pass null to use default options.
*/
    options: MessageSendOptions;
    /**
Markup for replying to the message; pass null if none; for bots only.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent.
*/
    input_message_content: InputMessageContent;
}
/**
Sends 2-10 messages grouped together into an album. Currently, only audio, document, photo and video messages can be
grouped into an album. Documents and audio files can be only grouped in an album with messages of the same type. Returns
sent messages.
Request type for {@link Tdjson#sendMessageAlbum}.
*/
export interface SendMessageAlbum {
    '@type': 'sendMessageAlbum';
    /**
Target chat.
*/
    chat_id: number;
    /**
If not 0, the message thread identifier in which the messages will be sent.
*/
    message_thread_id: number;
    /**
Information about the message or story to be replied; pass null if none.
*/
    reply_to: InputMessageReplyTo;
    /**
Options to be used to send the messages; pass null to use default options.
*/
    options: MessageSendOptions;
    /**
Contents of messages to be sent. At most 10 messages can be added to an album. All messages must have the same value of
show_caption_above_media.
*/
    input_message_contents: InputMessageContent[];
}
/**
Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires can_invite_users member
right. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels
(although they can be added as admins) and secret chats. Returns the sent message.
Request type for {@link Tdjson#sendBotStartMessage}.
*/
export interface SendBotStartMessage {
    '@type': 'sendBotStartMessage';
    /**
Identifier of the bot.
*/
    bot_user_id: number;
    /**
Identifier of the target chat.
*/
    chat_id: number;
    /**
A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking).
*/
    parameter: string;
}
/**
Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message.
Request type for {@link Tdjson#sendInlineQueryResultMessage}.
*/
export interface SendInlineQueryResultMessage {
    '@type': 'sendInlineQueryResultMessage';
    /**
Target chat.
*/
    chat_id: number;
    /**
If not 0, the message thread identifier in which the message will be sent.
*/
    message_thread_id: number;
    /**
Information about the message or story to be replied; pass null if none.
*/
    reply_to: InputMessageReplyTo;
    /**
Options to be used to send the message; pass null to use default options.
*/
    options: MessageSendOptions;
    /**
Identifier of the inline query.
*/
    query_id: string;
    /**
Identifier of the inline query result.
*/
    result_id: string;
    /**
Pass true to hide the bot, via which the message is sent. Can be used only for bots
getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and
getOption("venue_search_bot_username").
*/
    hide_via_bot?: boolean;
}
/**
Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in
message_ids. If a message can't be forwarded, null will be returned instead of the message.
Request type for {@link Tdjson#forwardMessages}.
*/
export interface ForwardMessages {
    '@type': 'forwardMessages';
    /**
Identifier of the chat to which to forward messages.
*/
    chat_id: number;
    /**
If not 0, the message thread identifier in which the message will be sent; for forum threads only.
*/
    message_thread_id: number;
    /**
Identifier of the chat from which to forward messages.
*/
    from_chat_id: number;
    /**
Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages
can be forwarded simultaneously. A message can be forwarded only if messageProperties.can_be_forwarded.
*/
    message_ids: number[];
    /**
Options to be used to send the messages; pass null to use default options.
*/
    options: MessageSendOptions;
    /**
Pass true to copy content of the messages without reference to the original sender. Always true if the messages are
forwarded to a secret chat or are local. Use messageProperties.can_be_saved and
messageProperties.can_be_copied_to_secret_chat to check whether the message is suitable.
*/
    send_copy?: boolean;
    /**
Pass true to remove media captions of message copies. Ignored if send_copy is false.
*/
    remove_caption?: boolean;
}
/**
Sends messages from a quick reply shortcut. Requires Telegram Business subscription. Can't be used to send paid
messages.
Request type for {@link Tdjson#sendQuickReplyShortcutMessages}.
*/
export interface SendQuickReplyShortcutMessages {
    '@type': 'sendQuickReplyShortcutMessages';
    /**
Identifier of the chat to which to send messages. The chat must be a private chat with a regular user.
*/
    chat_id: number;
    /**
Unique identifier of the quick reply shortcut.
*/
    shortcut_id: number;
    /**
Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match
sent messages and corresponding updateNewMessage updates.
*/
    sending_id: number;
}
/**
Resends messages which failed to send. Can be called only for messages for which messageSendingStateFailed.can_retry is
true and after specified in messageSendingStateFailed.retry_after time passed. If a message is re-sent, the
corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers
passed in message_ids. If a message can't be re-sent, null will be returned instead of the message.
Request type for {@link Tdjson#resendMessages}.
*/
export interface ResendMessages {
    '@type': 'resendMessages';
    /**
Identifier of the chat to send messages.
*/
    chat_id: number;
    /**
Identifiers of the messages to resend. Message identifiers must be in a strictly increasing order.
*/
    message_ids: number[];
    /**
New manually chosen quote from the message to be replied; pass null if none. Ignored if more than one message is
re-sent, or if messageSendingStateFailed.need_another_reply_quote == false.
*/
    quote: InputTextQuote;
    /**
The number of Telegram Stars the user agreed to pay to send the messages. Ignored if
messageSendingStateFailed.required_paid_message_star_count == 0.
*/
    paid_message_star_count: number;
}
/**
Adds a local message to a chat. The message is persistent across application restarts only if the message database is
used. Returns the added message.
Request type for {@link Tdjson#addLocalMessage}.
*/
export interface AddLocalMessage {
    '@type': 'addLocalMessage';
    /**
Target chat.
*/
    chat_id: number;
    /**
Identifier of the sender of the message.
*/
    sender_id: MessageSender;
    /**
Information about the message or story to be replied; pass null if none.
*/
    reply_to: InputMessageReplyTo;
    /**
Pass true to disable notification for the message.
*/
    disable_notification?: boolean;
    /**
The content of the message to be added.
*/
    input_message_content: InputMessageContent;
}
/**
Deletes messages.
Request type for {@link Tdjson#deleteMessages}.
*/
export interface DeleteMessages {
    '@type': 'deleteMessages';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifiers of the messages to be deleted. Use messageProperties.can_be_deleted_only_for_self and
messageProperties.can_be_deleted_for_all_users to get suitable messages.
*/
    message_ids: number[];
    /**
Pass true to delete messages for all chat members. Always true for supergroups, channels and secret chats.
*/
    revoke?: boolean;
}
/**
Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires
can_delete_messages administrator right.
Request type for {@link Tdjson#deleteChatMessagesBySender}.
*/
export interface DeleteChatMessagesBySender {
    '@type': 'deleteChatMessagesBySender';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the sender of messages to delete.
*/
    sender_id: MessageSender;
}
/**
Deletes all messages between the specified dates in a chat. Supported only for private chats and basic groups. Messages
sent in the last 30 seconds will not be deleted.
Request type for {@link Tdjson#deleteChatMessagesByDate}.
*/
export interface DeleteChatMessagesByDate {
    '@type': 'deleteChatMessagesByDate';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The minimum date of the messages to delete.
*/
    min_date: number;
    /**
The maximum date of the messages to delete.
*/
    max_date: number;
    /**
Pass true to delete chat messages for all users; private chats only.
*/
    revoke?: boolean;
}
/**
Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the
server side.
Request type for {@link Tdjson#editMessageText}.
*/
export interface EditMessageText {
    '@type': 'editMessageText';
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited.
*/
    message_id: number;
    /**
The new message reply markup; pass null if none; for bots only.
*/
    reply_markup: ReplyMarkup;
    /**
New text content of the message. Must be of type inputMessageText.
*/
    input_message_content: InputMessageContent;
}
/**
Edits the message content of a live location. Messages can be edited for a limited period of time specified in the live
location. Returns the edited message after the edit is completed on the server side.
Request type for {@link Tdjson#editMessageLiveLocation}.
*/
export interface EditMessageLiveLocation {
    '@type': 'editMessageLiveLocation';
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited.
*/
    message_id: number;
    /**
The new message reply markup; pass null if none; for bots only.
*/
    reply_markup: ReplyMarkup;
    /**
New location content of the message; pass null to stop sharing the live location.
*/
    location: Location;
    /**
New time relative to the message send date, for which the location can be updated, in seconds. If 0x7FFFFFFF specified,
then the location can be updated forever. Otherwise, must not exceed the current live_period by more than a day, and the
live location expiration date must remain in the next 90 days. Pass 0 to keep the current live_period.
*/
    live_period: number;
    /**
The new direction in which the location moves, in degrees; 1-360. Pass 0 if unknown.
*/
    heading: number;
    /**
The new maximum distance for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled.
*/
    proximity_alert_radius: number;
}
/**
Edits the media content of a message, including message caption. If only the caption needs to be edited, use
editMessageCaption instead. The type of message content in an album can't be changed with exception of replacing a photo
with a video or vice versa. Returns the edited message after the edit is completed on the server side.
Request type for {@link Tdjson#editMessageMedia}.
*/
export interface EditMessageMedia {
    '@type': 'editMessageMedia';
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message. Use messageProperties.can_edit_media to check whether the message can be edited.
*/
    message_id: number;
    /**
The new message reply markup; pass null if none; for bots only.
*/
    reply_markup: ReplyMarkup;
    /**
New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio,
inputMessageDocument, inputMessagePhoto or inputMessageVideo.
*/
    input_message_content: InputMessageContent;
}
/**
Edits the message content caption. Returns the edited message after the edit is completed on the server side.
Request type for {@link Tdjson#editMessageCaption}.
*/
export interface EditMessageCaption {
    '@type': 'editMessageCaption';
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited.
*/
    message_id: number;
    /**
The new message reply markup; pass null if none; for bots only.
*/
    reply_markup: ReplyMarkup;
    /**
New message content caption; 0-getOption("message_caption_length_max") characters; pass null to remove caption.
*/
    caption: FormattedText;
    /**
Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only
for animation, photo, and video messages.
*/
    show_caption_above_media?: boolean;
}
/**
Edits the message reply markup; for bots only. Returns the edited message after the edit is completed on the server
side.
Request type for {@link Tdjson#editMessageReplyMarkup}.
*/
export interface EditMessageReplyMarkup {
    '@type': 'editMessageReplyMarkup';
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited.
*/
    message_id: number;
    /**
The new message reply markup; pass null if none.
*/
    reply_markup: ReplyMarkup;
}
/**
Edits the text of an inline text or game message sent via a bot; for bots only.
Request type for {@link Tdjson#editInlineMessageText}.
*/
export interface EditInlineMessageText {
    '@type': 'editInlineMessageText';
    /**
Inline message identifier.
*/
    inline_message_id: string;
    /**
The new message reply markup; pass null if none.
*/
    reply_markup: ReplyMarkup;
    /**
New text content of the message. Must be of type inputMessageText.
*/
    input_message_content: InputMessageContent;
}
/**
Edits the content of a live location in an inline message sent via a bot; for bots only.
Request type for {@link Tdjson#editInlineMessageLiveLocation}.
*/
export interface EditInlineMessageLiveLocation {
    '@type': 'editInlineMessageLiveLocation';
    /**
Inline message identifier.
*/
    inline_message_id: string;
    /**
The new message reply markup; pass null if none.
*/
    reply_markup: ReplyMarkup;
    /**
New location content of the message; pass null to stop sharing the live location.
*/
    location: Location;
    /**
New time relative to the message send date, for which the location can be updated, in seconds. If 0x7FFFFFFF specified,
then the location can be updated forever. Otherwise, must not exceed the current live_period by more than a day, and the
live location expiration date must remain in the next 90 days. Pass 0 to keep the current live_period.
*/
    live_period: number;
    /**
The new direction in which the location moves, in degrees; 1-360. Pass 0 if unknown.
*/
    heading: number;
    /**
The new maximum distance for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled.
*/
    proximity_alert_radius: number;
}
/**
Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in an inline
message sent via a bot; for bots only.
Request type for {@link Tdjson#editInlineMessageMedia}.
*/
export interface EditInlineMessageMedia {
    '@type': 'editInlineMessageMedia';
    /**
Inline message identifier.
*/
    inline_message_id: string;
    /**
The new message reply markup; pass null if none; for bots only.
*/
    reply_markup: ReplyMarkup;
    /**
New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio,
inputMessageDocument, inputMessagePhoto or inputMessageVideo.
*/
    input_message_content: InputMessageContent;
}
/**
Edits the caption of an inline message sent via a bot; for bots only.
Request type for {@link Tdjson#editInlineMessageCaption}.
*/
export interface EditInlineMessageCaption {
    '@type': 'editInlineMessageCaption';
    /**
Inline message identifier.
*/
    inline_message_id: string;
    /**
The new message reply markup; pass null if none.
*/
    reply_markup: ReplyMarkup;
    /**
New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters.
*/
    caption: FormattedText;
    /**
Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only
for animation, photo, and video messages.
*/
    show_caption_above_media?: boolean;
}
/**
Edits the reply markup of an inline message sent via a bot; for bots only.
Request type for {@link Tdjson#editInlineMessageReplyMarkup}.
*/
export interface EditInlineMessageReplyMarkup {
    '@type': 'editInlineMessageReplyMarkup';
    /**
Inline message identifier.
*/
    inline_message_id: string;
    /**
The new message reply markup; pass null if none.
*/
    reply_markup: ReplyMarkup;
}
/**
Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded
together with the message will be also changed.
Request type for {@link Tdjson#editMessageSchedulingState}.
*/
export interface EditMessageSchedulingState {
    '@type': 'editMessageSchedulingState';
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message. Use messageProperties.can_edit_scheduling_state to check whether the message is suitable.
*/
    message_id: number;
    /**
The new message scheduling state; pass null to send the message immediately. Must be null for messages in the state
messageSchedulingStateSendWhenVideoProcessed.
*/
    scheduling_state: MessageSchedulingState;
}
/**
Changes the fact-check of a message. Can be only used if messageProperties.can_set_fact_check == true.
Request type for {@link Tdjson#setMessageFactCheck}.
*/
export interface SetMessageFactCheck {
    '@type': 'setMessageFactCheck';
    /**
The channel chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
New text of the fact-check; 0-getOption("fact_check_length_max") characters; pass null to remove it. Only Bold, Italic,
and TextUrl entities with https://t.me/ links are supported.
*/
    text: FormattedText;
}
/**
Sends a message on behalf of a business account; for bots only. Returns the message after it was sent.
Request type for {@link Tdjson#sendBusinessMessage}.
*/
export interface SendBusinessMessage {
    '@type': 'sendBusinessMessage';
    /**
Unique identifier of business connection on behalf of which to send the request.
*/
    business_connection_id: string;
    /**
Target chat.
*/
    chat_id: number;
    /**
Information about the message to be replied; pass null if none.
*/
    reply_to: InputMessageReplyTo;
    /**
Pass true to disable notification for the message.
*/
    disable_notification?: boolean;
    /**
Pass true if the content of the message must be protected from forwarding and saving.
*/
    protect_content?: boolean;
    /**
Identifier of the effect to apply to the message.
*/
    effect_id: string;
    /**
Markup for replying to the message; pass null if none.
*/
    reply_markup: ReplyMarkup;
    /**
The content of the message to be sent.
*/
    input_message_content: InputMessageContent;
}
/**
Sends 2-10 messages grouped together into an album on behalf of a business account; for bots only. Currently, only
audio, document, photo and video messages can be grouped into an album. Documents and audio files can be only grouped in
an album with messages of the same type. Returns sent messages.
Request type for {@link Tdjson#sendBusinessMessageAlbum}.
*/
export interface SendBusinessMessageAlbum {
    '@type': 'sendBusinessMessageAlbum';
    /**
Unique identifier of business connection on behalf of which to send the request.
*/
    business_connection_id: string;
    /**
Target chat.
*/
    chat_id: number;
    /**
Information about the message to be replied; pass null if none.
*/
    reply_to: InputMessageReplyTo;
    /**
Pass true to disable notification for the message.
*/
    disable_notification?: boolean;
    /**
Pass true if the content of the message must be protected from forwarding and saving.
*/
    protect_content?: boolean;
    /**
Identifier of the effect to apply to the message.
*/
    effect_id: string;
    /**
Contents of messages to be sent. At most 10 messages can be added to an album. All messages must have the same value of
show_caption_above_media.
*/
    input_message_contents: InputMessageContent[];
}
/**
Edits the text of a text or game message sent on behalf of a business account; for bots only.
Request type for {@link Tdjson#editBusinessMessageText}.
*/
export interface EditBusinessMessageText {
    '@type': 'editBusinessMessageText';
    /**
Unique identifier of business connection on behalf of which the message was sent.
*/
    business_connection_id: string;
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
The new message reply markup; pass null if none.
*/
    reply_markup: ReplyMarkup;
    /**
New text content of the message. Must be of type inputMessageText.
*/
    input_message_content: InputMessageContent;
}
/**
Edits the content of a live location in a message sent on behalf of a business account; for bots only.
Request type for {@link Tdjson#editBusinessMessageLiveLocation}.
*/
export interface EditBusinessMessageLiveLocation {
    '@type': 'editBusinessMessageLiveLocation';
    /**
Unique identifier of business connection on behalf of which the message was sent.
*/
    business_connection_id: string;
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
The new message reply markup; pass null if none.
*/
    reply_markup: ReplyMarkup;
    /**
New location content of the message; pass null to stop sharing the live location.
*/
    location: Location;
    /**
New time relative to the message send date, for which the location can be updated, in seconds. If 0x7FFFFFFF specified,
then the location can be updated forever. Otherwise, must not exceed the current live_period by more than a day, and the
live location expiration date must remain in the next 90 days. Pass 0 to keep the current live_period.
*/
    live_period: number;
    /**
The new direction in which the location moves, in degrees; 1-360. Pass 0 if unknown.
*/
    heading: number;
    /**
The new maximum distance for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled.
*/
    proximity_alert_radius: number;
}
/**
Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in a message
sent on behalf of a business account; for bots only.
Request type for {@link Tdjson#editBusinessMessageMedia}.
*/
export interface EditBusinessMessageMedia {
    '@type': 'editBusinessMessageMedia';
    /**
Unique identifier of business connection on behalf of which the message was sent.
*/
    business_connection_id: string;
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
The new message reply markup; pass null if none; for bots only.
*/
    reply_markup: ReplyMarkup;
    /**
New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio,
inputMessageDocument, inputMessagePhoto or inputMessageVideo.
*/
    input_message_content: InputMessageContent;
}
/**
Edits the caption of a message sent on behalf of a business account; for bots only.
Request type for {@link Tdjson#editBusinessMessageCaption}.
*/
export interface EditBusinessMessageCaption {
    '@type': 'editBusinessMessageCaption';
    /**
Unique identifier of business connection on behalf of which the message was sent.
*/
    business_connection_id: string;
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
The new message reply markup; pass null if none.
*/
    reply_markup: ReplyMarkup;
    /**
New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters.
*/
    caption: FormattedText;
    /**
Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only
for animation, photo, and video messages.
*/
    show_caption_above_media?: boolean;
}
/**
Edits the reply markup of a message sent on behalf of a business account; for bots only.
Request type for {@link Tdjson#editBusinessMessageReplyMarkup}.
*/
export interface EditBusinessMessageReplyMarkup {
    '@type': 'editBusinessMessageReplyMarkup';
    /**
Unique identifier of business connection on behalf of which the message was sent.
*/
    business_connection_id: string;
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
The new message reply markup; pass null if none.
*/
    reply_markup: ReplyMarkup;
}
/**
Stops a poll sent on behalf of a business account; for bots only.
Request type for {@link Tdjson#stopBusinessPoll}.
*/
export interface StopBusinessPoll {
    '@type': 'stopBusinessPoll';
    /**
Unique identifier of business connection on behalf of which the message with the poll was sent.
*/
    business_connection_id: string;
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message containing the poll.
*/
    message_id: number;
    /**
The new message reply markup; pass null if none.
*/
    reply_markup: ReplyMarkup;
}
/**
Pins or unpins a message sent on behalf of a business account; for bots only.
Request type for {@link Tdjson#setBusinessMessageIsPinned}.
*/
export interface SetBusinessMessageIsPinned {
    '@type': 'setBusinessMessageIsPinned';
    /**
Unique identifier of business connection on behalf of which the message was sent.
*/
    business_connection_id: string;
    /**
The chat the message belongs to.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
Pass true to pin the message, pass false to unpin it.
*/
    is_pinned?: boolean;
}
/**
Checks validness of a name for a quick reply shortcut. Can be called synchronously.
Request type for {@link Tdjson#checkQuickReplyShortcutName}.
*/
export interface CheckQuickReplyShortcutName {
    '@type': 'checkQuickReplyShortcutName';
    /**
The name of the shortcut; 1-32 characters.
*/
    name: string;
}
/**
Loads quick reply shortcuts created by the current user. The loaded data will be sent through updateQuickReplyShortcut
and updateQuickReplyShortcuts.
Request type for {@link Tdjson#loadQuickReplyShortcuts}.
*/
export interface LoadQuickReplyShortcuts {
    '@type': 'loadQuickReplyShortcuts';
}
/**
Changes name of a quick reply shortcut.
Request type for {@link Tdjson#setQuickReplyShortcutName}.
*/
export interface SetQuickReplyShortcutName {
    '@type': 'setQuickReplyShortcutName';
    /**
Unique identifier of the quick reply shortcut.
*/
    shortcut_id: number;
    /**
New name for the shortcut. Use checkQuickReplyShortcutName to check its validness.
*/
    name: string;
}
/**
Deletes a quick reply shortcut.
Request type for {@link Tdjson#deleteQuickReplyShortcut}.
*/
export interface DeleteQuickReplyShortcut {
    '@type': 'deleteQuickReplyShortcut';
    /**
Unique identifier of the quick reply shortcut.
*/
    shortcut_id: number;
}
/**
Changes the order of quick reply shortcuts.
Request type for {@link Tdjson#reorderQuickReplyShortcuts}.
*/
export interface ReorderQuickReplyShortcuts {
    '@type': 'reorderQuickReplyShortcuts';
    /**
The new order of quick reply shortcuts.
*/
    shortcut_ids: number[];
}
/**
Loads quick reply messages that can be sent by a given quick reply shortcut. The loaded messages will be sent through
updateQuickReplyShortcutMessages.
Request type for {@link Tdjson#loadQuickReplyShortcutMessages}.
*/
export interface LoadQuickReplyShortcutMessages {
    '@type': 'loadQuickReplyShortcutMessages';
    /**
Unique identifier of the quick reply shortcut.
*/
    shortcut_id: number;
}
/**
Deletes specified quick reply messages.
Request type for {@link Tdjson#deleteQuickReplyShortcutMessages}.
*/
export interface DeleteQuickReplyShortcutMessages {
    '@type': 'deleteQuickReplyShortcutMessages';
    /**
Unique identifier of the quick reply shortcut to which the messages belong.
*/
    shortcut_id: number;
    /**
Unique identifiers of the messages.
*/
    message_ids: number[];
}
/**
Adds a message to a quick reply shortcut. If shortcut doesn't exist and there are less than
getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. The shortcut must not contain
more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added
message.
Request type for {@link Tdjson#addQuickReplyShortcutMessage}.
*/
export interface AddQuickReplyShortcutMessage {
    '@type': 'addQuickReplyShortcutMessage';
    /**
Name of the target shortcut.
*/
    shortcut_name: string;
    /**
Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none.
*/
    reply_to_message_id: number;
    /**
The content of the message to be added; inputMessagePoll, inputMessageForwarded and inputMessageLocation with
live_period aren't supported.
*/
    input_message_content: InputMessageContent;
}
/**
Adds a message to a quick reply shortcut via inline bot. If shortcut doesn't exist and there are less than
getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. The shortcut must not contain
more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added
message.
Request type for {@link Tdjson#addQuickReplyShortcutInlineQueryResultMessage}.
*/
export interface AddQuickReplyShortcutInlineQueryResultMessage {
    '@type': 'addQuickReplyShortcutInlineQueryResultMessage';
    /**
Name of the target shortcut.
*/
    shortcut_name: string;
    /**
Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none.
*/
    reply_to_message_id: number;
    /**
Identifier of the inline query.
*/
    query_id: string;
    /**
Identifier of the inline query result.
*/
    result_id: string;
    /**
Pass true to hide the bot, via which the message is sent. Can be used only for bots
getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and
getOption("venue_search_bot_username").
*/
    hide_via_bot?: boolean;
}
/**
Adds 2-10 messages grouped together into an album to a quick reply shortcut. Currently, only audio, document, photo and
video messages can be grouped into an album. Documents and audio files can be only grouped in an album with messages of
the same type. Returns sent messages.
Request type for {@link Tdjson#addQuickReplyShortcutMessageAlbum}.
*/
export interface AddQuickReplyShortcutMessageAlbum {
    '@type': 'addQuickReplyShortcutMessageAlbum';
    /**
Name of the target shortcut.
*/
    shortcut_name: string;
    /**
Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none.
*/
    reply_to_message_id: number;
    /**
Contents of messages to be sent. At most 10 messages can be added to an album. All messages must have the same value of
show_caption_above_media.
*/
    input_message_contents: InputMessageContent[];
}
/**
Readds quick reply messages which failed to add. Can be called only for messages for which
messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. If
a message is readded, the corresponding failed to send message is deleted. Returns the sent messages in the same order
as the message identifiers passed in message_ids. If a message can't be readded, null will be returned instead of the
message.
Request type for {@link Tdjson#readdQuickReplyShortcutMessages}.
*/
export interface ReaddQuickReplyShortcutMessages {
    '@type': 'readdQuickReplyShortcutMessages';
    /**
Name of the target shortcut.
*/
    shortcut_name: string;
    /**
Identifiers of the quick reply messages to readd. Message identifiers must be in a strictly increasing order.
*/
    message_ids: number[];
}
/**
Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.can_be_edited to check
whether a message can be edited. Media message can be edited only to a media message. The type of message content in an
album can't be changed with exception of replacing a photo with a video or vice versa.
Request type for {@link Tdjson#editQuickReplyMessage}.
*/
export interface EditQuickReplyMessage {
    '@type': 'editQuickReplyMessage';
    /**
Unique identifier of the quick reply shortcut with the message.
*/
    shortcut_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation,
inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo.
*/
    input_message_content: InputMessageContent;
}
/**
Returns the list of custom emoji, which can be used as forum topic icon by all users.
Request type for {@link Tdjson#getForumTopicDefaultIcons}.
*/
export interface GetForumTopicDefaultIcons {
    '@type': 'getForumTopicDefaultIcons';
}
/**
Creates a topic in a forum supergroup chat; requires can_manage_topics administrator or can_create_topics member right
in the supergroup.
Request type for {@link Tdjson#createForumTopic}.
*/
export interface CreateForumTopic {
    '@type': 'createForumTopic';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Name of the topic; 1-128 characters.
*/
    name: string;
    /**
Icon of the topic. Icon color must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. Telegram
Premium users can use any custom emoji as topic icon, other users can use only a custom emoji returned by
getForumTopicDefaultIcons.
*/
    icon: ForumTopicIcon;
}
/**
Edits title and icon of a topic in a forum supergroup chat; requires can_manage_topics right in the supergroup unless
the user is creator of the topic.
Request type for {@link Tdjson#editForumTopic}.
*/
export interface EditForumTopic {
    '@type': 'editForumTopic';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Message thread identifier of the forum topic.
*/
    message_thread_id: number;
    /**
New name of the topic; 0-128 characters. If empty, the previous topic name is kept.
*/
    name: string;
    /**
Pass true to edit the icon of the topic. Icon of the General topic can't be edited.
*/
    edit_icon_custom_emoji?: boolean;
    /**
Identifier of the new custom emoji for topic icon; pass 0 to remove the custom emoji. Ignored if edit_icon_custom_emoji
is false. Telegram Premium users can use any custom emoji, other users can use only a custom emoji returned by
getForumTopicDefaultIcons.
*/
    icon_custom_emoji_id: string;
}
/**
Returns information about a forum topic.
Request type for {@link Tdjson#getForumTopic}.
*/
export interface GetForumTopic {
    '@type': 'getForumTopic';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Message thread identifier of the forum topic.
*/
    message_thread_id: number;
}
/**
Returns an HTTPS link to a topic in a forum chat. This is an offline request.
Request type for {@link Tdjson#getForumTopicLink}.
*/
export interface GetForumTopicLink {
    '@type': 'getForumTopicLink';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Message thread identifier of the forum topic.
*/
    message_thread_id: number;
}
/**
Returns found forum topics in a forum chat. This is a temporary method for getting information about topic list from the
server.
Request type for {@link Tdjson#getForumTopics}.
*/
export interface GetForumTopics {
    '@type': 'getForumTopics';
    /**
Identifier of the forum chat.
*/
    chat_id: number;
    /**
Query to search for in the forum topic's name.
*/
    query: string;
    /**
The date starting from which the results need to be fetched. Use 0 or any date in the future to get results from the
last topic.
*/
    offset_date: number;
    /**
The message identifier of the last message in the last found topic, or 0 for the first request.
*/
    offset_message_id: number;
    /**
The message thread identifier of the last found topic, or 0 for the first request.
*/
    offset_message_thread_id: number;
    /**
The maximum number of forum topics to be returned; up to 100. For optimal performance, the number of returned forum
topics is chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Changes the notification settings of a forum topic.
Request type for {@link Tdjson#setForumTopicNotificationSettings}.
*/
export interface SetForumTopicNotificationSettings {
    '@type': 'setForumTopicNotificationSettings';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message thread identifier of the forum topic.
*/
    message_thread_id: number;
    /**
New notification settings for the forum topic. If the topic is muted for more than 366 days, it is considered to be
muted forever.
*/
    notification_settings: ChatNotificationSettings;
}
/**
Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics right in the supergroup unless
the user is creator of the topic.
Request type for {@link Tdjson#toggleForumTopicIsClosed}.
*/
export interface ToggleForumTopicIsClosed {
    '@type': 'toggleForumTopicIsClosed';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Message thread identifier of the forum topic.
*/
    message_thread_id: number;
    /**
Pass true to close the topic; pass false to reopen it.
*/
    is_closed?: boolean;
}
/**
Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics right in the
supergroup.
Request type for {@link Tdjson#toggleGeneralForumTopicIsHidden}.
*/
export interface ToggleGeneralForumTopicIsHidden {
    '@type': 'toggleGeneralForumTopicIsHidden';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Pass true to hide and close the General topic; pass false to unhide it.
*/
    is_hidden?: boolean;
}
/**
Changes the pinned state of a forum topic; requires can_manage_topics right in the supergroup. There can be up to
getOption("pinned_forum_topic_count_max") pinned forum topics.
Request type for {@link Tdjson#toggleForumTopicIsPinned}.
*/
export interface ToggleForumTopicIsPinned {
    '@type': 'toggleForumTopicIsPinned';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message thread identifier of the forum topic.
*/
    message_thread_id: number;
    /**
Pass true to pin the topic; pass false to unpin it.
*/
    is_pinned?: boolean;
}
/**
Changes the order of pinned forum topics; requires can_manage_topics right in the supergroup.
Request type for {@link Tdjson#setPinnedForumTopics}.
*/
export interface SetPinnedForumTopics {
    '@type': 'setPinnedForumTopics';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The new list of pinned forum topics.
*/
    message_thread_ids: number[];
}
/**
Deletes all messages in a forum topic; requires can_delete_messages administrator right in the supergroup unless the
user is creator of the topic, the topic has no messages from other users and has at most 11 messages.
Request type for {@link Tdjson#deleteForumTopic}.
*/
export interface DeleteForumTopic {
    '@type': 'deleteForumTopic';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Message thread identifier of the forum topic.
*/
    message_thread_id: number;
}
/**
Returns information about an emoji reaction. Returns a 404 error if the reaction is not found.
Request type for {@link Tdjson#getEmojiReaction}.
*/
export interface GetEmojiReaction {
    '@type': 'getEmojiReaction';
    /**
Text representation of the reaction.
*/
    emoji: string;
}
/**
Returns TGS stickers with generic animations for custom emoji reactions.
Request type for {@link Tdjson#getCustomEmojiReactionAnimations}.
*/
export interface GetCustomEmojiReactionAnimations {
    '@type': 'getCustomEmojiReactionAnimations';
}
/**
Returns reactions, which can be added to a message. The list can change after updateActiveEmojiReactions,
updateChatAvailableReactions for the chat, or updateMessageInteractionInfo for the message.
Request type for {@link Tdjson#getMessageAvailableReactions}.
*/
export interface GetMessageAvailableReactions {
    '@type': 'getMessageAvailableReactions';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
Number of reaction per row, 5-25.
*/
    row_size: number;
}
/**
Clears the list of recently used reactions.
Request type for {@link Tdjson#clearRecentReactions}.
*/
export interface ClearRecentReactions {
    '@type': 'clearRecentReactions';
}
/**
Adds a reaction or a tag to a message. Use getMessageAvailableReactions to receive the list of available reactions for
the message.
Request type for {@link Tdjson#addMessageReaction}.
*/
export interface AddMessageReaction {
    '@type': 'addMessageReaction';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
Type of the reaction to add. Use addPendingPaidMessageReaction instead to add the paid reaction.
*/
    reaction_type: ReactionType;
    /**
Pass true if the reaction is added with a big animation.
*/
    is_big?: boolean;
    /**
Pass true if the reaction needs to be added to recent reactions; tags are never added to the list of recent reactions.
*/
    update_recent_reactions?: boolean;
}
/**
Removes a reaction from a message. A chosen reaction can always be removed.
Request type for {@link Tdjson#removeMessageReaction}.
*/
export interface RemoveMessageReaction {
    '@type': 'removeMessageReaction';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
Type of the reaction to remove. The paid reaction can't be removed.
*/
    reaction_type: ReactionType;
}
/**
Returns the list of message sender identifiers, which can be used to send a paid reaction in a chat.
Request type for {@link Tdjson#getChatAvailablePaidMessageReactionSenders}.
*/
export interface GetChatAvailablePaidMessageReactionSenders {
    '@type': 'getChatAvailablePaidMessageReactionSenders';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available
for the message.
Request type for {@link Tdjson#addPendingPaidMessageReaction}.
*/
export interface AddPendingPaidMessageReaction {
    '@type': 'addPendingPaidMessageReaction';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
Number of Telegram Stars to be used for the reaction. The total number of pending paid reactions must not exceed
getOption("paid_reaction_star_count_max").
*/
    star_count: number;
    /**
Type of the paid reaction; pass null if the user didn't choose reaction type explicitly, for example, the reaction is
set from the message bubble.
*/
    type: PaidReactionType;
}
/**
Applies all pending paid reactions on a message.
Request type for {@link Tdjson#commitPendingPaidMessageReactions}.
*/
export interface CommitPendingPaidMessageReactions {
    '@type': 'commitPendingPaidMessageReactions';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
}
/**
Removes all pending paid reactions on a message.
Request type for {@link Tdjson#removePendingPaidMessageReactions}.
*/
export interface RemovePendingPaidMessageReactions {
    '@type': 'removePendingPaidMessageReactions';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
}
/**
Changes type of paid message reaction of the current user on a message. The message must have paid reaction added by the
current user.
Request type for {@link Tdjson#setPaidMessageReactionType}.
*/
export interface SetPaidMessageReactionType {
    '@type': 'setPaidMessageReactionType';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
New type of the paid reaction.
*/
    type: PaidReactionType;
}
/**
Sets reactions on a message; for bots only.
Request type for {@link Tdjson#setMessageReactions}.
*/
export interface SetMessageReactions {
    '@type': 'setMessageReactions';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
Types of the reaction to set; pass an empty list to remove the reactions.
*/
    reaction_types: ReactionType[];
    /**
Pass true if the reactions are added with a big animation.
*/
    is_big?: boolean;
}
/**
Returns reactions added for a message, along with their sender.
Request type for {@link Tdjson#getMessageAddedReactions}.
*/
export interface GetMessageAddedReactions {
    '@type': 'getMessageAddedReactions';
    /**
Identifier of the chat to which the message belongs.
*/
    chat_id: number;
    /**
Identifier of the message. Use message.interaction_info.reactions.can_get_added_reactions to check whether added
reactions can be received for the message.
*/
    message_id: number;
    /**
Type of the reactions to return; pass null to return all added reactions; reactionTypePaid isn't supported.
*/
    reaction_type: ReactionType;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of reactions to be returned; must be positive and can't be greater than 100.
*/
    limit: number;
}
/**
Changes type of default reaction for the current user.
Request type for {@link Tdjson#setDefaultReactionType}.
*/
export interface SetDefaultReactionType {
    '@type': 'setDefaultReactionType';
    /**
New type of the default reaction. The paid reaction can't be set as default.
*/
    reaction_type: ReactionType;
}
/**
Returns tags used in Saved Messages or a Saved Messages topic.
Request type for {@link Tdjson#getSavedMessagesTags}.
*/
export interface GetSavedMessagesTags {
    '@type': 'getSavedMessagesTags';
    /**
Identifier of Saved Messages topic which tags will be returned; pass 0 to get all Saved Messages tags.
*/
    saved_messages_topic_id: number;
}
/**
Changes label of a Saved Messages tag; for Telegram Premium users only.
Request type for {@link Tdjson#setSavedMessagesTagLabel}.
*/
export interface SetSavedMessagesTagLabel {
    '@type': 'setSavedMessagesTagLabel';
    /**
The tag which label will be changed.
*/
    tag: ReactionType;
    /**
New label for the tag; 0-12 characters.
*/
    label: string;
}
/**
Returns information about a message effect. Returns a 404 error if the effect is not found.
Request type for {@link Tdjson#getMessageEffect}.
*/
export interface GetMessageEffect {
    '@type': 'getMessageEffect';
    /**
Unique identifier of the effect.
*/
    effect_id: string;
}
/**
Searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if
the quote is not found. Can be called synchronously.
Request type for {@link Tdjson#searchQuote}.
*/
export interface SearchQuote {
    '@type': 'searchQuote';
    /**
Text in which to search for the quote.
*/
    text: FormattedText;
    /**
Quote to search for.
*/
    quote: FormattedText;
    /**
Approximate quote position in UTF-16 code units.
*/
    quote_position: number;
}
/**
Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, URLs, and email addresses) found in
the text. Can be called synchronously.
Request type for {@link Tdjson#getTextEntities}.
*/
export interface GetTextEntities {
    '@type': 'getTextEntities';
    /**
The text in which to look for entities.
*/
    text: string;
}
/**
Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre,
PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously.
Request type for {@link Tdjson#parseTextEntities}.
*/
export interface ParseTextEntities {
    '@type': 'parseTextEntities';
    /**
The text to parse.
*/
    text: string;
    /**
Text parse mode.
*/
    parse_mode: TextParseMode;
}
/**
Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously.
Request type for {@link Tdjson#parseMarkdown}.
*/
export interface ParseMarkdown {
    '@type': 'parseMarkdown';
    /**
The text to parse. For example, "__italic__ ~~strikethrough~~ ||spoiler|| **bold** `code` ```pre``` __[italic__
text_url](telegram.org) __italic**bold italic__bold**".
*/
    text: FormattedText;
}
/**
Replaces text entities with Markdown formatting in a human-friendly format. Entities that can't be represented in
Markdown unambiguously are kept as is. Can be called synchronously.
Request type for {@link Tdjson#getMarkdownText}.
*/
export interface GetMarkdownText {
    '@type': 'getMarkdownText';
    /**
The text.
*/
    text: FormattedText;
}
/**
Returns an emoji for the given country. Returns an empty string on failure. Can be called synchronously.
Request type for {@link Tdjson#getCountryFlagEmoji}.
*/
export interface GetCountryFlagEmoji {
    '@type': 'getCountryFlagEmoji';
    /**
A two-letter ISO 3166-1 alpha-2 country code as received from getCountries.
*/
    country_code: string;
}
/**
Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called
synchronously.
Request type for {@link Tdjson#getFileMimeType}.
*/
export interface GetFileMimeType {
    '@type': 'getFileMimeType';
    /**
The name of the file or path to the file.
*/
    file_name: string;
}
/**
Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called
synchronously.
Request type for {@link Tdjson#getFileExtension}.
*/
export interface GetFileExtension {
    '@type': 'getFileExtension';
    /**
The MIME type of the file.
*/
    mime_type: string;
}
/**
Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called
synchronously.
Request type for {@link Tdjson#cleanFileName}.
*/
export interface CleanFileName {
    '@type': 'cleanFileName';
    /**
File name or path to the file.
*/
    file_name: string;
}
/**
Returns a string stored in the local database from the specified localization target and language pack by its key.
Returns a 404 error if the string is not found. Can be called synchronously.
Request type for {@link Tdjson#getLanguagePackString}.
*/
export interface GetLanguagePackString {
    '@type': 'getLanguagePackString';
    /**
Path to the language pack database in which strings are stored.
*/
    language_pack_database_path: string;
    /**
Localization target to which the language pack belongs.
*/
    localization_target: string;
    /**
Language pack identifier.
*/
    language_pack_id: string;
    /**
Language pack key of the string to be returned.
*/
    key: string;
}
/**
Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously.
Request type for {@link Tdjson#getJsonValue}.
*/
export interface GetJsonValue {
    '@type': 'getJsonValue';
    /**
The JSON-serialized string.
*/
    json: string;
}
/**
Converts a JsonValue object to corresponding JSON-serialized string. Can be called synchronously.
Request type for {@link Tdjson#getJsonString}.
*/
export interface GetJsonString {
    '@type': 'getJsonString';
    /**
The JsonValue object.
*/
    json_value: JsonValue;
}
/**
Converts a themeParameters object to corresponding JSON-serialized string. Can be called synchronously.
Request type for {@link Tdjson#getThemeParametersJsonString}.
*/
export interface GetThemeParametersJsonString {
    '@type': 'getThemeParametersJsonString';
    /**
Theme parameters to convert to JSON.
*/
    theme: ThemeParameters;
}
/**
Changes the user answer to a poll. A poll in quiz mode can be answered only once.
Request type for {@link Tdjson#setPollAnswer}.
*/
export interface SetPollAnswer {
    '@type': 'setPollAnswer';
    /**
Identifier of the chat to which the poll belongs.
*/
    chat_id: number;
    /**
Identifier of the message containing the poll.
*/
    message_id: number;
    /**
0-based identifiers of answer options, chosen by the user. User can choose more than 1 answer option only is the poll
allows multiple answers.
*/
    option_ids: number[];
}
/**
Returns message senders voted for the specified option in a non-anonymous polls. For optimal performance, the number of
returned users is chosen by TDLib.
Request type for {@link Tdjson#getPollVoters}.
*/
export interface GetPollVoters {
    '@type': 'getPollVoters';
    /**
Identifier of the chat to which the poll belongs.
*/
    chat_id: number;
    /**
Identifier of the message containing the poll.
*/
    message_id: number;
    /**
0-based identifier of the answer option.
*/
    option_id: number;
    /**
Number of voters to skip in the result; must be non-negative.
*/
    offset: number;
    /**
The maximum number of voters to be returned; must be positive and can't be greater than 50. For optimal performance, the
number of returned voters is chosen by TDLib and can be smaller than the specified limit, even if the end of the voter
list has not been reached.
*/
    limit: number;
}
/**
Stops a poll.
Request type for {@link Tdjson#stopPoll}.
*/
export interface StopPoll {
    '@type': 'stopPoll';
    /**
Identifier of the chat to which the poll belongs.
*/
    chat_id: number;
    /**
Identifier of the message containing the poll. Use messageProperties.can_be_edited to check whether the poll can be
stopped.
*/
    message_id: number;
    /**
The new message reply markup; pass null if none; for bots only.
*/
    reply_markup: ReplyMarkup;
}
/**
Hides a suggested action.
Request type for {@link Tdjson#hideSuggestedAction}.
*/
export interface HideSuggestedAction {
    '@type': 'hideSuggestedAction';
    /**
Suggested action to hide.
*/
    action: SuggestedAction;
}
/**
Hides the list of contacts that have close birthdays for 24 hours.
Request type for {@link Tdjson#hideContactCloseBirthdays}.
*/
export interface HideContactCloseBirthdays {
    '@type': 'hideContactCloseBirthdays';
}
/**
Returns information about a business connection by its identifier; for bots only.
Request type for {@link Tdjson#getBusinessConnection}.
*/
export interface GetBusinessConnection {
    '@type': 'getBusinessConnection';
    /**
Identifier of the business connection to return.
*/
    connection_id: string;
}
/**
Returns information about a button of type inlineKeyboardButtonTypeLoginUrl. The method needs to be called when the user
presses the button.
Request type for {@link Tdjson#getLoginUrlInfo}.
*/
export interface GetLoginUrlInfo {
    '@type': 'getLoginUrlInfo';
    /**
Chat identifier of the message with the button.
*/
    chat_id: number;
    /**
Message identifier of the message with the button. The message must not be scheduled.
*/
    message_id: number;
    /**
Button identifier.
*/
    button_id: number;
}
/**
Returns an HTTP URL which can be used to automatically authorize the user on a website after clicking an inline button
of type inlineKeyboardButtonTypeLoginUrl. Use the method getLoginUrlInfo to find whether a prior user confirmation is
needed. If an error is returned, then the button must be handled as an ordinary URL button.
Request type for {@link Tdjson#getLoginUrl}.
*/
export interface GetLoginUrl {
    '@type': 'getLoginUrl';
    /**
Chat identifier of the message with the button.
*/
    chat_id: number;
    /**
Message identifier of the message with the button.
*/
    message_id: number;
    /**
Button identifier.
*/
    button_id: number;
    /**
Pass true to allow the bot to send messages to the current user.
*/
    allow_write_access?: boolean;
}
/**
Shares users after pressing a keyboardButtonTypeRequestUsers button with the bot.
Request type for {@link Tdjson#shareUsersWithBot}.
*/
export interface ShareUsersWithBot {
    '@type': 'shareUsersWithBot';
    /**
Identifier of the chat with the bot.
*/
    chat_id: number;
    /**
Identifier of the message with the button.
*/
    message_id: number;
    /**
Identifier of the button.
*/
    button_id: number;
    /**
Identifiers of the shared users.
*/
    shared_user_ids: number[];
    /**
Pass true to check that the users can be shared by the button instead of actually sharing them.
*/
    only_check?: boolean;
}
/**
Shares a chat after pressing a keyboardButtonTypeRequestChat button with the bot.
Request type for {@link Tdjson#shareChatWithBot}.
*/
export interface ShareChatWithBot {
    '@type': 'shareChatWithBot';
    /**
Identifier of the chat with the bot.
*/
    chat_id: number;
    /**
Identifier of the message with the button.
*/
    message_id: number;
    /**
Identifier of the button.
*/
    button_id: number;
    /**
Identifier of the shared chat.
*/
    shared_chat_id: number;
    /**
Pass true to check that the chat can be shared by the button instead of actually sharing it. Doesn't check bot_is_member
and bot_administrator_rights restrictions. If the bot must be a member, then all chats from getGroupsInCommon and all
chats, where the user can add the bot, are suitable. In the latter case the bot will be automatically added to the chat.
If the bot must be an administrator, then all chats, where the bot already has requested rights or can be added to
administrators by the user, are suitable. In the latter case the bot will be automatically granted requested rights.
*/
    only_check?: boolean;
}
/**
Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the
query before the query timeout expires.
Request type for {@link Tdjson#getInlineQueryResults}.
*/
export interface GetInlineQueryResults {
    '@type': 'getInlineQueryResults';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
Identifier of the chat where the query was sent.
*/
    chat_id: number;
    /**
Location of the user; pass null if unknown or the bot doesn't need user's location.
*/
    user_location: Location;
    /**
Text of the query.
*/
    query: string;
    /**
Offset of the first entry to return; use empty string to get the first chunk of results.
*/
    offset: string;
}
/**
Sets the result of an inline query; for bots only.
Request type for {@link Tdjson#answerInlineQuery}.
*/
export interface AnswerInlineQuery {
    '@type': 'answerInlineQuery';
    /**
Identifier of the inline query.
*/
    inline_query_id: string;
    /**
Pass true if results may be cached and returned only for the user that sent the query. By default, results may be
returned to any user who sends the same query.
*/
    is_personal?: boolean;
    /**
Button to be shown above inline query results; pass null if none.
*/
    button: InlineQueryResultsButton;
    /**
The results of the query.
*/
    results: InputInlineQueryResult[];
    /**
Allowed time to cache the results of the query, in seconds.
*/
    cache_time: number;
    /**
Offset for the next inline query; pass an empty string if there are no more results.
*/
    next_offset: string;
}
/**
Saves an inline message to be sent by the given user; for bots only.
Request type for {@link Tdjson#savePreparedInlineMessage}.
*/
export interface SavePreparedInlineMessage {
    '@type': 'savePreparedInlineMessage';
    /**
Identifier of the user.
*/
    user_id: number;
    /**
The description of the message.
*/
    result: InputInlineQueryResult;
    /**
Types of the chats to which the message can be sent.
*/
    chat_types: TargetChatTypes;
}
/**
Saves an inline message to be sent by the given user.
Request type for {@link Tdjson#getPreparedInlineMessage}.
*/
export interface GetPreparedInlineMessage {
    '@type': 'getPreparedInlineMessage';
    /**
Identifier of the bot that created the message.
*/
    bot_user_id: number;
    /**
Identifier of the prepared message.
*/
    prepared_message_id: string;
}
/**
Returns the most grossing Web App bots.
Request type for {@link Tdjson#getGrossingWebAppBots}.
*/
export interface GetGrossingWebAppBots {
    '@type': 'getGrossingWebAppBots';
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of bots to be returned; up to 100.
*/
    limit: number;
}
/**
Returns information about a Web App by its short name. Returns a 404 error if the Web App is not found.
Request type for {@link Tdjson#searchWebApp}.
*/
export interface SearchWebApp {
    '@type': 'searchWebApp';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
Short name of the Web App.
*/
    web_app_short_name: string;
}
/**
Returns a default placeholder for Web Apps of a bot; this is an offline request. Returns a 404 error if the placeholder
isn't known.
Request type for {@link Tdjson#getWebAppPlaceholder}.
*/
export interface GetWebAppPlaceholder {
    '@type': 'getWebAppPlaceholder';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
}
/**
Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked.
Request type for {@link Tdjson#getWebAppLinkUrl}.
*/
export interface GetWebAppLinkUrl {
    '@type': 'getWebAppLinkUrl';
    /**
Identifier of the chat in which the link was clicked; pass 0 if none.
*/
    chat_id: number;
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
Short name of the Web App.
*/
    web_app_short_name: string;
    /**
Start parameter from internalLinkTypeWebApp.
*/
    start_parameter: string;
    /**
Pass true if the current user allowed the bot to send them messages.
*/
    allow_write_access?: boolean;
    /**
Parameters to use to open the Web App.
*/
    parameters: WebAppOpenParameters;
}
/**
Returns information needed to open the main Web App of a bot.
Request type for {@link Tdjson#getMainWebApp}.
*/
export interface GetMainWebApp {
    '@type': 'getMainWebApp';
    /**
Identifier of the chat in which the Web App is opened; pass 0 if none.
*/
    chat_id: number;
    /**
Identifier of the target bot. If the bot is restricted for the current user, then show an error instead of calling the
method.
*/
    bot_user_id: number;
    /**
Start parameter from internalLinkTypeMainWebApp.
*/
    start_parameter: string;
    /**
Parameters to use to open the Web App.
*/
    parameters: WebAppOpenParameters;
}
/**
Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, or an
inlineQueryResultsButtonTypeWebApp button.
Request type for {@link Tdjson#getWebAppUrl}.
*/
export interface GetWebAppUrl {
    '@type': 'getWebAppUrl';
    /**
Identifier of the target bot. If the bot is restricted for the current user, then show an error instead of calling the
method.
*/
    bot_user_id: number;
    /**
The URL from a keyboardButtonTypeWebApp button, inlineQueryResultsButtonTypeWebApp button, or an empty string when the
bot is opened from the side menu.
*/
    url: string;
    /**
Parameters to use to open the Web App.
*/
    parameters: WebAppOpenParameters;
}
/**
Sends data received from a keyboardButtonTypeWebApp Web App to a bot.
Request type for {@link Tdjson#sendWebAppData}.
*/
export interface SendWebAppData {
    '@type': 'sendWebAppData';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
Text of the keyboardButtonTypeWebApp button, which opened the Web App.
*/
    button_text: string;
    /**
The data.
*/
    data: string;
}
/**
Informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an
internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. For each bot, a confirmation alert
about data sent to the bot must be shown once.
Request type for {@link Tdjson#openWebApp}.
*/
export interface OpenWebApp {
    '@type': 'openWebApp';
    /**
Identifier of the chat in which the Web App is opened. The Web App can't be opened in secret chats.
*/
    chat_id: number;
    /**
Identifier of the bot, providing the Web App. If the bot is restricted for the current user, then show an error instead
of calling the method.
*/
    bot_user_id: number;
    /**
The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, an internalLinkTypeAttachmentMenuBot
link, or an empty string otherwise.
*/
    url: string;
    /**
If not 0, the message thread identifier in which the message will be sent.
*/
    message_thread_id: number;
    /**
Information about the message or story to be replied in the message sent by the Web App; pass null if none.
*/
    reply_to: InputMessageReplyTo;
    /**
Parameters to use to open the Web App.
*/
    parameters: WebAppOpenParameters;
}
/**
Informs TDLib that a previously opened Web App was closed.
Request type for {@link Tdjson#closeWebApp}.
*/
export interface CloseWebApp {
    '@type': 'closeWebApp';
    /**
Identifier of Web App launch, received from openWebApp.
*/
    web_app_launch_id: string;
}
/**
Sets the result of interaction with a Web App and sends corresponding message on behalf of the user to the chat from
which the query originated; for bots only.
Request type for {@link Tdjson#answerWebAppQuery}.
*/
export interface AnswerWebAppQuery {
    '@type': 'answerWebAppQuery';
    /**
Identifier of the Web App query.
*/
    web_app_query_id: string;
    /**
The result of the query.
*/
    result: InputInlineQueryResult;
}
/**
Checks whether a file can be downloaded and saved locally by Web App request.
Request type for {@link Tdjson#checkWebAppFileDownload}.
*/
export interface CheckWebAppFileDownload {
    '@type': 'checkWebAppFileDownload';
    /**
Identifier of the bot, providing the Web App.
*/
    bot_user_id: number;
    /**
Name of the file.
*/
    file_name: string;
    /**
URL of the file.
*/
    url: string;
}
/**
Sends a callback query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the
query before the query timeout expires.
Request type for {@link Tdjson#getCallbackQueryAnswer}.
*/
export interface GetCallbackQueryAnswer {
    '@type': 'getCallbackQueryAnswer';
    /**
Identifier of the chat with the message.
*/
    chat_id: number;
    /**
Identifier of the message from which the query originated. The message must not be scheduled.
*/
    message_id: number;
    /**
Query payload.
*/
    payload: CallbackQueryPayload;
}
/**
Sets the result of a callback query; for bots only.
Request type for {@link Tdjson#answerCallbackQuery}.
*/
export interface AnswerCallbackQuery {
    '@type': 'answerCallbackQuery';
    /**
Identifier of the callback query.
*/
    callback_query_id: string;
    /**
Text of the answer.
*/
    text: string;
    /**
Pass true to show an alert to the user instead of a toast notification.
*/
    show_alert?: boolean;
    /**
URL to be opened.
*/
    url: string;
    /**
Time during which the result of the query can be cached, in seconds.
*/
    cache_time: number;
}
/**
Sets the result of a shipping query; for bots only.
Request type for {@link Tdjson#answerShippingQuery}.
*/
export interface AnswerShippingQuery {
    '@type': 'answerShippingQuery';
    /**
Identifier of the shipping query.
*/
    shipping_query_id: string;
    /**
Available shipping options.
*/
    shipping_options: ShippingOption[];
    /**
An error message, empty on success.
*/
    error_message: string;
}
/**
Sets the result of a pre-checkout query; for bots only.
Request type for {@link Tdjson#answerPreCheckoutQuery}.
*/
export interface AnswerPreCheckoutQuery {
    '@type': 'answerPreCheckoutQuery';
    /**
Identifier of the pre-checkout query.
*/
    pre_checkout_query_id: string;
    /**
An error message, empty on success.
*/
    error_message: string;
}
/**
Updates the game score of the specified user in the game; for bots only.
Request type for {@link Tdjson#setGameScore}.
*/
export interface SetGameScore {
    '@type': 'setGameScore';
    /**
The chat to which the message with the game belongs.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
Pass true to edit the game message to include the current scoreboard.
*/
    edit_message?: boolean;
    /**
User identifier.
*/
    user_id: number;
    /**
The new score.
*/
    score: number;
    /**
Pass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score
table.
*/
    force?: boolean;
}
/**
Updates the game score of the specified user in a game; for bots only.
Request type for {@link Tdjson#setInlineGameScore}.
*/
export interface SetInlineGameScore {
    '@type': 'setInlineGameScore';
    /**
Inline message identifier.
*/
    inline_message_id: string;
    /**
Pass true to edit the game message to include the current scoreboard.
*/
    edit_message?: boolean;
    /**
User identifier.
*/
    user_id: number;
    /**
The new score.
*/
    score: number;
    /**
Pass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score
table.
*/
    force?: boolean;
}
/**
Returns the high scores for a game and some part of the high score table in the range of the specified user; for bots
only.
Request type for {@link Tdjson#getGameHighScores}.
*/
export interface GetGameHighScores {
    '@type': 'getGameHighScores';
    /**
The chat that contains the message with the game.
*/
    chat_id: number;
    /**
Identifier of the message.
*/
    message_id: number;
    /**
User identifier.
*/
    user_id: number;
}
/**
Returns game high scores and some part of the high score table in the range of the specified user; for bots only.
Request type for {@link Tdjson#getInlineGameHighScores}.
*/
export interface GetInlineGameHighScores {
    '@type': 'getInlineGameHighScores';
    /**
Inline message identifier.
*/
    inline_message_id: string;
    /**
User identifier.
*/
    user_id: number;
}
/**
Deletes the default reply markup from a chat. Must be called after a one-time keyboard or a replyMarkupForceReply reply
markup has been used. An updateChatReplyMarkup update will be sent if the reply markup is changed.
Request type for {@link Tdjson#deleteChatReplyMarkup}.
*/
export interface DeleteChatReplyMarkup {
    '@type': 'deleteChatReplyMarkup';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The message identifier of the used keyboard.
*/
    message_id: number;
}
/**
Sends a notification about user activity in a chat.
Request type for {@link Tdjson#sendChatAction}.
*/
export interface SendChatAction {
    '@type': 'sendChatAction';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
If not 0, the message thread identifier in which the action was performed.
*/
    message_thread_id: number;
    /**
Unique identifier of business connection on behalf of which to send the request; for bots only.
*/
    business_connection_id: string;
    /**
The action description; pass null to cancel the currently active action.
*/
    action: ChatAction;
}
/**
Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed
(e.g., in supergroups and channels all updates are received only for opened chats).
Request type for {@link Tdjson#openChat}.
*/
export interface OpenChat {
    '@type': 'openChat';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Informs TDLib that the chat is closed by the user. Many useful activities depend on the chat being opened or closed.
Request type for {@link Tdjson#closeChat}.
*/
export interface CloseChat {
    '@type': 'closeChat';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the
entire text of the message is shown on the screen (excluding the button). Many useful activities depend on whether the
messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view
counter, removing deleted messages in supergroups and channels).
Request type for {@link Tdjson#viewMessages}.
*/
export interface ViewMessages {
    '@type': 'viewMessages';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The identifiers of the messages being viewed.
*/
    message_ids: number[];
    /**
Source of the message view; pass null to guess the source based on chat open state.
*/
    source: MessageSource;
    /**
Pass true to mark as read the specified messages even the chat is closed.
*/
    force_read?: boolean;
}
/**
Informs TDLib that the message content has been opened (e.g., the user has opened a photo, video, document, location or
venue, or has listened to an audio file or voice note message). An updateMessageContentOpened update will be generated
if something has changed.
Request type for {@link Tdjson#openMessageContent}.
*/
export interface OpenMessageContent {
    '@type': 'openMessageContent';
    /**
Chat identifier of the message.
*/
    chat_id: number;
    /**
Identifier of the message with the opened content.
*/
    message_id: number;
}
/**
Informs TDLib that a message with an animated emoji was clicked by the user. Returns a big animated sticker to be played
or a 404 error if usual animation needs to be played.
Request type for {@link Tdjson#clickAnimatedEmojiMessage}.
*/
export interface ClickAnimatedEmojiMessage {
    '@type': 'clickAnimatedEmojiMessage';
    /**
Chat identifier of the message.
*/
    chat_id: number;
    /**
Identifier of the clicked message.
*/
    message_id: number;
}
/**
Returns an HTTPS or a tg: link with the given type. Can be called before authorization.
Request type for {@link Tdjson#getInternalLink}.
*/
export interface GetInternalLink {
    '@type': 'getInternalLink';
    /**
Expected type of the link.
*/
    type: InternalLinkType;
    /**
Pass true to create an HTTPS link (only available for some link types); pass false to create a tg: link.
*/
    is_http?: boolean;
}
/**
Returns information about the type of internal link. Returns a 404 error if the link is not internal. Can be called
before authorization.
Request type for {@link Tdjson#getInternalLinkType}.
*/
export interface GetInternalLinkType {
    '@type': 'getInternalLinkType';
    /**
The link.
*/
    link: string;
}
/**
Returns information about an action to be done when the current user clicks an external link. Don't use this method for
links from secret chats if link preview is disabled in secret chats.
Request type for {@link Tdjson#getExternalLinkInfo}.
*/
export interface GetExternalLinkInfo {
    '@type': 'getExternalLinkInfo';
    /**
The link.
*/
    link: string;
}
/**
Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP
link. Use the method getExternalLinkInfo to find whether a prior user confirmation is needed.
Request type for {@link Tdjson#getExternalLink}.
*/
export interface GetExternalLink {
    '@type': 'getExternalLink';
    /**
The HTTP link.
*/
    link: string;
    /**
Pass true if the current user allowed the bot, returned in getExternalLinkInfo, to send them messages.
*/
    allow_write_access?: boolean;
}
/**
Marks all mentions in a chat as read.
Request type for {@link Tdjson#readAllChatMentions}.
*/
export interface ReadAllChatMentions {
    '@type': 'readAllChatMentions';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Marks all mentions in a forum topic as read.
Request type for {@link Tdjson#readAllMessageThreadMentions}.
*/
export interface ReadAllMessageThreadMentions {
    '@type': 'readAllMessageThreadMentions';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message thread identifier in which mentions are marked as read.
*/
    message_thread_id: number;
}
/**
Marks all reactions in a chat or a forum topic as read.
Request type for {@link Tdjson#readAllChatReactions}.
*/
export interface ReadAllChatReactions {
    '@type': 'readAllChatReactions';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Marks all reactions in a forum topic as read.
Request type for {@link Tdjson#readAllMessageThreadReactions}.
*/
export interface ReadAllMessageThreadReactions {
    '@type': 'readAllMessageThreadReactions';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message thread identifier in which reactions are marked as read.
*/
    message_thread_id: number;
}
/**
Returns an existing chat corresponding to a given user.
Request type for {@link Tdjson#createPrivateChat}.
*/
export interface CreatePrivateChat {
    '@type': 'createPrivateChat';
    /**
User identifier.
*/
    user_id: number;
    /**
Pass true to create the chat without a network request. In this case all information about the chat except its type,
title and photo can be incorrect.
*/
    force?: boolean;
}
/**
Returns an existing chat corresponding to a known basic group.
Request type for {@link Tdjson#createBasicGroupChat}.
*/
export interface CreateBasicGroupChat {
    '@type': 'createBasicGroupChat';
    /**
Basic group identifier.
*/
    basic_group_id: number;
    /**
Pass true to create the chat without a network request. In this case all information about the chat except its type,
title and photo can be incorrect.
*/
    force?: boolean;
}
/**
Returns an existing chat corresponding to a known supergroup or channel.
Request type for {@link Tdjson#createSupergroupChat}.
*/
export interface CreateSupergroupChat {
    '@type': 'createSupergroupChat';
    /**
Supergroup or channel identifier.
*/
    supergroup_id: number;
    /**
Pass true to create the chat without a network request. In this case all information about the chat except its type,
title and photo can be incorrect.
*/
    force?: boolean;
}
/**
Returns an existing chat corresponding to a known secret chat.
Request type for {@link Tdjson#createSecretChat}.
*/
export interface CreateSecretChat {
    '@type': 'createSecretChat';
    /**
Secret chat identifier.
*/
    secret_chat_id: number;
}
/**
Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns information about the newly
created chat.
Request type for {@link Tdjson#createNewBasicGroupChat}.
*/
export interface CreateNewBasicGroupChat {
    '@type': 'createNewBasicGroupChat';
    /**
Identifiers of users to be added to the basic group; may be empty to create a basic group without other members.
*/
    user_ids: number[];
    /**
Title of the new basic group; 1-128 characters.
*/
    title: string;
    /**
Message auto-delete time value, in seconds; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then
messages aren't deleted automatically.
*/
    message_auto_delete_time: number;
}
/**
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created
chat.
Request type for {@link Tdjson#createNewSupergroupChat}.
*/
export interface CreateNewSupergroupChat {
    '@type': 'createNewSupergroupChat';
    /**
Title of the new chat; 1-128 characters.
*/
    title: string;
    /**
Pass true to create a forum supergroup chat.
*/
    is_forum?: boolean;
    /**
Pass true to create a channel chat; ignored if a forum is created.
*/
    is_channel?: boolean;
    /**
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created
chat.
*/
    description: string;
    /**
Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat.
*/
    location: ChatLocation;
    /**
Message auto-delete time value, in seconds; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then
messages aren't deleted automatically.
*/
    message_auto_delete_time: number;
    /**
Pass true to create a supergroup for importing messages using importMessages.
*/
    for_import?: boolean;
}
/**
Creates a new secret chat. Returns the newly created chat.
Request type for {@link Tdjson#createNewSecretChat}.
*/
export interface CreateNewSecretChat {
    '@type': 'createNewSecretChat';
    /**
Identifier of the target user.
*/
    user_id: number;
}
/**
Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and
messageChatUpgradeFrom; requires owner privileges. Deactivates the original basic group.
Request type for {@link Tdjson#upgradeBasicGroupChatToSupergroupChat}.
*/
export interface UpgradeBasicGroupChatToSupergroupChat {
    '@type': 'upgradeBasicGroupChatToSupergroupChat';
    /**
Identifier of the chat to upgrade.
*/
    chat_id: number;
}
/**
Returns chat lists to which the chat can be added. This is an offline request.
Request type for {@link Tdjson#getChatListsToAddChat}.
*/
export interface GetChatListsToAddChat {
    '@type': 'getChatListsToAddChat';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Adds a chat to a chat list. A chat can't be simultaneously in Main and Archive chat lists, so it is automatically
removed from another one if needed.
Request type for {@link Tdjson#addChatToList}.
*/
export interface AddChatToList {
    '@type': 'addChatToList';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The chat list. Use getChatListsToAddChat to get suitable chat lists.
*/
    chat_list: ChatList;
}
/**
Returns information about a chat folder by its identifier.
Request type for {@link Tdjson#getChatFolder}.
*/
export interface GetChatFolder {
    '@type': 'getChatFolder';
    /**
Chat folder identifier.
*/
    chat_folder_id: number;
}
/**
Creates new chat folder. Returns information about the created chat folder. There can be up to
getOption("chat_folder_count_max") chat folders, but the limit can be increased with Telegram Premium.
Request type for {@link Tdjson#createChatFolder}.
*/
export interface CreateChatFolder {
    '@type': 'createChatFolder';
    /**
The new chat folder.
*/
    folder: ChatFolder;
}
/**
Edits existing chat folder. Returns information about the edited chat folder.
Request type for {@link Tdjson#editChatFolder}.
*/
export interface EditChatFolder {
    '@type': 'editChatFolder';
    /**
Chat folder identifier.
*/
    chat_folder_id: number;
    /**
The edited chat folder.
*/
    folder: ChatFolder;
}
/**
Deletes existing chat folder.
Request type for {@link Tdjson#deleteChatFolder}.
*/
export interface DeleteChatFolder {
    '@type': 'deleteChatFolder';
    /**
Chat folder identifier.
*/
    chat_folder_id: number;
    /**
Identifiers of the chats to leave. The chats must be pinned or always included in the folder.
*/
    leave_chat_ids: number[];
}
/**
Returns identifiers of pinned or always included chats from a chat folder, which are suggested to be left when the chat
folder is deleted.
Request type for {@link Tdjson#getChatFolderChatsToLeave}.
*/
export interface GetChatFolderChatsToLeave {
    '@type': 'getChatFolderChatsToLeave';
    /**
Chat folder identifier.
*/
    chat_folder_id: number;
}
/**
Returns approximate number of chats in a being created chat folder. Main and archive chat lists must be fully preloaded
for this function to work correctly.
Request type for {@link Tdjson#getChatFolderChatCount}.
*/
export interface GetChatFolderChatCount {
    '@type': 'getChatFolderChatCount';
    /**
The new chat folder.
*/
    folder: ChatFolder;
}
/**
Changes the order of chat folders.
Request type for {@link Tdjson#reorderChatFolders}.
*/
export interface ReorderChatFolders {
    '@type': 'reorderChatFolders';
    /**
Identifiers of chat folders in the new correct order.
*/
    chat_folder_ids: number[];
    /**
Position of the main chat list among chat folders, 0-based. Can be non-zero only for Premium users.
*/
    main_chat_list_position: number;
}
/**
Toggles whether chat folder tags are enabled.
Request type for {@link Tdjson#toggleChatFolderTags}.
*/
export interface ToggleChatFolderTags {
    '@type': 'toggleChatFolderTags';
    /**
Pass true to enable folder tags; pass false to disable them.
*/
    are_tags_enabled?: boolean;
}
/**
Returns recommended chat folders for the current user.
Request type for {@link Tdjson#getRecommendedChatFolders}.
*/
export interface GetRecommendedChatFolders {
    '@type': 'getRecommendedChatFolders';
}
/**
Returns default icon name for a folder. Can be called synchronously.
Request type for {@link Tdjson#getChatFolderDefaultIconName}.
*/
export interface GetChatFolderDefaultIconName {
    '@type': 'getChatFolderDefaultIconName';
    /**
Chat folder.
*/
    folder: ChatFolder;
}
/**
Returns identifiers of chats from a chat folder, suitable for adding to a chat folder invite link.
Request type for {@link Tdjson#getChatsForChatFolderInviteLink}.
*/
export interface GetChatsForChatFolderInviteLink {
    '@type': 'getChatsForChatFolderInviteLink';
    /**
Chat folder identifier.
*/
    chat_folder_id: number;
}
/**
Creates a new invite link for a chat folder. A link can be created for a chat folder if it has only pinned and included
chats.
Request type for {@link Tdjson#createChatFolderInviteLink}.
*/
export interface CreateChatFolderInviteLink {
    '@type': 'createChatFolderInviteLink';
    /**
Chat folder identifier.
*/
    chat_folder_id: number;
    /**
Name of the link; 0-32 characters.
*/
    name: string;
    /**
Identifiers of chats to be accessible by the invite link. Use getChatsForChatFolderInviteLink to get suitable chats.
Basic groups will be automatically converted to supergroups before link creation.
*/
    chat_ids: number[];
}
/**
Returns invite links created by the current user for a shareable chat folder.
Request type for {@link Tdjson#getChatFolderInviteLinks}.
*/
export interface GetChatFolderInviteLinks {
    '@type': 'getChatFolderInviteLinks';
    /**
Chat folder identifier.
*/
    chat_folder_id: number;
}
/**
Edits an invite link for a chat folder.
Request type for {@link Tdjson#editChatFolderInviteLink}.
*/
export interface EditChatFolderInviteLink {
    '@type': 'editChatFolderInviteLink';
    /**
Chat folder identifier.
*/
    chat_folder_id: number;
    /**
Invite link to be edited.
*/
    invite_link: string;
    /**
New name of the link; 0-32 characters.
*/
    name: string;
    /**
New identifiers of chats to be accessible by the invite link. Use getChatsForChatFolderInviteLink to get suitable chats.
Basic groups will be automatically converted to supergroups before link editing.
*/
    chat_ids: number[];
}
/**
Deletes an invite link for a chat folder.
Request type for {@link Tdjson#deleteChatFolderInviteLink}.
*/
export interface DeleteChatFolderInviteLink {
    '@type': 'deleteChatFolderInviteLink';
    /**
Chat folder identifier.
*/
    chat_folder_id: number;
    /**
Invite link to be deleted.
*/
    invite_link: string;
}
/**
Checks the validity of an invite link for a chat folder and returns information about the corresponding chat folder.
Request type for {@link Tdjson#checkChatFolderInviteLink}.
*/
export interface CheckChatFolderInviteLink {
    '@type': 'checkChatFolderInviteLink';
    /**
Invite link to be checked.
*/
    invite_link: string;
}
/**
Adds a chat folder by an invite link.
Request type for {@link Tdjson#addChatFolderByInviteLink}.
*/
export interface AddChatFolderByInviteLink {
    '@type': 'addChatFolderByInviteLink';
    /**
Invite link for the chat folder.
*/
    invite_link: string;
    /**
Identifiers of the chats added to the chat folder. The chats are automatically joined if they aren't joined yet.
*/
    chat_ids: number[];
}
/**
Returns new chats added to a shareable chat folder by its owner. The method must be called at most once in
getOption("chat_folder_new_chats_update_period") for the given chat folder.
Request type for {@link Tdjson#getChatFolderNewChats}.
*/
export interface GetChatFolderNewChats {
    '@type': 'getChatFolderNewChats';
    /**
Chat folder identifier.
*/
    chat_folder_id: number;
}
/**
Process new chats added to a shareable chat folder by its owner.
Request type for {@link Tdjson#processChatFolderNewChats}.
*/
export interface ProcessChatFolderNewChats {
    '@type': 'processChatFolderNewChats';
    /**
Chat folder identifier.
*/
    chat_folder_id: number;
    /**
Identifiers of the new chats, which are added to the chat folder. The chats are automatically joined if they aren't
joined yet.
*/
    added_chat_ids: number[];
}
/**
Returns settings for automatic moving of chats to and from the Archive chat lists.
Request type for {@link Tdjson#getArchiveChatListSettings}.
*/
export interface GetArchiveChatListSettings {
    '@type': 'getArchiveChatListSettings';
}
/**
Changes settings for automatic moving of chats to and from the Archive chat lists.
Request type for {@link Tdjson#setArchiveChatListSettings}.
*/
export interface SetArchiveChatListSettings {
    '@type': 'setArchiveChatListSettings';
    /**
New settings.
*/
    settings: ArchiveChatListSettings;
}
/**
Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info member
right.
Request type for {@link Tdjson#setChatTitle}.
*/
export interface SetChatTitle {
    '@type': 'setChatTitle';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New title of the chat; 1-128 characters.
*/
    title: string;
}
/**
Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info member
right.
Request type for {@link Tdjson#setChatPhoto}.
*/
export interface SetChatPhoto {
    '@type': 'setChatPhoto';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New chat photo; pass null to delete the chat photo.
*/
    photo: InputChatPhoto;
}
/**
Changes accent color and background custom emoji of a channel chat. Requires can_change_info administrator right.
Request type for {@link Tdjson#setChatAccentColor}.
*/
export interface SetChatAccentColor {
    '@type': 'setChatAccentColor';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the accent color to use. The chat must have at least accentColor.min_channel_chat_boost_level boost level
to pass the corresponding color.
*/
    accent_color_id: number;
    /**
Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none. Use
chatBoostLevelFeatures.can_set_background_custom_emoji to check whether a custom emoji can be set.
*/
    background_custom_emoji_id: string;
}
/**
Changes accent color and background custom emoji for profile of a supergroup or channel chat. Requires can_change_info
administrator right.
Request type for {@link Tdjson#setChatProfileAccentColor}.
*/
export interface SetChatProfileAccentColor {
    '@type': 'setChatProfileAccentColor';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the accent color to use for profile; pass -1 if none. The chat must have at least
profileAccentColor.min_supergroup_chat_boost_level for supergroups or profileAccentColor.min_channel_chat_boost_level
for channels boost level to pass the corresponding color.
*/
    profile_accent_color_id: number;
    /**
Identifier of a custom emoji to be shown on the chat's profile photo background; 0 if none. Use
chatBoostLevelFeatures.can_set_profile_background_custom_emoji to check whether a custom emoji can be set.
*/
    profile_background_custom_emoji_id: string;
}
/**
Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires change_info administrator
right in basic groups, supergroups and channels. Message auto-delete time can't be changed in a chat with the current
user (Saved Messages) and the chat 777000 (Telegram).
Request type for {@link Tdjson#setChatMessageAutoDeleteTime}.
*/
export interface SetChatMessageAutoDeleteTime {
    '@type': 'setChatMessageAutoDeleteTime';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New time value, in seconds; unless the chat is secret, it must be from 0 up to 365 * 86400 and be divisible by 86400. If
0, then messages aren't deleted automatically.
*/
    message_auto_delete_time: number;
}
/**
Changes the emoji status of a chat. Use chatBoostLevelFeatures.can_set_emoji_status to check whether an emoji status can
be set. Requires can_change_info administrator right.
Request type for {@link Tdjson#setChatEmojiStatus}.
*/
export interface SetChatEmojiStatus {
    '@type': 'setChatEmojiStatus';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New emoji status; pass null to remove emoji status.
*/
    emoji_status: EmojiStatus;
}
/**
Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members
administrator right.
Request type for {@link Tdjson#setChatPermissions}.
*/
export interface SetChatPermissions {
    '@type': 'setChatPermissions';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New non-administrator members permissions in the chat.
*/
    permissions: ChatPermissions;
}
/**
Sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats
with sufficient boost level and can_change_info administrator right.
Request type for {@link Tdjson#setChatBackground}.
*/
export interface SetChatBackground {
    '@type': 'setChatBackground';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The input background to use; pass null to create a new filled or chat theme background.
*/
    background: InputBackground;
    /**
Background type; pass null to use default background type for the chosen background; backgroundTypeChatTheme isn't
supported for private and secret chats. Use chatBoostLevelFeatures.chat_theme_background_count and
chatBoostLevelFeatures.can_set_custom_background to check whether the background type can be set in the boosted chat.
*/
    type: BackgroundType;
    /**
Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of
background.
*/
    dark_theme_dimming: number;
    /**
Pass true to set background only for self; pass false to set background for all chat users. Always false for backgrounds
set in boosted chats. Background can be set for both users only by Telegram Premium users and if set background isn't of
the type inputBackgroundPrevious.
*/
    only_for_self?: boolean;
}
/**
Deletes background in a specific chat.
Request type for {@link Tdjson#deleteChatBackground}.
*/
export interface DeleteChatBackground {
    '@type': 'deleteChatBackground';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Pass true to restore previously set background. Can be used only in private and secret chats with non-deleted users if
userFullInfo.set_chat_background == true. Supposed to be used from messageChatSetBackground messages with the currently
set background that was set for both sides by the other user.
*/
    restore_previous?: boolean;
}
/**
Changes the chat theme. Supported only in private and secret chats.
Request type for {@link Tdjson#setChatTheme}.
*/
export interface SetChatTheme {
    '@type': 'setChatTheme';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Name of the new chat theme; pass an empty string to return the default theme.
*/
    theme_name: string;
}
/**
Changes the draft message in a chat.
Request type for {@link Tdjson#setChatDraftMessage}.
*/
export interface SetChatDraftMessage {
    '@type': 'setChatDraftMessage';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
If not 0, the message thread identifier in which the draft was changed.
*/
    message_thread_id: number;
    /**
New draft message; pass null to remove the draft. All files in draft message content must be of the type inputFileLocal.
Media thumbnails and captions are ignored.
*/
    draft_message: DraftMessage;
}
/**
Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages)
can't be changed.
Request type for {@link Tdjson#setChatNotificationSettings}.
*/
export interface SetChatNotificationSettings {
    '@type': 'setChatNotificationSettings';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New notification settings for the chat. If the chat is muted for more than 366 days, it is considered to be muted
forever.
*/
    notification_settings: ChatNotificationSettings;
}
/**
Changes the ability of users to save, forward, or copy chat content. Supported only for basic groups, supergroups and
channels. Requires owner privileges.
Request type for {@link Tdjson#toggleChatHasProtectedContent}.
*/
export interface ToggleChatHasProtectedContent {
    '@type': 'toggleChatHasProtectedContent';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of has_protected_content.
*/
    has_protected_content?: boolean;
}
/**
Changes the view_as_topics setting of a forum chat or Saved Messages.
Request type for {@link Tdjson#toggleChatViewAsTopics}.
*/
export interface ToggleChatViewAsTopics {
    '@type': 'toggleChatViewAsTopics';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of view_as_topics.
*/
    view_as_topics?: boolean;
}
/**
Changes the translatable state of a chat.
Request type for {@link Tdjson#toggleChatIsTranslatable}.
*/
export interface ToggleChatIsTranslatable {
    '@type': 'toggleChatIsTranslatable';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of is_translatable.
*/
    is_translatable?: boolean;
}
/**
Changes the marked as unread state of a chat.
Request type for {@link Tdjson#toggleChatIsMarkedAsUnread}.
*/
export interface ToggleChatIsMarkedAsUnread {
    '@type': 'toggleChatIsMarkedAsUnread';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of is_marked_as_unread.
*/
    is_marked_as_unread?: boolean;
}
/**
Changes the value of the default disable_notification parameter, used when a message is sent to a chat.
Request type for {@link Tdjson#toggleChatDefaultDisableNotification}.
*/
export interface ToggleChatDefaultDisableNotification {
    '@type': 'toggleChatDefaultDisableNotification';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of default_disable_notification.
*/
    default_disable_notification?: boolean;
}
/**
Changes reactions, available in a chat. Available for basic groups, supergroups, and channels. Requires can_change_info
member right.
Request type for {@link Tdjson#setChatAvailableReactions}.
*/
export interface SetChatAvailableReactions {
    '@type': 'setChatAvailableReactions';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Reactions available in the chat. All explicitly specified emoji reactions must be active. In channel chats up to the
chat's boost level custom emoji reactions can be explicitly specified.
*/
    available_reactions: ChatAvailableReactions;
}
/**
Changes application-specific data associated with a chat.
Request type for {@link Tdjson#setChatClientData}.
*/
export interface SetChatClientData {
    '@type': 'setChatClientData';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New value of client_data.
*/
    client_data: string;
}
/**
Changes information about a chat. Available for basic groups, supergroups, and channels. Requires can_change_info member
right.
Request type for {@link Tdjson#setChatDescription}.
*/
export interface SetChatDescription {
    '@type': 'setChatDescription';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Changes information about a chat. Available for basic groups, supergroups, and channels. Requires can_change_info member
right.
*/
    description: string;
}
/**
Changes the discussion group of a channel chat; requires can_change_info administrator right in the channel if it is
specified.
Request type for {@link Tdjson#setChatDiscussionGroup}.
*/
export interface SetChatDiscussionGroup {
    '@type': 'setChatDiscussionGroup';
    /**
Identifier of the channel chat. Pass 0 to remove a link from the supergroup passed in the second argument to a linked
channel chat (requires can_pin_messages member right in the supergroup).
*/
    chat_id: number;
    /**
Identifier of a new channel's discussion group. Use 0 to remove the discussion group. Use the method
getSuitableDiscussionChats to find all suitable groups. Basic group chats must be first upgraded to supergroup chats. If
new chat members don't have access to old messages in the supergroup, then toggleSupergroupIsAllHistoryAvailable must be
used first to change that.
*/
    discussion_chat_id: number;
}
/**
Changes the location of a chat. Available only for some location-based supergroups, use
supergroupFullInfo.can_set_location to check whether the method is allowed to use.
Request type for {@link Tdjson#setChatLocation}.
*/
export interface SetChatLocation {
    '@type': 'setChatLocation';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New location for the chat; must be valid and not null.
*/
    location: ChatLocation;
}
/**
Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members right.
Request type for {@link Tdjson#setChatSlowModeDelay}.
*/
export interface SetChatSlowModeDelay {
    '@type': 'setChatSlowModeDelay';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
New slow mode delay for the chat, in seconds; must be one of 0, 10, 30, 60, 300, 900, 3600.
*/
    slow_mode_delay: number;
}
/**
Pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned.
Request type for {@link Tdjson#pinChatMessage}.
*/
export interface PinChatMessage {
    '@type': 'pinChatMessage';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Identifier of the new pinned message.
*/
    message_id: number;
    /**
Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private
chats.
*/
    disable_notification?: boolean;
    /**
Pass true to pin the message only for self; private chats only.
*/
    only_for_self?: boolean;
}
/**
Removes a pinned message from a chat; requires can_pin_messages member right if the chat is a basic group or supergroup,
or can_edit_messages administrator right if the chat is a channel.
Request type for {@link Tdjson#unpinChatMessage}.
*/
export interface UnpinChatMessage {
    '@type': 'unpinChatMessage';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Identifier of the removed pinned message.
*/
    message_id: number;
}
/**
Removes all pinned messages from a chat; requires can_pin_messages member right if the chat is a basic group or
supergroup, or can_edit_messages administrator right if the chat is a channel.
Request type for {@link Tdjson#unpinAllChatMessages}.
*/
export interface UnpinAllChatMessages {
    '@type': 'unpinAllChatMessages';
    /**
Identifier of the chat.
*/
    chat_id: number;
}
/**
Removes all pinned messages from a forum topic; requires can_pin_messages member right in the supergroup.
Request type for {@link Tdjson#unpinAllMessageThreadMessages}.
*/
export interface UnpinAllMessageThreadMessages {
    '@type': 'unpinAllMessageThreadMessages';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Message thread identifier in which messages will be unpinned.
*/
    message_thread_id: number;
}
/**
Adds the current user as a new member to a chat. Private and secret chats can't be joined using this method. May return
an error with a message "INVITE_REQUEST_SENT" if only a join request was created.
Request type for {@link Tdjson#joinChat}.
*/
export interface JoinChat {
    '@type': 'joinChat';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Removes the current user from chat members. Private and secret chats can't be left using this method.
Request type for {@link Tdjson#leaveChat}.
*/
export interface LeaveChat {
    '@type': 'leaveChat';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Adds a new member to a chat; requires can_invite_users member right. Members can't be added to private or secret chats.
Returns information about members that weren't added.
Request type for {@link Tdjson#addChatMember}.
*/
export interface AddChatMember {
    '@type': 'addChatMember';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the user.
*/
    user_id: number;
    /**
The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and
channels, or if the added user is a bot.
*/
    forward_limit: number;
}
/**
Adds multiple new members to a chat; requires can_invite_users member right. Currently, this method is only available
for supergroups and channels. This method can't be used to join a chat. Members can't be added to a channel if it has
more than 200 members. Returns information about members that weren't added.
Request type for {@link Tdjson#addChatMembers}.
*/
export interface AddChatMembers {
    '@type': 'addChatMembers';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifiers of the users to be added to the chat. The maximum number of added users is 20 for supergroups and 100 for
channels.
*/
    user_ids: number[];
}
/**
Changes the status of a chat member; requires can_invite_users member right to add a chat member, can_promote_members
administrator right to change administrator rights of the member, and can_restrict_members administrator right to change
restrictions of a user. This function is currently not suitable for transferring chat ownership; use
transferChatOwnership instead. Use addChatMember or banChatMember if some additional parameters needs to be passed.
Request type for {@link Tdjson#setChatMemberStatus}.
*/
export interface SetChatMemberStatus {
    '@type': 'setChatMemberStatus';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Member identifier. Chats can be only banned and unbanned in supergroups and channels.
*/
    member_id: MessageSender;
    /**
The new status of the member in the chat.
*/
    status: ChatMemberStatus;
}
/**
Bans a member in a chat; requires can_restrict_members administrator right. Members can't be banned in private or secret
chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links,
etc., unless unbanned first.
Request type for {@link Tdjson#banChatMember}.
*/
export interface BanChatMember {
    '@type': 'banChatMember';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Member identifier.
*/
    member_id: MessageSender;
    /**
Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days
or for less than 30 seconds from the current time, the user is considered to be banned forever. Ignored in basic groups
and if a chat is banned.
*/
    banned_until_date: number;
    /**
Pass true to delete all messages in the chat for the user that is being removed. Always true for supergroups and
channels.
*/
    revoke_messages?: boolean;
}
/**
Checks whether the current session can be used to transfer a chat ownership to another user.
Request type for {@link Tdjson#canTransferOwnership}.
*/
export interface CanTransferOwnership {
    '@type': 'canTransferOwnership';
}
/**
Changes the owner of a chat; requires owner privileges in the chat. Use the method canTransferOwnership to check whether
the ownership can be transferred from the current session. Available only for supergroups and channel chats.
Request type for {@link Tdjson#transferChatOwnership}.
*/
export interface TransferChatOwnership {
    '@type': 'transferChatOwnership';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted
user.
*/
    user_id: number;
    /**
The 2-step verification password of the current user.
*/
    password: string;
}
/**
Returns information about a single member of a chat.
Request type for {@link Tdjson#getChatMember}.
*/
export interface GetChatMember {
    '@type': 'getChatMember';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Member identifier.
*/
    member_id: MessageSender;
}
/**
Searches for a specified query in the first name, last name and usernames of the members of a specified chat. Requires
administrator rights if the chat is a channel.
Request type for {@link Tdjson#searchChatMembers}.
*/
export interface SearchChatMembers {
    '@type': 'searchChatMembers';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Query to search for.
*/
    query: string;
    /**
The maximum number of users to be returned; up to 200.
*/
    limit: number;
    /**
The type of users to search for; pass null to search among all chat members.
*/
    filter: ChatMembersFilter;
}
/**
Returns a list of administrators of the chat with their custom titles.
Request type for {@link Tdjson#getChatAdministrators}.
*/
export interface GetChatAdministrators {
    '@type': 'getChatAdministrators';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Clears message drafts in all chats.
Request type for {@link Tdjson#clearAllDraftMessages}.
*/
export interface ClearAllDraftMessages {
    '@type': 'clearAllDraftMessages';
    /**
Pass true to keep local message drafts in secret chats.
*/
    exclude_secret_chats?: boolean;
}
/**
Returns saved notification sound by its identifier. Returns a 404 error if there is no saved notification sound with the
specified identifier.
Request type for {@link Tdjson#getSavedNotificationSound}.
*/
export interface GetSavedNotificationSound {
    '@type': 'getSavedNotificationSound';
    /**
Identifier of the notification sound.
*/
    notification_sound_id: string;
}
/**
Returns the list of saved notification sounds. If a sound isn't in the list, then default sound needs to be used.
Request type for {@link Tdjson#getSavedNotificationSounds}.
*/
export interface GetSavedNotificationSounds {
    '@type': 'getSavedNotificationSounds';
}
/**
Adds a new notification sound to the list of saved notification sounds. The new notification sound is added to the top
of the list. If it is already in the list, its position isn't changed.
Request type for {@link Tdjson#addSavedNotificationSound}.
*/
export interface AddSavedNotificationSound {
    '@type': 'addSavedNotificationSound';
    /**
Notification sound file to add.
*/
    sound: InputFile;
}
/**
Removes a notification sound from the list of saved notification sounds.
Request type for {@link Tdjson#removeSavedNotificationSound}.
*/
export interface RemoveSavedNotificationSound {
    '@type': 'removeSavedNotificationSound';
    /**
Identifier of the notification sound.
*/
    notification_sound_id: string;
}
/**
Returns the list of chats with non-default notification settings for new messages.
Request type for {@link Tdjson#getChatNotificationSettingsExceptions}.
*/
export interface GetChatNotificationSettingsExceptions {
    '@type': 'getChatNotificationSettingsExceptions';
    /**
If specified, only chats from the scope will be returned; pass null to return chats from all scopes.
*/
    scope: NotificationSettingsScope;
    /**
Pass true to include in the response chats with only non-default sound.
*/
    compare_sound?: boolean;
}
/**
Returns the notification settings for chats of a given type.
Request type for {@link Tdjson#getScopeNotificationSettings}.
*/
export interface GetScopeNotificationSettings {
    '@type': 'getScopeNotificationSettings';
    /**
Types of chats for which to return the notification settings information.
*/
    scope: NotificationSettingsScope;
}
/**
Changes notification settings for chats of a given type.
Request type for {@link Tdjson#setScopeNotificationSettings}.
*/
export interface SetScopeNotificationSettings {
    '@type': 'setScopeNotificationSettings';
    /**
Types of chats for which to change the notification settings.
*/
    scope: NotificationSettingsScope;
    /**
The new notification settings for the given scope.
*/
    notification_settings: ScopeNotificationSettings;
}
/**
Changes notification settings for reactions.
Request type for {@link Tdjson#setReactionNotificationSettings}.
*/
export interface SetReactionNotificationSettings {
    '@type': 'setReactionNotificationSettings';
    /**
The new notification settings for reactions.
*/
    notification_settings: ReactionNotificationSettings;
}
/**
Resets all chat and scope notification settings to their default values. By default, all chats are unmuted and message
previews are shown.
Request type for {@link Tdjson#resetAllNotificationSettings}.
*/
export interface ResetAllNotificationSettings {
    '@type': 'resetAllNotificationSettings';
}
/**
Changes the pinned state of a chat. There can be up to
getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same
number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium.
Request type for {@link Tdjson#toggleChatIsPinned}.
*/
export interface ToggleChatIsPinned {
    '@type': 'toggleChatIsPinned';
    /**
Chat list in which to change the pinned state of the chat.
*/
    chat_list: ChatList;
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Pass true to pin the chat; pass false to unpin it.
*/
    is_pinned?: boolean;
}
/**
Changes the order of pinned chats.
Request type for {@link Tdjson#setPinnedChats}.
*/
export interface SetPinnedChats {
    '@type': 'setPinnedChats';
    /**
Chat list in which to change the order of pinned chats.
*/
    chat_list: ChatList;
    /**
The new list of pinned chats.
*/
    chat_ids: number[];
}
/**
Traverse all chats in a chat list and marks all messages in the chats as read.
Request type for {@link Tdjson#readChatList}.
*/
export interface ReadChatList {
    '@type': 'readChatList';
    /**
Chat list in which to mark all chats as read.
*/
    chat_list: ChatList;
}
/**
Returns the current weather in the given location.
Request type for {@link Tdjson#getCurrentWeather}.
*/
export interface GetCurrentWeather {
    '@type': 'getCurrentWeather';
    /**
The location.
*/
    location: Location;
}
/**
Returns a story.
Request type for {@link Tdjson#getStory}.
*/
export interface GetStory {
    '@type': 'getStory';
    /**
Identifier of the chat that posted the story.
*/
    story_sender_chat_id: number;
    /**
Story identifier.
*/
    story_id: number;
    /**
Pass true to get only locally available information without sending network requests.
*/
    only_local?: boolean;
}
/**
Returns supergroup and channel chats in which the current user has the right to post stories. The chats must be
rechecked with canSendStory before actually trying to post a story there.
Request type for {@link Tdjson#getChatsToSendStories}.
*/
export interface GetChatsToSendStories {
    '@type': 'getChatsToSendStories';
}
/**
Checks whether the current user can send a story on behalf of a chat; requires can_post_stories right for supergroup and
channel chats.
Request type for {@link Tdjson#canSendStory}.
*/
export interface CanSendStory {
    '@type': 'canSendStory';
    /**
Chat identifier. Pass Saved Messages chat identifier when posting a story on behalf of the current user.
*/
    chat_id: number;
}
/**
Sends a new story to a chat; requires can_post_stories right for supergroup and channel chats. Returns a temporary
story.
Request type for {@link Tdjson#sendStory}.
*/
export interface SendStory {
    '@type': 'sendStory';
    /**
Identifier of the chat that will post the story. Pass Saved Messages chat identifier when posting a story on behalf of
the current user.
*/
    chat_id: number;
    /**
Content of the story.
*/
    content: InputStoryContent;
    /**
Clickable rectangle areas to be shown on the story media; pass null if none.
*/
    areas: InputStoryAreas;
    /**
Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters; can have entities
only if getOption("can_use_text_entities_in_story_caption").
*/
    caption: FormattedText;
    /**
The privacy settings for the story; ignored for stories sent to supergroup and channel chats.
*/
    privacy_settings: StoryPrivacySettings;
    /**
Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400
for Telegram Premium users, and 86400 otherwise.
*/
    active_period: number;
    /**
Full identifier of the original story, which content was used to create the story; pass null if the story isn't repost
of another story.
*/
    from_story_full_id: StoryFullId;
    /**
Pass true to keep the story accessible after expiration.
*/
    is_posted_to_chat_page?: boolean;
    /**
Pass true if the content of the story must be protected from forwarding and screenshotting.
*/
    protect_content?: boolean;
}
/**
Changes content and caption of a story. Can be called only if story.can_be_edited == true.
Request type for {@link Tdjson#editStory}.
*/
export interface EditStory {
    '@type': 'editStory';
    /**
Identifier of the chat that posted the story.
*/
    story_sender_chat_id: number;
    /**
Identifier of the story to edit.
*/
    story_id: number;
    /**
New content of the story; pass null to keep the current content.
*/
    content: InputStoryContent;
    /**
New clickable rectangle areas to be shown on the story media; pass null to keep the current areas. Areas can't be edited
if story content isn't changed.
*/
    areas: InputStoryAreas;
    /**
New story caption; pass null to keep the current caption.
*/
    caption: FormattedText;
}
/**
Changes cover of a video story. Can be called only if story.can_be_edited == true and the story isn't being edited now.
Request type for {@link Tdjson#editStoryCover}.
*/
export interface EditStoryCover {
    '@type': 'editStoryCover';
    /**
Identifier of the chat that posted the story.
*/
    story_sender_chat_id: number;
    /**
Identifier of the story to edit.
*/
    story_id: number;
    /**
New timestamp of the frame, which will be used as video thumbnail.
*/
    cover_frame_timestamp: number;
}
/**
Changes privacy settings of a story. The method can be called only for stories posted on behalf of the current user and
if story.can_be_edited == true.
Request type for {@link Tdjson#setStoryPrivacySettings}.
*/
export interface SetStoryPrivacySettings {
    '@type': 'setStoryPrivacySettings';
    /**
Identifier of the story.
*/
    story_id: number;
    /**
The new privacy settings for the story.
*/
    privacy_settings: StoryPrivacySettings;
}
/**
Toggles whether a story is accessible after expiration. Can be called only if story.can_toggle_is_posted_to_chat_page ==
true.
Request type for {@link Tdjson#toggleStoryIsPostedToChatPage}.
*/
export interface ToggleStoryIsPostedToChatPage {
    '@type': 'toggleStoryIsPostedToChatPage';
    /**
Identifier of the chat that posted the story.
*/
    story_sender_chat_id: number;
    /**
Identifier of the story.
*/
    story_id: number;
    /**
Pass true to make the story accessible after expiration; pass false to make it private.
*/
    is_posted_to_chat_page?: boolean;
}
/**
Deletes a previously sent story. Can be called only if story.can_be_deleted == true.
Request type for {@link Tdjson#deleteStory}.
*/
export interface DeleteStory {
    '@type': 'deleteStory';
    /**
Identifier of the chat that posted the story.
*/
    story_sender_chat_id: number;
    /**
Identifier of the story to delete.
*/
    story_id: number;
}
/**
Returns the list of chats with non-default notification settings for stories.
Request type for {@link Tdjson#getStoryNotificationSettingsExceptions}.
*/
export interface GetStoryNotificationSettingsExceptions {
    '@type': 'getStoryNotificationSettingsExceptions';
}
/**
Loads more active stories from a story list. The loaded stories will be sent through updates. Active stories are sorted
by the pair (active_stories.order, active_stories.story_sender_chat_id) in descending order. Returns a 404 error if all
active stories have been loaded.
Request type for {@link Tdjson#loadActiveStories}.
*/
export interface LoadActiveStories {
    '@type': 'loadActiveStories';
    /**
The story list in which to load active stories.
*/
    story_list: StoryList;
}
/**
Changes story list in which stories from the chat are shown.
Request type for {@link Tdjson#setChatActiveStoriesList}.
*/
export interface SetChatActiveStoriesList {
    '@type': 'setChatActiveStoriesList';
    /**
Identifier of the chat that posted stories.
*/
    chat_id: number;
    /**
New list for active stories posted by the chat.
*/
    story_list: StoryList;
}
/**
Returns the list of active stories posted by the given chat.
Request type for {@link Tdjson#getChatActiveStories}.
*/
export interface GetChatActiveStories {
    '@type': 'getChatActiveStories';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Returns the list of stories that posted by the given chat to its chat page. If from_story_id == 0, then pinned stories
are returned first. Then, stories are returned in reverse chronological order (i.e., in order of decreasing story_id).
For optimal performance, the number of returned stories is chosen by TDLib.
Request type for {@link Tdjson#getChatPostedToChatPageStories}.
*/
export interface GetChatPostedToChatPageStories {
    '@type': 'getChatPostedToChatPageStories';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the story starting from which stories must be returned; use 0 to get results from pinned and the newest
story.
*/
    from_story_id: number;
    /**
The maximum number of stories to be returned. For optimal performance, the number of returned stories is chosen by TDLib
and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Returns the list of all stories posted by the given chat; requires can_edit_stories right in the chat. The stories are
returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of
returned stories is chosen by TDLib.
Request type for {@link Tdjson#getChatArchivedStories}.
*/
export interface GetChatArchivedStories {
    '@type': 'getChatArchivedStories';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the story starting from which stories must be returned; use 0 to get results from the last story.
*/
    from_story_id: number;
    /**
The maximum number of stories to be returned. For optimal performance, the number of returned stories is chosen by TDLib
and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Changes the list of pinned stories on a chat page; requires can_edit_stories right in the chat.
Request type for {@link Tdjson#setChatPinnedStories}.
*/
export interface SetChatPinnedStories {
    '@type': 'setChatPinnedStories';
    /**
Identifier of the chat that posted the stories.
*/
    chat_id: number;
    /**
New list of pinned stories. All stories must be posted to the chat page first. There can be up to
getOption("pinned_story_count_max") pinned stories on a chat page.
*/
    story_ids: number[];
}
/**
Informs TDLib that a story is opened and is being viewed by the user.
Request type for {@link Tdjson#openStory}.
*/
export interface OpenStory {
    '@type': 'openStory';
    /**
The identifier of the sender of the opened story.
*/
    story_sender_chat_id: number;
    /**
The identifier of the story.
*/
    story_id: number;
}
/**
Informs TDLib that a story is closed by the user.
Request type for {@link Tdjson#closeStory}.
*/
export interface CloseStory {
    '@type': 'closeStory';
    /**
The identifier of the sender of the story to close.
*/
    story_sender_chat_id: number;
    /**
The identifier of the story.
*/
    story_id: number;
}
/**
Returns reactions, which can be chosen for a story.
Request type for {@link Tdjson#getStoryAvailableReactions}.
*/
export interface GetStoryAvailableReactions {
    '@type': 'getStoryAvailableReactions';
    /**
Number of reaction per row, 5-25.
*/
    row_size: number;
}
/**
Changes chosen reaction on a story that has already been sent.
Request type for {@link Tdjson#setStoryReaction}.
*/
export interface SetStoryReaction {
    '@type': 'setStoryReaction';
    /**
The identifier of the sender of the story.
*/
    story_sender_chat_id: number;
    /**
The identifier of the story.
*/
    story_id: number;
    /**
Type of the reaction to set; pass null to remove the reaction. Custom emoji reactions can be used only by Telegram
Premium users. Paid reactions can't be set.
*/
    reaction_type: ReactionType;
    /**
Pass true if the reaction needs to be added to recent reactions.
*/
    update_recent_reactions?: boolean;
}
/**
Returns interactions with a story. The method can be called only for stories posted on behalf of the current user.
Request type for {@link Tdjson#getStoryInteractions}.
*/
export interface GetStoryInteractions {
    '@type': 'getStoryInteractions';
    /**
Story identifier.
*/
    story_id: number;
    /**
Query to search for in names, usernames and titles; may be empty to get all relevant interactions.
*/
    query: string;
    /**
Pass true to get only interactions by contacts; pass false to get all relevant interactions.
*/
    only_contacts?: boolean;
    /**
Pass true to get forwards and reposts first, then reactions, then other views; pass false to get interactions sorted
just by interaction date.
*/
    prefer_forwards?: boolean;
    /**
Pass true to get interactions with reaction first; pass false to get interactions sorted just by interaction date.
Ignored if prefer_forwards == true.
*/
    prefer_with_reaction?: boolean;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of story interactions to return.
*/
    limit: number;
}
/**
Returns interactions with a story posted in a chat. Can be used only if story is posted on behalf of a chat and the user
is an administrator in the chat.
Request type for {@link Tdjson#getChatStoryInteractions}.
*/
export interface GetChatStoryInteractions {
    '@type': 'getChatStoryInteractions';
    /**
The identifier of the sender of the story.
*/
    story_sender_chat_id: number;
    /**
Story identifier.
*/
    story_id: number;
    /**
Pass the default heart reaction or a suggested reaction type to receive only interactions with the specified reaction
type; pass null to receive all interactions; reactionTypePaid isn't supported.
*/
    reaction_type: ReactionType;
    /**
Pass true to get forwards and reposts first, then reactions, then other views; pass false to get interactions sorted
just by interaction date.
*/
    prefer_forwards?: boolean;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of story interactions to return.
*/
    limit: number;
}
/**
Reports a story to the Telegram moderators.
Request type for {@link Tdjson#reportStory}.
*/
export interface ReportStory {
    '@type': 'reportStory';
    /**
The identifier of the sender of the story to report.
*/
    story_sender_chat_id: number;
    /**
The identifier of the story to report.
*/
    story_id: number;
    /**
Option identifier chosen by the user; leave empty for the initial request.
*/
    option_id: string;
    /**
Additional report details; 0-1024 characters; leave empty for the initial request.
*/
    text: string;
}
/**
Activates stealth mode for stories, which hides all views of stories from the current user in the last
"story_stealth_mode_past_period" seconds and for the next "story_stealth_mode_future_period" seconds; for Telegram
Premium users only.
Request type for {@link Tdjson#activateStoryStealthMode}.
*/
export interface ActivateStoryStealthMode {
    '@type': 'activateStoryStealthMode';
}
/**
Returns forwards of a story as a message to public chats and reposts by public channels. Can be used only if the story
is posted on behalf of the current user or story.can_get_statistics == true. For optimal performance, the number of
returned messages and stories is chosen by TDLib.
Request type for {@link Tdjson#getStoryPublicForwards}.
*/
export interface GetStoryPublicForwards {
    '@type': 'getStoryPublicForwards';
    /**
The identifier of the sender of the story.
*/
    story_sender_chat_id: number;
    /**
The identifier of the story.
*/
    story_id: number;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of messages and stories to be returned; must be positive and can't be greater than 100. For optimal
performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Returns the list of features available on the specific chat boost level; this is an offline request.
Request type for {@link Tdjson#getChatBoostLevelFeatures}.
*/
export interface GetChatBoostLevelFeatures {
    '@type': 'getChatBoostLevelFeatures';
    /**
Pass true to get the list of features for channels; pass false to get the list of features for supergroups.
*/
    is_channel?: boolean;
    /**
Chat boost level.
*/
    level: number;
}
/**
Returns the list of features available for different chat boost levels; this is an offline request.
Request type for {@link Tdjson#getChatBoostFeatures}.
*/
export interface GetChatBoostFeatures {
    '@type': 'getChatBoostFeatures';
    /**
Pass true to get the list of features for channels; pass false to get the list of features for supergroups.
*/
    is_channel?: boolean;
}
/**
Returns the list of available chat boost slots for the current user.
Request type for {@link Tdjson#getAvailableChatBoostSlots}.
*/
export interface GetAvailableChatBoostSlots {
    '@type': 'getAvailableChatBoostSlots';
}
/**
Returns the current boost status for a supergroup or a channel chat.
Request type for {@link Tdjson#getChatBoostStatus}.
*/
export interface GetChatBoostStatus {
    '@type': 'getChatBoostStatus';
    /**
Identifier of the chat.
*/
    chat_id: number;
}
/**
Boosts a chat and returns the list of available chat boost slots for the current user after the boost.
Request type for {@link Tdjson#boostChat}.
*/
export interface BoostChat {
    '@type': 'boostChat';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Identifiers of boost slots of the current user from which to apply boosts to the chat.
*/
    slot_ids: number[];
}
/**
Returns an HTTPS link to boost the specified supergroup or channel chat.
Request type for {@link Tdjson#getChatBoostLink}.
*/
export interface GetChatBoostLink {
    '@type': 'getChatBoostLink';
    /**
Identifier of the chat.
*/
    chat_id: number;
}
/**
Returns information about a link to boost a chat. Can be called for any internal link of the type
internalLinkTypeChatBoost.
Request type for {@link Tdjson#getChatBoostLinkInfo}.
*/
export interface GetChatBoostLinkInfo {
    '@type': 'getChatBoostLinkInfo';
    /**
The link to boost a chat.
*/
    url: string;
}
/**
Returns the list of boosts applied to a chat; requires administrator rights in the chat.
Request type for {@link Tdjson#getChatBoosts}.
*/
export interface GetChatBoosts {
    '@type': 'getChatBoosts';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Pass true to receive only boosts received from gift codes and giveaways created by the chat.
*/
    only_gift_codes?: boolean;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of boosts to be returned; up to 100. For optimal performance, the number of returned boosts can be
smaller than the specified limit.
*/
    limit: number;
}
/**
Returns the list of boosts applied to a chat by a given user; requires administrator rights in the chat; for bots only.
Request type for {@link Tdjson#getUserChatBoosts}.
*/
export interface GetUserChatBoosts {
    '@type': 'getUserChatBoosts';
    /**
Identifier of the chat.
*/
    chat_id: number;
    /**
Identifier of the user.
*/
    user_id: number;
}
/**
Returns information about a bot that can be added to attachment or side menu.
Request type for {@link Tdjson#getAttachmentMenuBot}.
*/
export interface GetAttachmentMenuBot {
    '@type': 'getAttachmentMenuBot';
    /**
Bot's user identifier.
*/
    bot_user_id: number;
}
/**
Adds or removes a bot to attachment and side menu. Bot can be added to the menu, only if
userTypeBot.can_be_added_to_attachment_menu == true.
Request type for {@link Tdjson#toggleBotIsAddedToAttachmentMenu}.
*/
export interface ToggleBotIsAddedToAttachmentMenu {
    '@type': 'toggleBotIsAddedToAttachmentMenu';
    /**
Bot's user identifier.
*/
    bot_user_id: number;
    /**
Pass true to add the bot to attachment menu; pass false to remove the bot from attachment menu.
*/
    is_added?: boolean;
    /**
Pass true if the current user allowed the bot to send them messages. Ignored if is_added is false.
*/
    allow_write_access?: boolean;
}
/**
Returns up to 8 emoji statuses, which must be shown right after the default Premium Badge in the emoji status list for
self status.
Request type for {@link Tdjson#getThemedEmojiStatuses}.
*/
export interface GetThemedEmojiStatuses {
    '@type': 'getThemedEmojiStatuses';
}
/**
Returns recent emoji statuses for self status.
Request type for {@link Tdjson#getRecentEmojiStatuses}.
*/
export interface GetRecentEmojiStatuses {
    '@type': 'getRecentEmojiStatuses';
}
/**
Returns available upgraded gift emoji statuses for self status.
Request type for {@link Tdjson#getUpgradedGiftEmojiStatuses}.
*/
export interface GetUpgradedGiftEmojiStatuses {
    '@type': 'getUpgradedGiftEmojiStatuses';
}
/**
Returns default emoji statuses for self status.
Request type for {@link Tdjson#getDefaultEmojiStatuses}.
*/
export interface GetDefaultEmojiStatuses {
    '@type': 'getDefaultEmojiStatuses';
}
/**
Clears the list of recently used emoji statuses for self status.
Request type for {@link Tdjson#clearRecentEmojiStatuses}.
*/
export interface ClearRecentEmojiStatuses {
    '@type': 'clearRecentEmojiStatuses';
}
/**
Returns up to 8 emoji statuses, which must be shown in the emoji status list for chats.
Request type for {@link Tdjson#getThemedChatEmojiStatuses}.
*/
export interface GetThemedChatEmojiStatuses {
    '@type': 'getThemedChatEmojiStatuses';
}
/**
Returns default emoji statuses for chats.
Request type for {@link Tdjson#getDefaultChatEmojiStatuses}.
*/
export interface GetDefaultChatEmojiStatuses {
    '@type': 'getDefaultChatEmojiStatuses';
}
/**
Returns the list of emoji statuses, which can't be used as chat emoji status, even they are from a sticker set with
is_allowed_as_chat_emoji_status == true.
Request type for {@link Tdjson#getDisallowedChatEmojiStatuses}.
*/
export interface GetDisallowedChatEmojiStatuses {
    '@type': 'getDisallowedChatEmojiStatuses';
}
/**
Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile
updates.
Request type for {@link Tdjson#downloadFile}.
*/
export interface DownloadFile {
    '@type': 'downloadFile';
    /**
Identifier of the file to download.
*/
    file_id: number;
    /**
Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of
two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first.
*/
    priority: number;
    /**
The starting position from which the file needs to be downloaded.
*/
    offset: number;
    /**
Number of bytes which need to be downloaded starting from the "offset" position before the download will automatically
be canceled; use 0 to download without a limit.
*/
    limit: number;
    /**
Pass true to return response only after the file download has succeeded, has failed, has been canceled, or a new
downloadFile request with different offset/limit parameters was sent; pass false to return file state immediately, just
after the download has been started.
*/
    synchronous?: boolean;
}
/**
Returns file downloaded prefix size from a given offset, in bytes.
Request type for {@link Tdjson#getFileDownloadedPrefixSize}.
*/
export interface GetFileDownloadedPrefixSize {
    '@type': 'getFileDownloadedPrefixSize';
    /**
Identifier of the file.
*/
    file_id: number;
    /**
Offset from which downloaded prefix size needs to be calculated.
*/
    offset: number;
}
/**
Stops the downloading of a file. If a file has already been downloaded, does nothing.
Request type for {@link Tdjson#cancelDownloadFile}.
*/
export interface CancelDownloadFile {
    '@type': 'cancelDownloadFile';
    /**
Identifier of a file to stop downloading.
*/
    file_id: number;
    /**
Pass true to stop downloading only if it hasn't been started, i.e. request hasn't been sent to server.
*/
    only_if_pending?: boolean;
}
/**
Returns suggested name for saving a file in a given directory.
Request type for {@link Tdjson#getSuggestedFileName}.
*/
export interface GetSuggestedFileName {
    '@type': 'getSuggestedFileName';
    /**
Identifier of the file.
*/
    file_id: number;
    /**
Directory in which the file is expected to be saved.
*/
    directory: string;
}
/**
Preliminary uploads a file to the cloud before sending it in a message, which can be useful for uploading of being
recorded voice and video notes. In all other cases there is no need to preliminary upload a file. Updates updateFile
will be used to notify about upload progress. The upload will not be completed until the file is sent in a message.
Request type for {@link Tdjson#preliminaryUploadFile}.
*/
export interface PreliminaryUploadFile {
    '@type': 'preliminaryUploadFile';
    /**
File to upload.
*/
    file: InputFile;
    /**
File type; pass null if unknown.
*/
    file_type: FileType;
    /**
Priority of the upload (1-32). The higher the priority, the earlier the file will be uploaded. If the priorities of two
files are equal, then the first one for which preliminaryUploadFile was called will be uploaded first.
*/
    priority: number;
}
/**
Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile.
Request type for {@link Tdjson#cancelPreliminaryUploadFile}.
*/
export interface CancelPreliminaryUploadFile {
    '@type': 'cancelPreliminaryUploadFile';
    /**
Identifier of the file to stop uploading.
*/
    file_id: number;
}
/**
Writes a part of a generated file. This method is intended to be used only if the application has no direct access to
TDLib's file system, because it is usually slower than a direct write to the destination file.
Request type for {@link Tdjson#writeGeneratedFilePart}.
*/
export interface WriteGeneratedFilePart {
    '@type': 'writeGeneratedFilePart';
    /**
The identifier of the generation process.
*/
    generation_id: string;
    /**
The offset from which to write the data to the file.
*/
    offset: number;
    /**
The data to write.
*/
    data: string;
}
/**
Informs TDLib on a file generation progress.
Request type for {@link Tdjson#setFileGenerationProgress}.
*/
export interface SetFileGenerationProgress {
    '@type': 'setFileGenerationProgress';
    /**
The identifier of the generation process.
*/
    generation_id: string;
    /**
Expected size of the generated file, in bytes; 0 if unknown.
*/
    expected_size: number;
    /**
The number of bytes already generated.
*/
    local_prefix_size: number;
}
/**
Finishes the file generation.
Request type for {@link Tdjson#finishFileGeneration}.
*/
export interface FinishFileGeneration {
    '@type': 'finishFileGeneration';
    /**
The identifier of the generation process.
*/
    generation_id: string;
    /**
If passed, the file generation has failed and must be terminated; pass null if the file generation succeeded.
*/
    error: Error;
}
/**
Reads a part of a file from the TDLib file cache and returns read bytes. This method is intended to be used only if the
application has no direct access to TDLib's file system, because it is usually slower than a direct read from the file.
Request type for {@link Tdjson#readFilePart}.
*/
export interface ReadFilePart {
    '@type': 'readFilePart';
    /**
Identifier of the file. The file must be located in the TDLib file cache.
*/
    file_id: number;
    /**
The offset from which to read the file.
*/
    offset: number;
    /**
Number of bytes to read. An error will be returned if there are not enough bytes available in the file from the
specified position. Pass 0 to read all available data from the specified position.
*/
    count: number;
}
/**
Deletes a file from the TDLib file cache.
Request type for {@link Tdjson#deleteFile}.
*/
export interface DeleteFile {
    '@type': 'deleteFile';
    /**
Identifier of the file to delete.
*/
    file_id: number;
}
/**
Adds a file from a message to the list of file downloads. Download progress and completion of the download will be
notified through updateFile updates. If message database is used, the list of file downloads is persistent across
application restarts. The downloading is independent of download using downloadFile, i.e. it continues if downloadFile
is canceled or is used to download a part of the file.
Request type for {@link Tdjson#addFileToDownloads}.
*/
export interface AddFileToDownloads {
    '@type': 'addFileToDownloads';
    /**
Identifier of the file to download.
*/
    file_id: number;
    /**
Chat identifier of the message with the file.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of
two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first.
*/
    priority: number;
}
/**
Changes pause state of a file in the file download list.
Request type for {@link Tdjson#toggleDownloadIsPaused}.
*/
export interface ToggleDownloadIsPaused {
    '@type': 'toggleDownloadIsPaused';
    /**
Identifier of the downloaded file.
*/
    file_id: number;
    /**
Pass true if the download is paused.
*/
    is_paused?: boolean;
}
/**
Changes pause state of all files in the file download list.
Request type for {@link Tdjson#toggleAllDownloadsArePaused}.
*/
export interface ToggleAllDownloadsArePaused {
    '@type': 'toggleAllDownloadsArePaused';
    /**
Pass true to pause all downloads; pass false to unpause them.
*/
    are_paused?: boolean;
}
/**
Removes a file from the file download list.
Request type for {@link Tdjson#removeFileFromDownloads}.
*/
export interface RemoveFileFromDownloads {
    '@type': 'removeFileFromDownloads';
    /**
Identifier of the downloaded file.
*/
    file_id: number;
    /**
Pass true to delete the file from the TDLib file cache.
*/
    delete_from_cache?: boolean;
}
/**
Removes all files from the file download list.
Request type for {@link Tdjson#removeAllFilesFromDownloads}.
*/
export interface RemoveAllFilesFromDownloads {
    '@type': 'removeAllFilesFromDownloads';
    /**
Pass true to remove only active downloads, including paused.
*/
    only_active?: boolean;
    /**
Pass true to remove only completed downloads.
*/
    only_completed?: boolean;
    /**
Pass true to delete the file from the TDLib file cache.
*/
    delete_from_cache?: boolean;
}
/**
Searches for files in the file download list or recently downloaded files from the list.
Request type for {@link Tdjson#searchFileDownloads}.
*/
export interface SearchFileDownloads {
    '@type': 'searchFileDownloads';
    /**
Query to search for; may be empty to return all downloaded files.
*/
    query: string;
    /**
Pass true to search only for active downloads, including paused.
*/
    only_active?: boolean;
    /**
Pass true to search only for completed downloads.
*/
    only_completed?: boolean;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of files to be returned.
*/
    limit: number;
}
/**
Application or reCAPTCHA verification has been completed. Can be called before authorization.
Request type for {@link Tdjson#setApplicationVerificationToken}.
*/
export interface SetAppVerificationToken {
    '@type': 'setApplicationVerificationToken';
    /**
Unique identifier for the verification process as received from updateApplicationVerificationRequired or
updateApplicationRecaptchaVerificationRequired.
*/
    verification_id: number;
    /**
Play Integrity API token for the Android application, or secret from push notification for the iOS application for
application verification, or reCAPTCHA token for reCAPTCHA verifications; pass an empty string to abort verification and
receive error VERIFICATION_FAILED for the request.
*/
    token: string;
}
/**
Returns information about a file with messages exported from another application.
Request type for {@link Tdjson#getMessageFileType}.
*/
export interface GetMessageFileType {
    '@type': 'getMessageFileType';
    /**
Beginning of the message file; up to 100 first lines.
*/
    message_file_head: string;
}
/**
Returns a confirmation text to be shown to the user before starting message import.
Request type for {@link Tdjson#getMessageImportConfirmationText}.
*/
export interface GetMessageImportConfirmationText {
    '@type': 'getMessageImportConfirmationText';
    /**
Identifier of a chat to which the messages will be imported. It must be an identifier of a private chat with a mutual
contact or an identifier of a supergroup chat with can_change_info member right.
*/
    chat_id: number;
}
/**
Imports messages exported from another app.
Request type for {@link Tdjson#importMessages}.
*/
export interface ImportMessages {
    '@type': 'importMessages';
    /**
Identifier of a chat to which the messages will be imported. It must be an identifier of a private chat with a mutual
contact or an identifier of a supergroup chat with can_change_info member right.
*/
    chat_id: number;
    /**
File with messages to import. Only inputFileLocal and inputFileGenerated are supported. The file must not be previously
uploaded.
*/
    message_file: InputFile;
    /**
Files used in the imported messages. Only inputFileLocal and inputFileGenerated are supported. The files must not be
previously uploaded.
*/
    attached_files: InputFile[];
}
/**
Replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups,
and channels. Requires administrator privileges and can_invite_users right.
Request type for {@link Tdjson#replacePrimaryChatInviteLink}.
*/
export interface ReplacePrimaryChatInviteLink {
    '@type': 'replacePrimaryChatInviteLink';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator
privileges and can_invite_users right in the chat.
Request type for {@link Tdjson#createChatInviteLink}.
*/
export interface CreateChatInviteLink {
    '@type': 'createChatInviteLink';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Invite link name; 0-32 characters.
*/
    name: string;
    /**
Point in time (Unix timestamp) when the link will expire; pass 0 if never.
*/
    expiration_date: number;
    /**
The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited.
*/
    member_limit: number;
    /**
Pass true if users joining the chat via the link need to be approved by chat administrators. In this case, member_limit
must be 0.
*/
    creates_join_request?: boolean;
}
/**
Creates a new subscription invite link for a channel chat. Requires can_invite_users right in the chat.
Request type for {@link Tdjson#createChatSubscriptionInviteLink}.
*/
export interface CreateChatSubscriptionInviteLink {
    '@type': 'createChatSubscriptionInviteLink';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Invite link name; 0-32 characters.
*/
    name: string;
    /**
Information about subscription plan that will be applied to the users joining the chat via the link. Subscription period
must be 2592000 in production environment, and 60 or 300 if Telegram test environment is used.
*/
    subscription_pricing: StarSubscriptionPricing;
}
/**
Edits a non-primary invite link for a chat. Available for basic groups, supergroups, and channels. If the link creates a
subscription, then expiration_date, member_limit and creates_join_request must not be used. Requires administrator
privileges and can_invite_users right in the chat for own links and owner privileges for other links.
Request type for {@link Tdjson#editChatInviteLink}.
*/
export interface EditChatInviteLink {
    '@type': 'editChatInviteLink';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Invite link to be edited.
*/
    invite_link: string;
    /**
Invite link name; 0-32 characters.
*/
    name: string;
    /**
Point in time (Unix timestamp) when the link will expire; pass 0 if never.
*/
    expiration_date: number;
    /**
The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited.
*/
    member_limit: number;
    /**
Pass true if users joining the chat via the link need to be approved by chat administrators. In this case, member_limit
must be 0.
*/
    creates_join_request?: boolean;
}
/**
Edits a subscription invite link for a channel chat. Requires can_invite_users right in the chat for own links and owner
privileges for other links.
Request type for {@link Tdjson#editChatSubscriptionInviteLink}.
*/
export interface EditChatSubscriptionInviteLink {
    '@type': 'editChatSubscriptionInviteLink';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Invite link to be edited.
*/
    invite_link: string;
    /**
Invite link name; 0-32 characters.
*/
    name: string;
}
/**
Returns information about an invite link. Requires administrator privileges and can_invite_users right in the chat to
get own links and owner privileges to get other links.
Request type for {@link Tdjson#getChatInviteLink}.
*/
export interface GetChatInviteLink {
    '@type': 'getChatInviteLink';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Invite link to get.
*/
    invite_link: string;
}
/**
Returns the list of chat administrators with number of their invite links. Requires owner privileges in the chat.
Request type for {@link Tdjson#getChatInviteLinkCounts}.
*/
export interface GetChatInviteLinkCounts {
    '@type': 'getChatInviteLinkCounts';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Returns invite links for a chat created by specified administrator. Requires administrator privileges and
can_invite_users right in the chat to get own links and owner privileges to get other links.
Request type for {@link Tdjson#getChatInviteLinks}.
*/
export interface GetChatInviteLinks {
    '@type': 'getChatInviteLinks';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
User identifier of a chat administrator. Must be an identifier of the current user for non-owner.
*/
    creator_user_id: number;
    /**
Pass true if revoked links needs to be returned instead of active or expired.
*/
    is_revoked?: boolean;
    /**
Creation date of an invite link starting after which to return invite links; use 0 to get results from the beginning.
*/
    offset_date: number;
    /**
Invite link starting after which to return invite links; use empty string to get results from the beginning.
*/
    offset_invite_link: string;
    /**
The maximum number of invite links to return; up to 100.
*/
    limit: number;
}
/**
Returns chat members joined a chat via an invite link. Requires administrator privileges and can_invite_users right in
the chat for own links and owner privileges for other links.
Request type for {@link Tdjson#getChatInviteLinkMembers}.
*/
export interface GetChatInviteLinkMembers {
    '@type': 'getChatInviteLinkMembers';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Invite link for which to return chat members.
*/
    invite_link: string;
    /**
Pass true if the link is a subscription link and only members with expired subscription must be returned.
*/
    only_with_expired_subscription?: boolean;
    /**
A chat member from which to return next chat members; pass null to get results from the beginning.
*/
    offset_member: ChatInviteLinkMember;
    /**
The maximum number of chat members to return; up to 100.
*/
    limit: number;
}
/**
Revokes invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges
and can_invite_users right in the chat for own links and owner privileges for other links. If a primary link is revoked,
then additionally to the revoked link returns new primary link.
Request type for {@link Tdjson#revokeChatInviteLink}.
*/
export interface RevokeChatInviteLink {
    '@type': 'revokeChatInviteLink';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Invite link to be revoked.
*/
    invite_link: string;
}
/**
Deletes revoked chat invite links. Requires administrator privileges and can_invite_users right in the chat for own
links and owner privileges for other links.
Request type for {@link Tdjson#deleteRevokedChatInviteLink}.
*/
export interface DeleteRevokedChatInviteLink {
    '@type': 'deleteRevokedChatInviteLink';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Invite link to revoke.
*/
    invite_link: string;
}
/**
Deletes all revoked chat invite links created by a given chat administrator. Requires administrator privileges and
can_invite_users right in the chat for own links and owner privileges for other links.
Request type for {@link Tdjson#deleteAllRevokedChatInviteLinks}.
*/
export interface DeleteAllRevokedChatInviteLinks {
    '@type': 'deleteAllRevokedChatInviteLinks';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
User identifier of a chat administrator, which links will be deleted. Must be an identifier of the current user for
non-owner.
*/
    creator_user_id: number;
}
/**
Checks the validity of an invite link for a chat and returns information about the corresponding chat.
Request type for {@link Tdjson#checkChatInviteLink}.
*/
export interface CheckChatInviteLink {
    '@type': 'checkChatInviteLink';
    /**
Invite link to be checked.
*/
    invite_link: string;
}
/**
Uses an invite link to add the current user to the chat if possible. May return an error with a message
"INVITE_REQUEST_SENT" if only a join request was created.
Request type for {@link Tdjson#joinChatByInviteLink}.
*/
export interface JoinChatByInviteLink {
    '@type': 'joinChatByInviteLink';
    /**
Invite link to use.
*/
    invite_link: string;
}
/**
Returns pending join requests in a chat.
Request type for {@link Tdjson#getChatJoinRequests}.
*/
export interface GetChatJoinRequests {
    '@type': 'getChatJoinRequests';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Invite link for which to return join requests. If empty, all join requests will be returned. Requires administrator
privileges and can_invite_users right in the chat for own links and owner privileges for other links.
*/
    invite_link: string;
    /**
A query to search for in the first names, last names and usernames of the users to return.
*/
    query: string;
    /**
A chat join request from which to return next requests; pass null to get results from the beginning.
*/
    offset_request: ChatJoinRequest;
    /**
The maximum number of requests to join the chat to return.
*/
    limit: number;
}
/**
Handles a pending join request in a chat.
Request type for {@link Tdjson#processChatJoinRequest}.
*/
export interface ProcessChatJoinRequest {
    '@type': 'processChatJoinRequest';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the user that sent the request.
*/
    user_id: number;
    /**
Pass true to approve the request; pass false to decline it.
*/
    approve?: boolean;
}
/**
Handles all pending join requests for a given link in a chat.
Request type for {@link Tdjson#processChatJoinRequests}.
*/
export interface ProcessChatJoinRequests {
    '@type': 'processChatJoinRequests';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Invite link for which to process join requests. If empty, all join requests will be processed. Requires administrator
privileges and can_invite_users right in the chat for own links and owner privileges for other links.
*/
    invite_link: string;
    /**
Pass true to approve all requests; pass false to decline them.
*/
    approve?: boolean;
}
/**
Creates a new call.
Request type for {@link Tdjson#createCall}.
*/
export interface CreateCall {
    '@type': 'createCall';
    /**
Identifier of the user to be called.
*/
    user_id: number;
    /**
The call protocols supported by the application.
*/
    protocol: CallProtocol;
    /**
Pass true to create a video call.
*/
    is_video?: boolean;
    /**
Identifier of the group call to which the user will be added after exchanging private key via the call; pass 0 if none.
*/
    group_call_id: number;
}
/**
Accepts an incoming call.
Request type for {@link Tdjson#acceptCall}.
*/
export interface AcceptCall {
    '@type': 'acceptCall';
    /**
Call identifier.
*/
    call_id: number;
    /**
The call protocols supported by the application.
*/
    protocol: CallProtocol;
}
/**
Sends call signaling data.
Request type for {@link Tdjson#sendCallSignalingData}.
*/
export interface SendCallSignalingData {
    '@type': 'sendCallSignalingData';
    /**
Call identifier.
*/
    call_id: number;
    /**
The data.
*/
    data: string;
}
/**
Discards a call.
Request type for {@link Tdjson#discardCall}.
*/
export interface DiscardCall {
    '@type': 'discardCall';
    /**
Call identifier.
*/
    call_id: number;
    /**
Pass true if the user was disconnected.
*/
    is_disconnected?: boolean;
    /**
The call duration, in seconds.
*/
    duration: number;
    /**
Pass true if the call was a video call.
*/
    is_video?: boolean;
    /**
Identifier of the connection used during the call.
*/
    connection_id: string;
}
/**
Sends a call rating.
Request type for {@link Tdjson#sendCallRating}.
*/
export interface SendCallRating {
    '@type': 'sendCallRating';
    /**
Call identifier.
*/
    call_id: number;
    /**
Call rating; 1-5.
*/
    rating: number;
    /**
An optional user comment if the rating is less than 5.
*/
    comment: string;
    /**
List of the exact types of problems with the call, specified by the user.
*/
    problems: CallProblem[];
}
/**
Sends debug information for a call to Telegram servers.
Request type for {@link Tdjson#sendCallDebugInformation}.
*/
export interface SendCallDebugInformation {
    '@type': 'sendCallDebugInformation';
    /**
Call identifier.
*/
    call_id: number;
    /**
Debug information in application-specific format.
*/
    debug_information: string;
}
/**
Sends log file for a call to Telegram servers.
Request type for {@link Tdjson#sendCallLog}.
*/
export interface SendCallLog {
    '@type': 'sendCallLog';
    /**
Call identifier.
*/
    call_id: number;
    /**
Call log file. Only inputFileLocal and inputFileGenerated are supported.
*/
    log_file: InputFile;
}
/**
Returns the list of participant identifiers, on whose behalf a video chat in the chat can be joined.
Request type for {@link Tdjson#getVideoChatAvailableParticipants}.
*/
export interface GetVideoChatAvailableParticipants {
    '@type': 'getVideoChatAvailableParticipants';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Changes default participant identifier, on whose behalf a video chat in the chat will be joined.
Request type for {@link Tdjson#setVideoChatDefaultParticipant}.
*/
export interface SetVideoChatDefaultParticipant {
    '@type': 'setVideoChatDefaultParticipant';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Default group call participant identifier to join the video chats.
*/
    default_participant_id: MessageSender;
}
/**
Creates a video chat (a group call bound to a chat). Available only for basic groups, supergroups and channels; requires
can_manage_video_chats administrator right.
Request type for {@link Tdjson#createVideoChat}.
*/
export interface CreateVideoChat {
    '@type': 'createVideoChat';
    /**
Identifier of a chat in which the video chat will be created.
*/
    chat_id: number;
    /**
Group call title; if empty, chat title will be used.
*/
    title: string;
    /**
Point in time (Unix timestamp) when the group call is expected to be started by an administrator; 0 to start the video
chat immediately. The date must be at least 10 seconds and at most 8 days in the future.
*/
    start_date: number;
    /**
Pass true to create an RTMP stream instead of an ordinary video chat.
*/
    is_rtmp_stream?: boolean;
}
/**
Creates a group call from a one-to-one call.
Request type for {@link Tdjson#createGroupCall}.
*/
export interface CreateGroupCall {
    '@type': 'createGroupCall';
    /**
Call identifier.
*/
    call_id: number;
}
/**
Returns RTMP URL for streaming to the chat; requires can_manage_video_chats administrator right.
Request type for {@link Tdjson#getVideoChatRtmpUrl}.
*/
export interface GetVideoChatRtmpUrl {
    '@type': 'getVideoChatRtmpUrl';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Replaces the current RTMP URL for streaming to the chat; requires owner privileges.
Request type for {@link Tdjson#replaceVideoChatRtmpUrl}.
*/
export interface ReplaceVideoChatRtmpUrl {
    '@type': 'replaceVideoChatRtmpUrl';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Returns information about a group call.
Request type for {@link Tdjson#getGroupCall}.
*/
export interface GetGroupCall {
    '@type': 'getGroupCall';
    /**
Group call identifier.
*/
    group_call_id: number;
}
/**
Starts a scheduled group call.
Request type for {@link Tdjson#startScheduledGroupCall}.
*/
export interface StartScheduledGroupCall {
    '@type': 'startScheduledGroupCall';
    /**
Group call identifier.
*/
    group_call_id: number;
}
/**
Toggles whether the current user will receive a notification when the group call starts; scheduled group calls only.
Request type for {@link Tdjson#toggleGroupCallEnabledStartNotification}.
*/
export interface ToggleGroupCallEnabledStartNotification {
    '@type': 'toggleGroupCallEnabledStartNotification';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
New value of the enabled_start_notification setting.
*/
    enabled_start_notification?: boolean;
}
/**
Joins an active group call. Returns join response payload for tgcalls.
Request type for {@link Tdjson#joinGroupCall}.
*/
export interface JoinGroupCall {
    '@type': 'joinGroupCall';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
Identifier of a group call participant, which will be used to join the call; pass null to join as self; video chats
only.
*/
    participant_id: MessageSender;
    /**
Caller audio channel synchronization source identifier; received from tgcalls.
*/
    audio_source_id: number;
    /**
Group call join payload; received from tgcalls.
*/
    payload: string;
    /**
Pass true to join the call with muted microphone.
*/
    is_muted?: boolean;
    /**
Pass true if the user's video is enabled.
*/
    is_my_video_enabled?: boolean;
    /**
If non-empty, invite hash to be used to join the group call without being muted by administrators.
*/
    invite_hash: string;
    /**
Fingerprint of the encryption key for E2E group calls not bound to a chat; pass 0 for voice chats.
*/
    key_fingerprint: string;
}
/**
Starts screen sharing in a joined group call. Returns join response payload for tgcalls.
Request type for {@link Tdjson#startGroupCallScreenSharing}.
*/
export interface StartGroupCallScreenSharing {
    '@type': 'startGroupCallScreenSharing';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
Screen sharing audio channel synchronization source identifier; received from tgcalls.
*/
    audio_source_id: number;
    /**
Group call join payload; received from tgcalls.
*/
    payload: string;
}
/**
Pauses or unpauses screen sharing in a joined group call.
Request type for {@link Tdjson#toggleGroupCallScreenSharingIsPaused}.
*/
export interface ToggleGroupCallScreenSharingIsPaused {
    '@type': 'toggleGroupCallScreenSharingIsPaused';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
Pass true to pause screen sharing; pass false to unpause it.
*/
    is_paused?: boolean;
}
/**
Ends screen sharing in a joined group call.
Request type for {@link Tdjson#endGroupCallScreenSharing}.
*/
export interface EndGroupCallScreenSharing {
    '@type': 'endGroupCallScreenSharing';
    /**
Group call identifier.
*/
    group_call_id: number;
}
/**
Sets group call title. Requires groupCall.can_be_managed group call flag.
Request type for {@link Tdjson#setGroupCallTitle}.
*/
export interface SetGroupCallTitle {
    '@type': 'setGroupCallTitle';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
New group call title; 1-64 characters.
*/
    title: string;
}
/**
Toggles whether new participants of a group call can be unmuted only by administrators of the group call. Requires
groupCall.can_toggle_mute_new_participants group call flag.
Request type for {@link Tdjson#toggleGroupCallMuteNewParticipants}.
*/
export interface ToggleGroupCallMuteNewParticipants {
    '@type': 'toggleGroupCallMuteNewParticipants';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
New value of the mute_new_participants setting.
*/
    mute_new_participants?: boolean;
}
/**
Invites users to an active group call. Sends a service message of type messageInviteVideoChatParticipants for video
chats.
Request type for {@link Tdjson#inviteGroupCallParticipants}.
*/
export interface InviteGroupCallParticipants {
    '@type': 'inviteGroupCallParticipants';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
User identifiers. At most 10 users can be invited simultaneously.
*/
    user_ids: number[];
}
/**
Returns invite link to a video chat in a public chat.
Request type for {@link Tdjson#getGroupCallInviteLink}.
*/
export interface GetGroupCallInviteLink {
    '@type': 'getGroupCallInviteLink';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
Pass true if the invite link needs to contain an invite hash, passing which to joinGroupCall would allow the invited
user to unmute themselves. Requires groupCall.can_be_managed group call flag.
*/
    can_self_unmute?: boolean;
}
/**
Revokes invite link for a group call. Requires groupCall.can_be_managed group call flag.
Request type for {@link Tdjson#revokeGroupCallInviteLink}.
*/
export interface RevokeGroupCallInviteLink {
    '@type': 'revokeGroupCallInviteLink';
    /**
Group call identifier.
*/
    group_call_id: number;
}
/**
Starts recording of an active group call. Requires groupCall.can_be_managed group call flag.
Request type for {@link Tdjson#startGroupCallRecording}.
*/
export interface StartGroupCallRecording {
    '@type': 'startGroupCallRecording';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
Group call recording title; 0-64 characters.
*/
    title: string;
    /**
Pass true to record a video file instead of an audio file.
*/
    record_video?: boolean;
    /**
Pass true to use portrait orientation for video instead of landscape one.
*/
    use_portrait_orientation?: boolean;
}
/**
Ends recording of an active group call. Requires groupCall.can_be_managed group call flag.
Request type for {@link Tdjson#endGroupCallRecording}.
*/
export interface EndGroupCallRecording {
    '@type': 'endGroupCallRecording';
    /**
Group call identifier.
*/
    group_call_id: number;
}
/**
Toggles whether current user's video is paused.
Request type for {@link Tdjson#toggleGroupCallIsMyVideoPaused}.
*/
export interface ToggleGroupCallIsMyVideoPaused {
    '@type': 'toggleGroupCallIsMyVideoPaused';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
Pass true if the current user's video is paused.
*/
    is_my_video_paused?: boolean;
}
/**
Toggles whether current user's video is enabled.
Request type for {@link Tdjson#toggleGroupCallIsMyVideoEnabled}.
*/
export interface ToggleGroupCallIsMyVideoEnabled {
    '@type': 'toggleGroupCallIsMyVideoEnabled';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
Pass true if the current user's video is enabled.
*/
    is_my_video_enabled?: boolean;
}
/**
Informs TDLib that speaking state of a participant of an active group has changed.
Request type for {@link Tdjson#setGroupCallParticipantIsSpeaking}.
*/
export interface SetGroupCallParticipantIsSpeaking {
    '@type': 'setGroupCallParticipantIsSpeaking';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
Group call participant's synchronization audio source identifier, or 0 for the current user.
*/
    audio_source: number;
    /**
Pass true if the user is speaking.
*/
    is_speaking?: boolean;
}
/**
Toggles whether a participant of an active group call is muted, unmuted, or allowed to unmute themselves.
Request type for {@link Tdjson#toggleGroupCallParticipantIsMuted}.
*/
export interface ToggleGroupCallParticipantIsMuted {
    '@type': 'toggleGroupCallParticipantIsMuted';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
Participant identifier.
*/
    participant_id: MessageSender;
    /**
Pass true to mute the user; pass false to unmute them.
*/
    is_muted?: boolean;
}
/**
Changes volume level of a participant of an active group call. If the current user can manage the group call, then the
participant's volume level will be changed for all users with the default volume level.
Request type for {@link Tdjson#setGroupCallParticipantVolumeLevel}.
*/
export interface SetGroupCallParticipantVolumeLevel {
    '@type': 'setGroupCallParticipantVolumeLevel';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
Participant identifier.
*/
    participant_id: MessageSender;
    /**
New participant's volume level; 1-20000 in hundreds of percents.
*/
    volume_level: number;
}
/**
Toggles whether a group call participant hand is rased.
Request type for {@link Tdjson#toggleGroupCallParticipantIsHandRaised}.
*/
export interface ToggleGroupCallParticipantIsHandRaised {
    '@type': 'toggleGroupCallParticipantIsHandRaised';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
Participant identifier.
*/
    participant_id: MessageSender;
    /**
Pass true if the user's hand needs to be raised. Only self hand can be raised. Requires groupCall.can_be_managed group
call flag to lower other's hand.
*/
    is_hand_raised?: boolean;
}
/**
Loads more participants of a group call. The loaded participants will be received through updates. Use the field
groupCall.loaded_all_participants to check whether all participants have already been loaded.
Request type for {@link Tdjson#loadGroupCallParticipants}.
*/
export interface LoadGroupCallParticipants {
    '@type': 'loadGroupCallParticipants';
    /**
Group call identifier. The group call must be previously received through getGroupCall and must be joined or being
joined.
*/
    group_call_id: number;
    /**
The maximum number of participants to load; up to 100.
*/
    limit: number;
}
/**
Leaves a group call.
Request type for {@link Tdjson#leaveGroupCall}.
*/
export interface LeaveGroupCall {
    '@type': 'leaveGroupCall';
    /**
Group call identifier.
*/
    group_call_id: number;
}
/**
Ends a group call. Requires groupCall.can_be_managed.
Request type for {@link Tdjson#endGroupCall}.
*/
export interface EndGroupCall {
    '@type': 'endGroupCall';
    /**
Group call identifier.
*/
    group_call_id: number;
}
/**
Returns information about available group call streams.
Request type for {@link Tdjson#getGroupCallStreams}.
*/
export interface GetGroupCallStreams {
    '@type': 'getGroupCallStreams';
    /**
Group call identifier.
*/
    group_call_id: number;
}
/**
Returns a file with a segment of a group call stream in a modified OGG format for audio or MPEG-4 format for video.
Request type for {@link Tdjson#getGroupCallStreamSegment}.
*/
export interface GetGroupCallStreamSegment {
    '@type': 'getGroupCallStreamSegment';
    /**
Group call identifier.
*/
    group_call_id: number;
    /**
Point in time when the stream segment begins; Unix timestamp in milliseconds.
*/
    time_offset: number;
    /**
Segment duration scale; 0-1. Segment's duration is 1000/(2**scale) milliseconds.
*/
    scale: number;
    /**
Identifier of an audio/video channel to get as received from tgcalls.
*/
    channel_id: number;
    /**
Video quality as received from tgcalls; pass null to get the worst available quality.
*/
    video_quality: GroupCallVideoQuality;
}
/**
Changes the block list of a message sender. Currently, only users and supergroup chats can be blocked.
Request type for {@link Tdjson#setMessageSenderBlockList}.
*/
export interface SetMessageSenderBlockList {
    '@type': 'setMessageSenderBlockList';
    /**
Identifier of a message sender to block/unblock.
*/
    sender_id: MessageSender;
    /**
New block list for the message sender; pass null to unblock the message sender.
*/
    block_list: BlockList;
}
/**
Blocks an original sender of a message in the Replies chat.
Request type for {@link Tdjson#blockMessageSenderFromReplies}.
*/
export interface BlockMessageSenderFromReplies {
    '@type': 'blockMessageSenderFromReplies';
    /**
The identifier of an incoming message in the Replies chat.
*/
    message_id: number;
    /**
Pass true to delete the message.
*/
    delete_message?: boolean;
    /**
Pass true to delete all messages from the same sender.
*/
    delete_all_messages?: boolean;
    /**
Pass true to report the sender to the Telegram moderators.
*/
    report_spam?: boolean;
}
/**
Returns users and chats that were blocked by the current user.
Request type for {@link Tdjson#getBlockedMessageSenders}.
*/
export interface GetBlockedMessageSenders {
    '@type': 'getBlockedMessageSenders';
    /**
Block list from which to return users.
*/
    block_list: BlockList;
    /**
Number of users and chats to skip in the result; must be non-negative.
*/
    offset: number;
    /**
The maximum number of users and chats to return; up to 100.
*/
    limit: number;
}
/**
Adds a user to the contact list or edits an existing contact by their user identifier.
Request type for {@link Tdjson#addContact}.
*/
export interface AddContact {
    '@type': 'addContact';
    /**
The contact to add or edit; phone number may be empty and needs to be specified only if known, vCard is ignored.
*/
    contact: Contact;
    /**
Pass true to share the current user's phone number with the new contact. A corresponding rule to
userPrivacySettingShowPhoneNumber will be added if needed. Use the field
userFullInfo.need_phone_number_privacy_exception to check whether the current user needs to be asked to share their
phone number.
*/
    share_phone_number?: boolean;
}
/**
Adds new contacts or edits existing contacts by their phone numbers; contacts' user identifiers are ignored.
Request type for {@link Tdjson#importContacts}.
*/
export interface ImportContacts {
    '@type': 'importContacts';
    /**
The list of contacts to import or edit; contacts' vCard are ignored and are not imported.
*/
    contacts: Contact[];
}
/**
Returns all contacts of the user.
Request type for {@link Tdjson#getContacts}.
*/
export interface GetContacts {
    '@type': 'getContacts';
}
/**
Searches for the specified query in the first names, last names and usernames of the known user contacts.
Request type for {@link Tdjson#searchContacts}.
*/
export interface SearchContacts {
    '@type': 'searchContacts';
    /**
Query to search for; may be empty to return all contacts.
*/
    query: string;
    /**
The maximum number of users to be returned.
*/
    limit: number;
}
/**
Removes users from the contact list.
Request type for {@link Tdjson#removeContacts}.
*/
export interface RemoveContacts {
    '@type': 'removeContacts';
    /**
Identifiers of users to be deleted.
*/
    user_ids: number[];
}
/**
Returns the total number of imported contacts.
Request type for {@link Tdjson#getImportedContactCount}.
*/
export interface GetImportedContactCount {
    '@type': 'getImportedContactCount';
}
/**
Changes imported contacts using the list of contacts saved on the device. Imports newly added contacts and, if at least
the file database is enabled, deletes recently deleted contacts. Query result depends on the result of the previous
query, so only one query is possible at the same time.
Request type for {@link Tdjson#changeImportedContacts}.
*/
export interface ChangeImportedContacts {
    '@type': 'changeImportedContacts';
    /**
The new list of contacts, contact's vCard are ignored and are not imported.
*/
    contacts: Contact[];
}
/**
Clears all imported contacts, contact list remains unchanged.
Request type for {@link Tdjson#clearImportedContacts}.
*/
export interface ClearImportedContacts {
    '@type': 'clearImportedContacts';
}
/**
Changes the list of close friends of the current user.
Request type for {@link Tdjson#setCloseFriends}.
*/
export interface SetCloseFriends {
    '@type': 'setCloseFriends';
    /**
User identifiers of close friends; the users must be contacts of the current user.
*/
    user_ids: number[];
}
/**
Returns all close friends of the current user.
Request type for {@link Tdjson#getCloseFriends}.
*/
export interface GetCloseFriends {
    '@type': 'getCloseFriends';
}
/**
Changes a personal profile photo of a contact user.
Request type for {@link Tdjson#setUserPersonalProfilePhoto}.
*/
export interface SetUserPersonalProfilePhoto {
    '@type': 'setUserPersonalProfilePhoto';
    /**
User identifier.
*/
    user_id: number;
    /**
Profile photo to set; pass null to delete the photo; inputChatPhotoPrevious isn't supported in this function.
*/
    photo: InputChatPhoto;
}
/**
Suggests a profile photo to another regular user with common messages and allowing non-paid messages.
Request type for {@link Tdjson#suggestUserProfilePhoto}.
*/
export interface SuggestUserProfilePhoto {
    '@type': 'suggestUserProfilePhoto';
    /**
User identifier.
*/
    user_id: number;
    /**
Profile photo to suggest; inputChatPhotoPrevious isn't supported in this function.
*/
    photo: InputChatPhoto;
}
/**
Toggles whether the bot can manage emoji status of the current user.
Request type for {@link Tdjson#toggleBotCanManageEmojiStatus}.
*/
export interface ToggleBotCanManageEmojiStatus {
    '@type': 'toggleBotCanManageEmojiStatus';
    /**
User identifier of the bot.
*/
    bot_user_id: number;
    /**
Pass true if the bot is allowed to change emoji status of the user; pass false otherwise.
*/
    can_manage_emoji_status?: boolean;
}
/**
Changes the emoji status of a user; for bots only.
Request type for {@link Tdjson#setUserEmojiStatus}.
*/
export interface SetUserEmojiStatus {
    '@type': 'setUserEmojiStatus';
    /**
Identifier of the user.
*/
    user_id: number;
    /**
New emoji status; pass null to switch to the default badge.
*/
    emoji_status: EmojiStatus;
}
/**
Searches a user by their phone number. Returns a 404 error if the user can't be found.
Request type for {@link Tdjson#searchUserByPhoneNumber}.
*/
export interface SearchUserByPhoneNumber {
    '@type': 'searchUserByPhoneNumber';
    /**
Phone number to search for.
*/
    phone_number: string;
    /**
Pass true to get only locally available information without sending network requests.
*/
    only_local?: boolean;
}
/**
Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on
chatActionBarSharePhoneNumber.
Request type for {@link Tdjson#sharePhoneNumber}.
*/
export interface SharePhoneNumber {
    '@type': 'sharePhoneNumber';
    /**
Identifier of the user with whom to share the phone number. The user must be a mutual contact.
*/
    user_id: number;
}
/**
Returns the profile photos of a user. Personal and public photo aren't returned.
Request type for {@link Tdjson#getUserProfilePhotos}.
*/
export interface GetUserProfilePhotos {
    '@type': 'getUserProfilePhotos';
    /**
User identifier.
*/
    user_id: number;
    /**
The number of photos to skip; must be non-negative.
*/
    offset: number;
    /**
The maximum number of photos to be returned; up to 100.
*/
    limit: number;
}
/**
Returns outline of a sticker; this is an offline request. Returns a 404 error if the outline isn't known.
Request type for {@link Tdjson#getStickerOutline}.
*/
export interface GetStickerOutline {
    '@type': 'getStickerOutline';
    /**
File identifier of the sticker.
*/
    sticker_file_id: number;
    /**
Pass true to get the outline scaled for animated emoji.
*/
    for_animated_emoji?: boolean;
    /**
Pass true to get the outline scaled for clicked animated emoji message.
*/
    for_clicked_animated_emoji_message?: boolean;
}
/**
Returns stickers from the installed sticker sets that correspond to any of the given emoji or can be found by
sticker-specific keywords. If the query is non-empty, then favorite, recently used or trending stickers may also be
returned.
Request type for {@link Tdjson#getStickers}.
*/
export interface GetStickers {
    '@type': 'getStickers';
    /**
Type of the stickers to return.
*/
    sticker_type: StickerType;
    /**
Search query; a space-separated list of emojis or a keyword prefix. If empty, returns all known installed stickers.
*/
    query: string;
    /**
The maximum number of stickers to be returned.
*/
    limit: number;
    /**
Chat identifier for which to return stickers. Available custom emoji stickers may be different for different chats.
*/
    chat_id: number;
}
/**
Returns unique emoji that correspond to stickers to be found by the getStickers(sticker_type, query, 1000000, chat_id).
Request type for {@link Tdjson#getAllStickerEmojis}.
*/
export interface GetAllStickerEmojis {
    '@type': 'getAllStickerEmojis';
    /**
Type of the stickers to search for.
*/
    sticker_type: StickerType;
    /**
Search query.
*/
    query: string;
    /**
Chat identifier for which to find stickers.
*/
    chat_id: number;
    /**
Pass true if only main emoji for each found sticker must be included in the result.
*/
    return_only_main_emoji?: boolean;
}
/**
Searches for stickers from public sticker sets that correspond to any of the given emoji.
Request type for {@link Tdjson#searchStickers}.
*/
export interface SearchStickers {
    '@type': 'searchStickers';
    /**
Type of the stickers to return.
*/
    sticker_type: StickerType;
    /**
Space-separated list of emojis to search for.
*/
    emojis: string;
    /**
Query to search for; may be empty to search for emoji only.
*/
    query: string;
    /**
List of possible IETF language tags of the user's input language; may be empty if unknown.
*/
    input_language_codes: string[];
    /**
The offset from which to return the stickers; must be non-negative.
*/
    offset: number;
    /**
The maximum number of stickers to be returned; 0-100.
*/
    limit: number;
}
/**
Returns greeting stickers from regular sticker sets that can be used for the start page of other users.
Request type for {@link Tdjson#getGreetingStickers}.
*/
export interface GetGreetingStickers {
    '@type': 'getGreetingStickers';
}
/**
Returns premium stickers from regular sticker sets.
Request type for {@link Tdjson#getPremiumStickers}.
*/
export interface GetPremiumStickers {
    '@type': 'getPremiumStickers';
    /**
The maximum number of stickers to be returned; 0-100.
*/
    limit: number;
}
/**
Returns a list of installed sticker sets.
Request type for {@link Tdjson#getInstalledStickerSets}.
*/
export interface GetInstalledStickerSets {
    '@type': 'getInstalledStickerSets';
    /**
Type of the sticker sets to return.
*/
    sticker_type: StickerType;
}
/**
Returns a list of archived sticker sets.
Request type for {@link Tdjson#getArchivedStickerSets}.
*/
export interface GetArchivedStickerSets {
    '@type': 'getArchivedStickerSets';
    /**
Type of the sticker sets to return.
*/
    sticker_type: StickerType;
    /**
Identifier of the sticker set from which to return the result; use 0 to get results from the beginning.
*/
    offset_sticker_set_id: string;
    /**
The maximum number of sticker sets to return; up to 100.
*/
    limit: number;
}
/**
Returns a list of trending sticker sets. For optimal performance, the number of returned sticker sets is chosen by
TDLib.
Request type for {@link Tdjson#getTrendingStickerSets}.
*/
export interface GetTrendingStickerSets {
    '@type': 'getTrendingStickerSets';
    /**
Type of the sticker sets to return.
*/
    sticker_type: StickerType;
    /**
The offset from which to return the sticker sets; must be non-negative.
*/
    offset: number;
    /**
The maximum number of sticker sets to be returned; up to 100. For optimal performance, the number of returned sticker
sets is chosen by TDLib and can be smaller than the specified limit, even if the end of the list has not been reached.
*/
    limit: number;
}
/**
Returns a list of sticker sets attached to a file, including regular, mask, and emoji sticker sets. Currently, only
animations, photos, and videos can have attached sticker sets.
Request type for {@link Tdjson#getAttachedStickerSets}.
*/
export interface GetAttachedStickerSets {
    '@type': 'getAttachedStickerSets';
    /**
File identifier.
*/
    file_id: number;
}
/**
Returns information about a sticker set by its identifier.
Request type for {@link Tdjson#getStickerSet}.
*/
export interface GetStickerSet {
    '@type': 'getStickerSet';
    /**
Identifier of the sticker set.
*/
    set_id: string;
}
/**
Returns name of a sticker set by its identifier.
Request type for {@link Tdjson#getStickerSetName}.
*/
export interface GetStickerSetName {
    '@type': 'getStickerSetName';
    /**
Identifier of the sticker set.
*/
    set_id: string;
}
/**
Searches for a sticker set by its name.
Request type for {@link Tdjson#searchStickerSet}.
*/
export interface SearchStickerSet {
    '@type': 'searchStickerSet';
    /**
Name of the sticker set.
*/
    name: string;
    /**
Pass true to ignore local cache of sticker sets and always send a network request.
*/
    ignore_cache?: boolean;
}
/**
Searches for installed sticker sets by looking for specified query in their title and name.
Request type for {@link Tdjson#searchInstalledStickerSets}.
*/
export interface SearchInstalledStickerSets {
    '@type': 'searchInstalledStickerSets';
    /**
Type of the sticker sets to search for.
*/
    sticker_type: StickerType;
    /**
Query to search for.
*/
    query: string;
    /**
The maximum number of sticker sets to return.
*/
    limit: number;
}
/**
Searches for sticker sets by looking for specified query in their title and name. Excludes installed sticker sets from
the results.
Request type for {@link Tdjson#searchStickerSets}.
*/
export interface SearchStickerSets {
    '@type': 'searchStickerSets';
    /**
Type of the sticker sets to return.
*/
    sticker_type: StickerType;
    /**
Query to search for.
*/
    query: string;
}
/**
Installs/uninstalls or activates/archives a sticker set.
Request type for {@link Tdjson#changeStickerSet}.
*/
export interface ChangeStickerSet {
    '@type': 'changeStickerSet';
    /**
Identifier of the sticker set.
*/
    set_id: string;
    /**
The new value of is_installed.
*/
    is_installed?: boolean;
    /**
The new value of is_archived. A sticker set can't be installed and archived simultaneously.
*/
    is_archived?: boolean;
}
/**
Informs the server that some trending sticker sets have been viewed by the user.
Request type for {@link Tdjson#viewTrendingStickerSets}.
*/
export interface ViewTrendingStickerSets {
    '@type': 'viewTrendingStickerSets';
    /**
Identifiers of viewed trending sticker sets.
*/
    sticker_set_ids: string[];
}
/**
Changes the order of installed sticker sets.
Request type for {@link Tdjson#reorderInstalledStickerSets}.
*/
export interface ReorderInstalledStickerSets {
    '@type': 'reorderInstalledStickerSets';
    /**
Type of the sticker sets to reorder.
*/
    sticker_type: StickerType;
    /**
Identifiers of installed sticker sets in the new correct order.
*/
    sticker_set_ids: string[];
}
/**
Returns a list of recently used stickers.
Request type for {@link Tdjson#getRecentStickers}.
*/
export interface GetRecentStickers {
    '@type': 'getRecentStickers';
    /**
Pass true to return stickers and masks that were recently attached to photos or video files; pass false to return
recently sent stickers.
*/
    is_attached?: boolean;
}
/**
Manually adds a new sticker to the list of recently used stickers. The new sticker is added to the top of the list. If
the sticker was already in the list, it is removed from the list first. Only stickers belonging to a sticker set or in
WEBP or WEBM format can be added to this list. Emoji stickers can't be added to recent stickers.
Request type for {@link Tdjson#addRecentSticker}.
*/
export interface AddRecentSticker {
    '@type': 'addRecentSticker';
    /**
Pass true to add the sticker to the list of stickers recently attached to photo or video files; pass false to add the
sticker to the list of recently sent stickers.
*/
    is_attached?: boolean;
    /**
Sticker file to add.
*/
    sticker: InputFile;
}
/**
Removes a sticker from the list of recently used stickers.
Request type for {@link Tdjson#removeRecentSticker}.
*/
export interface RemoveRecentSticker {
    '@type': 'removeRecentSticker';
    /**
Pass true to remove the sticker from the list of stickers recently attached to photo or video files; pass false to
remove the sticker from the list of recently sent stickers.
*/
    is_attached?: boolean;
    /**
Sticker file to delete.
*/
    sticker: InputFile;
}
/**
Clears the list of recently used stickers.
Request type for {@link Tdjson#clearRecentStickers}.
*/
export interface ClearRecentStickers {
    '@type': 'clearRecentStickers';
    /**
Pass true to clear the list of stickers recently attached to photo or video files; pass false to clear the list of
recently sent stickers.
*/
    is_attached?: boolean;
}
/**
Returns favorite stickers.
Request type for {@link Tdjson#getFavoriteStickers}.
*/
export interface GetFavoriteStickers {
    '@type': 'getFavoriteStickers';
}
/**
Adds a new sticker to the list of favorite stickers. The new sticker is added to the top of the list. If the sticker was
already in the list, it is removed from the list first. Only stickers belonging to a sticker set or in WEBP or WEBM
format can be added to this list. Emoji stickers can't be added to favorite stickers.
Request type for {@link Tdjson#addFavoriteSticker}.
*/
export interface AddFavoriteSticker {
    '@type': 'addFavoriteSticker';
    /**
Sticker file to add.
*/
    sticker: InputFile;
}
/**
Removes a sticker from the list of favorite stickers.
Request type for {@link Tdjson#removeFavoriteSticker}.
*/
export interface RemoveFavoriteSticker {
    '@type': 'removeFavoriteSticker';
    /**
Sticker file to delete from the list.
*/
    sticker: InputFile;
}
/**
Returns emoji corresponding to a sticker. The list is only for informational purposes, because a sticker is always sent
with a fixed emoji from the corresponding Sticker object.
Request type for {@link Tdjson#getStickerEmojis}.
*/
export interface GetStickerEmojis {
    '@type': 'getStickerEmojis';
    /**
Sticker file identifier.
*/
    sticker: InputFile;
}
/**
Searches for emojis by keywords. Supported only if the file database is enabled. Order of results is unspecified.
Request type for {@link Tdjson#searchEmojis}.
*/
export interface SearchEmojis {
    '@type': 'searchEmojis';
    /**
Text to search for.
*/
    text: string;
    /**
List of possible IETF language tags of the user's input language; may be empty if unknown.
*/
    input_language_codes: string[];
}
/**
Return emojis matching the keyword. Supported only if the file database is enabled. Order of results is unspecified.
Request type for {@link Tdjson#getKeywordEmojis}.
*/
export interface GetKeywordEmojis {
    '@type': 'getKeywordEmojis';
    /**
Text to search for.
*/
    text: string;
    /**
List of possible IETF language tags of the user's input language; may be empty if unknown.
*/
    input_language_codes: string[];
}
/**
Returns available emoji categories.
Request type for {@link Tdjson#getEmojiCategories}.
*/
export interface GetEmojiCategories {
    '@type': 'getEmojiCategories';
    /**
Type of emoji categories to return; pass null to get default emoji categories.
*/
    type: EmojiCategoryType;
}
/**
Returns an animated emoji corresponding to a given emoji. Returns a 404 error if the emoji has no animated emoji.
Request type for {@link Tdjson#getAnimatedEmoji}.
*/
export interface GetAnimatedEmoji {
    '@type': 'getAnimatedEmoji';
    /**
The emoji.
*/
    emoji: string;
}
/**
Returns an HTTP URL which can be used to automatically log in to the translation platform and suggest new emoji
replacements. The URL will be valid for 30 seconds after generation.
Request type for {@link Tdjson#getEmojiSuggestionsUrl}.
*/
export interface GetEmojiSuggestionsUrl {
    '@type': 'getEmojiSuggestionsUrl';
    /**
Language code for which the emoji replacements will be suggested.
*/
    language_code: string;
}
/**
Returns the list of custom emoji stickers by their identifiers. Stickers are returned in arbitrary order. Only found
stickers are returned.
Request type for {@link Tdjson#getCustomEmojiStickers}.
*/
export interface GetCustomEmojiStickers {
    '@type': 'getCustomEmojiStickers';
    /**
Identifiers of custom emoji stickers. At most 200 custom emoji stickers can be received simultaneously.
*/
    custom_emoji_ids: string[];
}
/**
Returns default list of custom emoji stickers for placing on a chat photo.
Request type for {@link Tdjson#getDefaultChatPhotoCustomEmojiStickers}.
*/
export interface GetDefaultChatPhotoCustomEmojiStickers {
    '@type': 'getDefaultChatPhotoCustomEmojiStickers';
}
/**
Returns default list of custom emoji stickers for placing on a profile photo.
Request type for {@link Tdjson#getDefaultProfilePhotoCustomEmojiStickers}.
*/
export interface GetDefaultProfilePhotoCustomEmojiStickers {
    '@type': 'getDefaultProfilePhotoCustomEmojiStickers';
}
/**
Returns default list of custom emoji stickers for reply background.
Request type for {@link Tdjson#getDefaultBackgroundCustomEmojiStickers}.
*/
export interface GetDefaultBackgroundCustomEmojiStickers {
    '@type': 'getDefaultBackgroundCustomEmojiStickers';
}
/**
Returns saved animations.
Request type for {@link Tdjson#getSavedAnimations}.
*/
export interface GetSavedAnimations {
    '@type': 'getSavedAnimations';
}
/**
Manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list.
If the animation was already in the list, it is removed first. Only non-secret video animations with MIME type
"video/mp4" can be added to the list.
Request type for {@link Tdjson#addSavedAnimation}.
*/
export interface AddSavedAnimation {
    '@type': 'addSavedAnimation';
    /**
The animation file to be added. Only animations known to the server (i.e., successfully sent via a message) can be added
to the list.
*/
    animation: InputFile;
}
/**
Removes an animation from the list of saved animations.
Request type for {@link Tdjson#removeSavedAnimation}.
*/
export interface RemoveSavedAnimation {
    '@type': 'removeSavedAnimation';
    /**
Animation file to be removed.
*/
    animation: InputFile;
}
/**
Returns up to 20 recently used inline bots in the order of their last usage.
Request type for {@link Tdjson#getRecentInlineBots}.
*/
export interface GetRecentInlineBots {
    '@type': 'getRecentInlineBots';
}
/**
Returns the list of bots owned by the current user.
Request type for {@link Tdjson#getOwnedBots}.
*/
export interface GetOwnedBots {
    '@type': 'getOwnedBots';
}
/**
Searches for recently used hashtags by their prefix.
Request type for {@link Tdjson#searchHashtags}.
*/
export interface SearchHashtags {
    '@type': 'searchHashtags';
    /**
Hashtag prefix to search for.
*/
    prefix: string;
    /**
The maximum number of hashtags to be returned.
*/
    limit: number;
}
/**
Removes a hashtag from the list of recently used hashtags.
Request type for {@link Tdjson#removeRecentHashtag}.
*/
export interface RemoveRecentHashtag {
    '@type': 'removeRecentHashtag';
    /**
Hashtag to delete.
*/
    hashtag: string;
}
/**
Returns a link preview by the text of a message. Do not call this function too often. Returns a 404 error if the text
has no link preview.
Request type for {@link Tdjson#getLinkPreview}.
*/
export interface GetLinkPreview {
    '@type': 'getLinkPreview';
    /**
Message text with formatting.
*/
    text: FormattedText;
    /**
Options to be used for generation of the link preview; pass null to use default link preview options.
*/
    link_preview_options: LinkPreviewOptions;
}
/**
Returns an instant view version of a web page if available. This is an offline request if only_local is true. Returns a
404 error if the web page has no instant view page.
Request type for {@link Tdjson#getWebPageInstantView}.
*/
export interface GetWebPageInstantView {
    '@type': 'getWebPageInstantView';
    /**
The web page URL.
*/
    url: string;
    /**
Pass true to get only locally available information without sending network requests.
*/
    only_local?: boolean;
}
/**
Changes a profile photo for the current user.
Request type for {@link Tdjson#setProfilePhoto}.
*/
export interface SetProfilePhoto {
    '@type': 'setProfilePhoto';
    /**
Profile photo to set.
*/
    photo: InputChatPhoto;
    /**
Pass true to set a public photo, which will be visible even the main photo is hidden by privacy settings.
*/
    is_public?: boolean;
}
/**
Deletes a profile photo.
Request type for {@link Tdjson#deleteProfilePhoto}.
*/
export interface DeleteProfilePhoto {
    '@type': 'deleteProfilePhoto';
    /**
Identifier of the profile photo to delete.
*/
    profile_photo_id: string;
}
/**
Changes accent color and background custom emoji for the current user; for Telegram Premium users only.
Request type for {@link Tdjson#setAccentColor}.
*/
export interface SetAccentColor {
    '@type': 'setAccentColor';
    /**
Identifier of the accent color to use.
*/
    accent_color_id: number;
    /**
Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none.
*/
    background_custom_emoji_id: string;
}
/**
Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only.
Request type for {@link Tdjson#setProfileAccentColor}.
*/
export interface SetProfileAccentColor {
    '@type': 'setProfileAccentColor';
    /**
Identifier of the accent color to use for profile; pass -1 if none.
*/
    profile_accent_color_id: number;
    /**
Identifier of a custom emoji to be shown on the user's profile photo background; 0 if none.
*/
    profile_background_custom_emoji_id: string;
}
/**
Changes the first and last name of the current user.
Request type for {@link Tdjson#setName}.
*/
export interface SetName {
    '@type': 'setName';
    /**
The new value of the first name for the current user; 1-64 characters.
*/
    first_name: string;
    /**
The new value of the optional last name for the current user; 0-64 characters.
*/
    last_name: string;
}
/**
Changes the bio of the current user.
Request type for {@link Tdjson#setBio}.
*/
export interface SetBio {
    '@type': 'setBio';
    /**
The new value of the user bio; 0-getOption("bio_length_max") characters without line feeds.
*/
    bio: string;
}
/**
Changes the editable username of the current user.
Request type for {@link Tdjson#setUsername}.
*/
export interface SetUsername {
    '@type': 'setUsername';
    /**
The new value of the username. Use an empty string to remove the username. The username can't be completely removed if
there is another active or disabled username.
*/
    username: string;
}
/**
Changes active state for a username of the current user. The editable username can't be disabled. May return an error
with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached.
Request type for {@link Tdjson#toggleUsernameIsActive}.
*/
export interface ToggleUsernameIsActive {
    '@type': 'toggleUsernameIsActive';
    /**
The username to change.
*/
    username: string;
    /**
Pass true to activate the username; pass false to disable it.
*/
    is_active?: boolean;
}
/**
Changes order of active usernames of the current user.
Request type for {@link Tdjson#reorderActiveUsernames}.
*/
export interface ReorderActiveUsernames {
    '@type': 'reorderActiveUsernames';
    /**
The new order of active usernames. All currently active usernames must be specified.
*/
    usernames: string[];
}
/**
Changes the birthdate of the current user.
Request type for {@link Tdjson#setBirthdate}.
*/
export interface SetBirthdate {
    '@type': 'setBirthdate';
    /**
The new value of the current user's birthdate; pass null to remove the birthdate.
*/
    birthdate: Birthdate;
}
/**
Changes the personal chat of the current user.
Request type for {@link Tdjson#setPersonalChat}.
*/
export interface SetPersonalChat {
    '@type': 'setPersonalChat';
    /**
Identifier of the new personal chat; pass 0 to remove the chat. Use getSuitablePersonalChats to get suitable chats.
*/
    chat_id: number;
}
/**
Changes the emoji status of the current user; for Telegram Premium users only.
Request type for {@link Tdjson#setEmojiStatus}.
*/
export interface SetEmojiStatus {
    '@type': 'setEmojiStatus';
    /**
New emoji status; pass null to switch to the default badge.
*/
    emoji_status: EmojiStatus;
}
/**
Toggles whether the current user has sponsored messages enabled. The setting has no effect for users without Telegram
Premium for which sponsored messages are always enabled.
Request type for {@link Tdjson#toggleHasSponsoredMessagesEnabled}.
*/
export interface ToggleHasSponsoredMessagesEnabled {
    '@type': 'toggleHasSponsoredMessagesEnabled';
    /**
Pass true to enable sponsored messages for the current user; false to disable them.
*/
    has_sponsored_messages_enabled?: boolean;
}
/**
Changes the business location of the current user. Requires Telegram Business subscription.
Request type for {@link Tdjson#setBusinessLocation}.
*/
export interface SetBusinessLocation {
    '@type': 'setBusinessLocation';
    /**
The new location of the business; pass null to remove the location.
*/
    location: BusinessLocation;
}
/**
Changes the business opening hours of the current user. Requires Telegram Business subscription.
Request type for {@link Tdjson#setBusinessOpeningHours}.
*/
export interface SetBusinessOpeningHours {
    '@type': 'setBusinessOpeningHours';
    /**
The new opening hours of the business; pass null to remove the opening hours; up to 28 time intervals can be specified.
*/
    opening_hours: BusinessOpeningHours;
}
/**
Changes the business greeting message settings of the current user. Requires Telegram Business subscription.
Request type for {@link Tdjson#setBusinessGreetingMessageSettings}.
*/
export interface SetBusinessGreetingMessageSettings {
    '@type': 'setBusinessGreetingMessageSettings';
    /**
The new settings for the greeting message of the business; pass null to disable the greeting message.
*/
    greeting_message_settings: BusinessGreetingMessageSettings;
}
/**
Changes the business away message settings of the current user. Requires Telegram Business subscription.
Request type for {@link Tdjson#setBusinessAwayMessageSettings}.
*/
export interface SetBusinessAwayMessageSettings {
    '@type': 'setBusinessAwayMessageSettings';
    /**
The new settings for the away message of the business; pass null to disable the away message.
*/
    away_message_settings: BusinessAwayMessageSettings;
}
/**
Changes the business start page of the current user. Requires Telegram Business subscription.
Request type for {@link Tdjson#setBusinessStartPage}.
*/
export interface SetBusinessStartPage {
    '@type': 'setBusinessStartPage';
    /**
The new start page of the business; pass null to remove custom start page.
*/
    start_page: InputBusinessStartPage;
}
/**
Sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success,
returns information about the sent code.
Request type for {@link Tdjson#sendPhoneNumberCode}.
*/
export interface SendPhoneNumberCode {
    '@type': 'sendPhoneNumberCode';
    /**
The phone number, in international format.
*/
    phone_number: string;
    /**
Settings for the authentication of the user's phone number; pass null to use default settings.
*/
    settings: PhoneNumberAuthenticationSettings;
    /**
Type of the request for which the code is sent.
*/
    type: PhoneNumberCodeType;
}
/**
Sends Firebase Authentication SMS to the specified phone number. Works only when received a code of the type
authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos.
Request type for {@link Tdjson#sendPhoneNumberFirebaseSms}.
*/
export interface SendPhoneNumberFirebaseSms {
    '@type': 'sendPhoneNumberFirebaseSms';
    /**
Play Integrity API or SafetyNet Attestation API token for the Android application, or secret from push notification for
the iOS application.
*/
    token: string;
}
/**
Reports that authentication code wasn't delivered via SMS to the specified phone number; for official mobile
applications only.
Request type for {@link Tdjson#reportPhoneNumberCodeMissing}.
*/
export interface ReportPhoneNumberCodeMissing {
    '@type': 'reportPhoneNumberCodeMissing';
    /**
Current mobile network code.
*/
    mobile_network_code: string;
}
/**
Resends the authentication code sent to a phone number. Works only if the previously received authenticationCodeInfo
next_code_type was not null and the server-specified timeout has passed.
Request type for {@link Tdjson#resendPhoneNumberCode}.
*/
export interface ResendPhoneNumberCode {
    '@type': 'resendPhoneNumberCode';
    /**
Reason of code resending; pass null if unknown.
*/
    reason: ResendCodeReason;
}
/**
Check the authentication code and completes the request for which the code was sent if appropriate.
Request type for {@link Tdjson#checkPhoneNumberCode}.
*/
export interface CheckPhoneNumberCode {
    '@type': 'checkPhoneNumberCode';
    /**
Authentication code to check.
*/
    code: string;
}
/**
Returns the business bot that is connected to the current user account. Returns a 404 error if there is no connected
bot.
Request type for {@link Tdjson#getBusinessConnectedBot}.
*/
export interface GetBusinessConnectedBot {
    '@type': 'getBusinessConnectedBot';
}
/**
Adds or changes business bot that is connected to the current user account.
Request type for {@link Tdjson#setBusinessConnectedBot}.
*/
export interface SetBusinessConnectedBot {
    '@type': 'setBusinessConnectedBot';
    /**
Connection settings for the bot.
*/
    bot: BusinessConnectedBot;
}
/**
Deletes the business bot that is connected to the current user account.
Request type for {@link Tdjson#deleteBusinessConnectedBot}.
*/
export interface DeleteBusinessConnectedBot {
    '@type': 'deleteBusinessConnectedBot';
    /**
Unique user identifier for the bot.
*/
    bot_user_id: number;
}
/**
Pauses or resumes the connected business bot in a specific chat.
Request type for {@link Tdjson#toggleBusinessConnectedBotChatIsPaused}.
*/
export interface ToggleBusinessConnectedBotChatIsPaused {
    '@type': 'toggleBusinessConnectedBotChatIsPaused';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Pass true to pause the connected bot in the chat; pass false to resume the bot.
*/
    is_paused?: boolean;
}
/**
Removes the connected business bot from a specific chat by adding the chat to businessRecipients.excluded_chat_ids.
Request type for {@link Tdjson#removeBusinessConnectedBotFromChat}.
*/
export interface RemoveBusinessConnectedBotFromChat {
    '@type': 'removeBusinessConnectedBotFromChat';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Returns business chat links created for the current account.
Request type for {@link Tdjson#getBusinessChatLinks}.
*/
export interface GetBusinessChatLinks {
    '@type': 'getBusinessChatLinks';
}
/**
Creates a business chat link for the current account. Requires Telegram Business subscription. There can be up to
getOption("business_chat_link_count_max") links created. Returns the created link.
Request type for {@link Tdjson#createBusinessChatLink}.
*/
export interface CreateBusinessChatLink {
    '@type': 'createBusinessChatLink';
    /**
Information about the link to create.
*/
    link_info: InputBusinessChatLink;
}
/**
Edits a business chat link of the current account. Requires Telegram Business subscription. Returns the edited link.
Request type for {@link Tdjson#editBusinessChatLink}.
*/
export interface EditBusinessChatLink {
    '@type': 'editBusinessChatLink';
    /**
The link to edit.
*/
    link: string;
    /**
New description of the link.
*/
    link_info: InputBusinessChatLink;
}
/**
Deletes a business chat link of the current account.
Request type for {@link Tdjson#deleteBusinessChatLink}.
*/
export interface DeleteBusinessChatLink {
    '@type': 'deleteBusinessChatLink';
    /**
The link to delete.
*/
    link: string;
}
/**
Returns information about a business chat link.
Request type for {@link Tdjson#getBusinessChatLinkInfo}.
*/
export interface GetBusinessChatLinkInfo {
    '@type': 'getBusinessChatLinkInfo';
    /**
Name of the link.
*/
    link_name: string;
}
/**
Returns an HTTPS link, which can be used to get information about the current user.
Request type for {@link Tdjson#getUserLink}.
*/
export interface GetUserLink {
    '@type': 'getUserLink';
}
/**
Searches a user by a token from the user's link.
Request type for {@link Tdjson#searchUserByToken}.
*/
export interface SearchUserByToken {
    '@type': 'searchUserByToken';
    /**
Token to search for.
*/
    token: string;
}
/**
Sets the list of commands supported by the bot for the given user scope and language; for bots only.
Request type for {@link Tdjson#setCommands}.
*/
export interface SetCommands {
    '@type': 'setCommands';
    /**
The scope to which the commands are relevant; pass null to change commands in the default bot command scope.
*/
    scope: BotCommandScope;
    /**
A two-letter ISO 639-1 language code. If empty, the commands will be applied to all users from the given scope, for
which language there are no dedicated commands.
*/
    language_code: string;
    /**
List of the bot's commands.
*/
    commands: BotCommand[];
}
/**
Deletes commands supported by the bot for the given user scope and language; for bots only.
Request type for {@link Tdjson#deleteCommands}.
*/
export interface DeleteCommands {
    '@type': 'deleteCommands';
    /**
The scope to which the commands are relevant; pass null to delete commands in the default bot command scope.
*/
    scope: BotCommandScope;
    /**
A two-letter ISO 639-1 language code or an empty string.
*/
    language_code: string;
}
/**
Returns the list of commands supported by the bot for the given user scope and language; for bots only.
Request type for {@link Tdjson#getCommands}.
*/
export interface GetCommands {
    '@type': 'getCommands';
    /**
The scope to which the commands are relevant; pass null to get commands in the default bot command scope.
*/
    scope: BotCommandScope;
    /**
A two-letter ISO 639-1 language code or an empty string.
*/
    language_code: string;
}
/**
Sets menu button for the given user or for all users; for bots only.
Request type for {@link Tdjson#setMenuButton}.
*/
export interface SetMenuButton {
    '@type': 'setMenuButton';
    /**
Identifier of the user or 0 to set menu button for all users.
*/
    user_id: number;
    /**
New menu button.
*/
    menu_button: BotMenuButton;
}
/**
Returns menu button set by the bot for the given user; for bots only.
Request type for {@link Tdjson#getMenuButton}.
*/
export interface GetMenuButton {
    '@type': 'getMenuButton';
    /**
Identifier of the user or 0 to get the default menu button.
*/
    user_id: number;
}
/**
Sets default administrator rights for adding the bot to basic group and supergroup chats; for bots only.
Request type for {@link Tdjson#setDefaultGroupAdministratorRights}.
*/
export interface SetDefaultGroupAdministratorRights {
    '@type': 'setDefaultGroupAdministratorRights';
    /**
Default administrator rights for adding the bot to basic group and supergroup chats; pass null to remove default rights.
*/
    default_group_administrator_rights: ChatAdministratorRights;
}
/**
Sets default administrator rights for adding the bot to channel chats; for bots only.
Request type for {@link Tdjson#setDefaultChannelAdministratorRights}.
*/
export interface SetDefaultChannelAdministratorRights {
    '@type': 'setDefaultChannelAdministratorRights';
    /**
Default administrator rights for adding the bot to channels; pass null to remove default rights.
*/
    default_channel_administrator_rights: ChatAdministratorRights;
}
/**
Checks whether the specified bot can send messages to the user. Returns a 404 error if can't and the access can be
granted by call to allowBotToSendMessages.
Request type for {@link Tdjson#canBotSendMessages}.
*/
export interface CanBotSendMessages {
    '@type': 'canBotSendMessages';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
}
/**
Allows the specified bot to send messages to the user.
Request type for {@link Tdjson#allowBotToSendMessages}.
*/
export interface AllowBotToSendMessages {
    '@type': 'allowBotToSendMessages';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
}
/**
Sends a custom request from a Web App.
Request type for {@link Tdjson#sendWebAppCustomRequest}.
*/
export interface SendWebAppCustomRequest {
    '@type': 'sendWebAppCustomRequest';
    /**
Identifier of the bot.
*/
    bot_user_id: number;
    /**
The method name.
*/
    method: string;
    /**
JSON-serialized method parameters.
*/
    parameters: string;
}
/**
Returns the list of media previews of a bot.
Request type for {@link Tdjson#getBotMediaPreviews}.
*/
export interface GetBotMediaPreviews {
    '@type': 'getBotMediaPreviews';
    /**
Identifier of the target bot. The bot must have the main Web App.
*/
    bot_user_id: number;
}
/**
Returns the list of media previews for the given language and the list of languages for which the bot has dedicated
previews.
Request type for {@link Tdjson#getBotMediaPreviewInfo}.
*/
export interface GetBotMediaPreviewInfo {
    '@type': 'getBotMediaPreviewInfo';
    /**
Identifier of the target bot. The bot must be owned and must have the main Web App.
*/
    bot_user_id: number;
    /**
A two-letter ISO 639-1 language code for which to get previews. If empty, then default previews are returned.
*/
    language_code: string;
}
/**
Adds a new media preview to the beginning of the list of media previews of a bot. Returns the added preview after
addition is completed server-side. The total number of previews must not exceed getOption("bot_media_preview_count_max")
for the given language.
Request type for {@link Tdjson#addBotMediaPreview}.
*/
export interface AddBotMediaPreview {
    '@type': 'addBotMediaPreview';
    /**
Identifier of the target bot. The bot must be owned and must have the main Web App.
*/
    bot_user_id: number;
    /**
A two-letter ISO 639-1 language code for which preview is added. If empty, then the preview will be shown to all users
for whose languages there are no dedicated previews. If non-empty, then there must be an official language pack of the
same name, which is returned by getLocalizationTargetInfo.
*/
    language_code: string;
    /**
Content of the added preview.
*/
    content: InputStoryContent;
}
/**
Replaces media preview in the list of media previews of a bot. Returns the new preview after edit is completed
server-side.
Request type for {@link Tdjson#editBotMediaPreview}.
*/
export interface EditBotMediaPreview {
    '@type': 'editBotMediaPreview';
    /**
Identifier of the target bot. The bot must be owned and must have the main Web App.
*/
    bot_user_id: number;
    /**
Language code of the media preview to edit.
*/
    language_code: string;
    /**
File identifier of the media to replace.
*/
    file_id: number;
    /**
Content of the new preview.
*/
    content: InputStoryContent;
}
/**
Changes order of media previews in the list of media previews of a bot.
Request type for {@link Tdjson#reorderBotMediaPreviews}.
*/
export interface ReorderBotMediaPreviews {
    '@type': 'reorderBotMediaPreviews';
    /**
Identifier of the target bot. The bot must be owned and must have the main Web App.
*/
    bot_user_id: number;
    /**
Language code of the media previews to reorder.
*/
    language_code: string;
    /**
File identifiers of the media in the new order.
*/
    file_ids: number[];
}
/**
Delete media previews from the list of media previews of a bot.
Request type for {@link Tdjson#deleteBotMediaPreviews}.
*/
export interface DeleteBotMediaPreviews {
    '@type': 'deleteBotMediaPreviews';
    /**
Identifier of the target bot. The bot must be owned and must have the main Web App.
*/
    bot_user_id: number;
    /**
Language code of the media previews to delete.
*/
    language_code: string;
    /**
File identifiers of the media to delete.
*/
    file_ids: number[];
}
/**
Sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true.
Request type for {@link Tdjson#setBotName}.
*/
export interface SetBotName {
    '@type': 'setBotName';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languages there is no
dedicated name.
*/
    language_code: string;
    /**
New bot's name on the specified language; 0-64 characters; must be non-empty if language code is empty.
*/
    name: string;
}
/**
Returns the name of a bot in the given language. Can be called only if userTypeBot.can_be_edited == true.
Request type for {@link Tdjson#getBotName}.
*/
export interface GetBotName {
    '@type': 'getBotName';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
A two-letter ISO 639-1 language code or an empty string.
*/
    language_code: string;
}
/**
Changes a profile photo for a bot.
Request type for {@link Tdjson#setBotProfilePhoto}.
*/
export interface SetBotProfilePhoto {
    '@type': 'setBotProfilePhoto';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
Profile photo to set; pass null to delete the chat photo.
*/
    photo: InputChatPhoto;
}
/**
Changes active state for a username of a bot. The editable username can't be disabled. May return an error with a
message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached. Can be called only if
userTypeBot.can_be_edited == true.
Request type for {@link Tdjson#toggleBotUsernameIsActive}.
*/
export interface ToggleBotUsernameIsActive {
    '@type': 'toggleBotUsernameIsActive';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
The username to change.
*/
    username: string;
    /**
Pass true to activate the username; pass false to disable it.
*/
    is_active?: boolean;
}
/**
Changes order of active usernames of a bot. Can be called only if userTypeBot.can_be_edited == true.
Request type for {@link Tdjson#reorderBotActiveUsernames}.
*/
export interface ReorderBotActiveUsernames {
    '@type': 'reorderBotActiveUsernames';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
The new order of active usernames. All currently active usernames must be specified.
*/
    usernames: string[];
}
/**
Sets the text shown in the chat with a bot if the chat is empty. Can be called only if userTypeBot.can_be_edited ==
true.
Request type for {@link Tdjson#setBotInfoDescription}.
*/
export interface SetBotInfoDescription {
    '@type': 'setBotInfoDescription';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
A two-letter ISO 639-1 language code. If empty, the description will be shown to all users for whose languages there is
no dedicated description.
*/
    language_code: string;
    /**
Sets the text shown in the chat with a bot if the chat is empty. Can be called only if userTypeBot.can_be_edited ==
true.
*/
    description: string;
}
/**
Returns the text shown in the chat with a bot if the chat is empty in the given language. Can be called only if
userTypeBot.can_be_edited == true.
Request type for {@link Tdjson#getBotInfoDescription}.
*/
export interface GetBotInfoDescription {
    '@type': 'getBotInfoDescription';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
A two-letter ISO 639-1 language code or an empty string.
*/
    language_code: string;
}
/**
Sets the text shown on a bot's profile page and sent together with the link when users share the bot. Can be called only
if userTypeBot.can_be_edited == true.
Request type for {@link Tdjson#setBotInfoShortDescription}.
*/
export interface SetBotInfoShortDescription {
    '@type': 'setBotInfoShortDescription';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
A two-letter ISO 639-1 language code. If empty, the short description will be shown to all users for whose languages
there is no dedicated description.
*/
    language_code: string;
    /**
New bot's short description on the specified language.
*/
    short_description: string;
}
/**
Returns the text shown on a bot's profile page and sent together with the link when users share the bot in the given
language. Can be called only if userTypeBot.can_be_edited == true.
Request type for {@link Tdjson#getBotInfoShortDescription}.
*/
export interface GetBotInfoShortDescription {
    '@type': 'getBotInfoShortDescription';
    /**
Identifier of the target bot.
*/
    bot_user_id: number;
    /**
A two-letter ISO 639-1 language code or an empty string.
*/
    language_code: string;
}
/**
Changes the verification status of a user or a chat by an owned bot.
Request type for {@link Tdjson#setMessageSenderBotVerification}.
*/
export interface SetMessageSenderBotVerification {
    '@type': 'setMessageSenderBotVerification';
    /**
Identifier of the owned bot, which will verify the user or the chat.
*/
    bot_user_id: number;
    /**
Identifier of the user or the supergroup or channel chat, which will be verified by the bot.
*/
    verified_id: MessageSender;
    /**
Custom description of verification reason; 0-getOption("bot_verification_custom_description_length_max"). If empty, then
"was verified by organization "organization_name"" will be used as description. Can be specified only if the bot is
allowed to provide custom description.
*/
    custom_description: string;
}
/**
Removes the verification status of a user or a chat by an owned bot.
Request type for {@link Tdjson#removeMessageSenderBotVerification}.
*/
export interface RemoveMessageSenderBotVerification {
    '@type': 'removeMessageSenderBotVerification';
    /**
Identifier of the owned bot, which verified the user or the chat.
*/
    bot_user_id: number;
    /**
Identifier of the user or the supergroup or channel chat, which verification is removed.
*/
    verified_id: MessageSender;
}
/**
Returns all active sessions of the current user.
Request type for {@link Tdjson#getActiveSessions}.
*/
export interface GetActiveSessions {
    '@type': 'getActiveSessions';
}
/**
Terminates a session of the current user.
Request type for {@link Tdjson#terminateSession}.
*/
export interface TerminateSession {
    '@type': 'terminateSession';
    /**
Session identifier.
*/
    session_id: string;
}
/**
Terminates all other sessions of the current user.
Request type for {@link Tdjson#terminateAllOtherSessions}.
*/
export interface TerminateAllOtherSessions {
    '@type': 'terminateAllOtherSessions';
}
/**
Confirms an unconfirmed session of the current user from another device.
Request type for {@link Tdjson#confirmSession}.
*/
export interface ConfirmSession {
    '@type': 'confirmSession';
    /**
Session identifier.
*/
    session_id: string;
}
/**
Toggles whether a session can accept incoming calls.
Request type for {@link Tdjson#toggleSessionCanAcceptCalls}.
*/
export interface ToggleSessionCanAcceptCalls {
    '@type': 'toggleSessionCanAcceptCalls';
    /**
Session identifier.
*/
    session_id: string;
    /**
Pass true to allow accepting incoming calls by the session; pass false otherwise.
*/
    can_accept_calls?: boolean;
}
/**
Toggles whether a session can accept incoming secret chats.
Request type for {@link Tdjson#toggleSessionCanAcceptSecretChats}.
*/
export interface ToggleSessionCanAcceptSecretChats {
    '@type': 'toggleSessionCanAcceptSecretChats';
    /**
Session identifier.
*/
    session_id: string;
    /**
Pass true to allow accepting secret chats by the session; pass false otherwise.
*/
    can_accept_secret_chats?: boolean;
}
/**
Changes the period of inactivity after which sessions will automatically be terminated.
Request type for {@link Tdjson#setInactiveSessionTtl}.
*/
export interface SetInactiveSessionTtl {
    '@type': 'setInactiveSessionTtl';
    /**
New number of days of inactivity before sessions will be automatically terminated; 1-366 days.
*/
    inactive_session_ttl_days: number;
}
/**
Returns all website where the current user used Telegram to log in.
Request type for {@link Tdjson#getConnectedWebsites}.
*/
export interface GetConnectedWebsites {
    '@type': 'getConnectedWebsites';
}
/**
Disconnects website from the current user's Telegram account.
Request type for {@link Tdjson#disconnectWebsite}.
*/
export interface DisconnectWebsite {
    '@type': 'disconnectWebsite';
    /**
Website identifier.
*/
    website_id: string;
}
/**
Disconnects all websites from the current user's Telegram account.
Request type for {@link Tdjson#disconnectAllWebsites}.
*/
export interface DisconnectAllWebsites {
    '@type': 'disconnectAllWebsites';
}
/**
Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel.
Request type for {@link Tdjson#setSupergroupUsername}.
*/
export interface SetSupergroupUsername {
    '@type': 'setSupergroupUsername';
    /**
Identifier of the supergroup or channel.
*/
    supergroup_id: number;
    /**
New value of the username. Use an empty string to remove the username. The username can't be completely removed if there
is another active or disabled username.
*/
    username: string;
}
/**
Changes active state for a username of a supergroup or channel, requires owner privileges in the supergroup or channel.
The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum
number of active usernames has been reached.
Request type for {@link Tdjson#toggleSupergroupUsernameIsActive}.
*/
export interface ToggleSupergroupUsernameIsActive {
    '@type': 'toggleSupergroupUsernameIsActive';
    /**
Identifier of the supergroup or channel.
*/
    supergroup_id: number;
    /**
The username to change.
*/
    username: string;
    /**
Pass true to activate the username; pass false to disable it.
*/
    is_active?: boolean;
}
/**
Disables all active non-editable usernames of a supergroup or channel, requires owner privileges in the supergroup or
channel.
Request type for {@link Tdjson#disableAllSupergroupUsernames}.
*/
export interface DisableAllSupergroupUsernames {
    '@type': 'disableAllSupergroupUsernames';
    /**
Identifier of the supergroup or channel.
*/
    supergroup_id: number;
}
/**
Changes order of active usernames of a supergroup or channel, requires owner privileges in the supergroup or channel.
Request type for {@link Tdjson#reorderSupergroupActiveUsernames}.
*/
export interface ReorderSupergroupActiveUsernames {
    '@type': 'reorderSupergroupActiveUsernames';
    /**
Identifier of the supergroup or channel.
*/
    supergroup_id: number;
    /**
The new order of active usernames. All currently active usernames must be specified.
*/
    usernames: string[];
}
/**
Changes the sticker set of a supergroup; requires can_change_info administrator right.
Request type for {@link Tdjson#setSupergroupStickerSet}.
*/
export interface SetSupergroupStickerSet {
    '@type': 'setSupergroupStickerSet';
    /**
Identifier of the supergroup.
*/
    supergroup_id: number;
    /**
New value of the supergroup sticker set identifier. Use 0 to remove the supergroup sticker set.
*/
    sticker_set_id: string;
}
/**
Changes the custom emoji sticker set of a supergroup; requires can_change_info administrator right. The chat must have
at least chatBoostFeatures.min_custom_emoji_sticker_set_boost_level boost level to pass the corresponding color.
Request type for {@link Tdjson#setSupergroupCustomEmojiStickerSet}.
*/
export interface SetSupergroupCustomEmojiStickerSet {
    '@type': 'setSupergroupCustomEmojiStickerSet';
    /**
Identifier of the supergroup.
*/
    supergroup_id: number;
    /**
New value of the custom emoji sticker set identifier for the supergroup. Use 0 to remove the custom emoji sticker set in
the supergroup.
*/
    custom_emoji_sticker_set_id: string;
}
/**
Changes the number of times the supergroup must be boosted by a user to ignore slow mode and chat permission
restrictions; requires can_restrict_members administrator right.
Request type for {@link Tdjson#setSupergroupUnrestrictBoostCount}.
*/
export interface SetSupergroupUnrestrictBoostCount {
    '@type': 'setSupergroupUnrestrictBoostCount';
    /**
Identifier of the supergroup.
*/
    supergroup_id: number;
    /**
New value of the unrestrict_boost_count supergroup setting; 0-8. Use 0 to remove the setting.
*/
    unrestrict_boost_count: number;
}
/**
Toggles whether sender signature or link to the account is added to sent messages in a channel; requires can_change_info
member right.
Request type for {@link Tdjson#toggleSupergroupSignMessages}.
*/
export interface ToggleSupergroupSignMessages {
    '@type': 'toggleSupergroupSignMessages';
    /**
Identifier of the channel.
*/
    supergroup_id: number;
    /**
New value of sign_messages.
*/
    sign_messages?: boolean;
    /**
New value of show_message_sender.
*/
    show_message_sender?: boolean;
}
/**
Toggles whether joining is mandatory to send messages to a discussion supergroup; requires can_restrict_members
administrator right.
Request type for {@link Tdjson#toggleSupergroupJoinToSendMessages}.
*/
export interface ToggleSupergroupJoinToSendMessages {
    '@type': 'toggleSupergroupJoinToSendMessages';
    /**
Identifier of the supergroup that isn't a broadcast group.
*/
    supergroup_id: number;
    /**
New value of join_to_send_messages.
*/
    join_to_send_messages?: boolean;
}
/**
Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires
can_restrict_members administrator right.
Request type for {@link Tdjson#toggleSupergroupJoinByRequest}.
*/
export interface ToggleSupergroupJoinByRequest {
    '@type': 'toggleSupergroupJoinByRequest';
    /**
Identifier of the supergroup that isn't a broadcast group.
*/
    supergroup_id: number;
    /**
New value of join_by_request.
*/
    join_by_request?: boolean;
}
/**
Toggles whether the message history of a supergroup is available to new members; requires can_change_info member right.
Request type for {@link Tdjson#toggleSupergroupIsAllHistoryAvailable}.
*/
export interface ToggleSupergroupIsAllHistoryAvailable {
    '@type': 'toggleSupergroupIsAllHistoryAvailable';
    /**
The identifier of the supergroup.
*/
    supergroup_id: number;
    /**
The new value of is_all_history_available.
*/
    is_all_history_available?: boolean;
}
/**
Toggles whether sponsored messages are shown in the channel chat; requires owner privileges in the channel. The chat
must have at least chatBoostFeatures.min_sponsored_message_disable_boost_level boost level to disable sponsored
messages.
Request type for {@link Tdjson#toggleSupergroupCanHaveSponsoredMessages}.
*/
export interface ToggleSupergroupCanHaveSponsoredMessages {
    '@type': 'toggleSupergroupCanHaveSponsoredMessages';
    /**
The identifier of the channel.
*/
    supergroup_id: number;
    /**
The new value of can_have_sponsored_messages.
*/
    can_have_sponsored_messages?: boolean;
}
/**
Toggles whether non-administrators can receive only administrators and bots using getSupergroupMembers or
searchChatMembers. Can be called only if supergroupFullInfo.can_hide_members == true.
Request type for {@link Tdjson#toggleSupergroupHasHiddenMembers}.
*/
export interface ToggleSupergroupHasHiddenMembers {
    '@type': 'toggleSupergroupHasHiddenMembers';
    /**
Identifier of the supergroup.
*/
    supergroup_id: number;
    /**
New value of has_hidden_members.
*/
    has_hidden_members?: boolean;
}
/**
Toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if
supergroupFullInfo.can_toggle_aggressive_anti_spam == true.
Request type for {@link Tdjson#toggleSupergroupHasAggressiveAntiSpamEnabled}.
*/
export interface ToggleSupergroupHasAggressiveAntiSpamEnabled {
    '@type': 'toggleSupergroupHasAggressiveAntiSpamEnabled';
    /**
The identifier of the supergroup, which isn't a broadcast group.
*/
    supergroup_id: number;
    /**
The new value of has_aggressive_anti_spam_enabled.
*/
    has_aggressive_anti_spam_enabled?: boolean;
}
/**
Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be
converted to forums.
Request type for {@link Tdjson#toggleSupergroupIsForum}.
*/
export interface ToggleSupergroupIsForum {
    '@type': 'toggleSupergroupIsForum';
    /**
Identifier of the supergroup.
*/
    supergroup_id: number;
    /**
New value of is_forum.
*/
    is_forum?: boolean;
}
/**
Upgrades supergroup to a broadcast group; requires owner privileges in the supergroup.
Request type for {@link Tdjson#toggleSupergroupIsBroadcastGroup}.
*/
export interface ToggleSupergroupIsBroadcastGroup {
    '@type': 'toggleSupergroupIsBroadcastGroup';
    /**
Identifier of the supergroup.
*/
    supergroup_id: number;
}
/**
Reports messages in a supergroup as spam; requires administrator rights in the supergroup.
Request type for {@link Tdjson#reportSupergroupSpam}.
*/
export interface ReportSupergroupSpam {
    '@type': 'reportSupergroupSpam';
    /**
Supergroup identifier.
*/
    supergroup_id: number;
    /**
Identifiers of messages to report. Use messageProperties.can_report_supergroup_spam to check whether the message can be
reported.
*/
    message_ids: number[];
}
/**
Reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup.
Can be called only for messages from chatEventMessageDeleted with can_report_anti_spam_false_positive == true.
Request type for {@link Tdjson#reportSupergroupAntiSpamFalsePositive}.
*/
export interface ReportSupergroupAntiSpamFalsePositive {
    '@type': 'reportSupergroupAntiSpamFalsePositive';
    /**
Supergroup identifier.
*/
    supergroup_id: number;
    /**
Identifier of the erroneously deleted message from chatEventMessageDeleted.
*/
    message_id: number;
}
/**
Returns information about members or banned users in a supergroup or channel. Can be used only if
supergroupFullInfo.can_get_members == true; additionally, administrator privileges may be required for some filters.
Request type for {@link Tdjson#getSupergroupMembers}.
*/
export interface GetSupergroupMembers {
    '@type': 'getSupergroupMembers';
    /**
Identifier of the supergroup or channel.
*/
    supergroup_id: number;
    /**
The type of users to return; pass null to use supergroupMembersFilterRecent.
*/
    filter: SupergroupMembersFilter;
    /**
Number of users to skip.
*/
    offset: number;
    /**
The maximum number of users to be returned; up to 200.
*/
    limit: number;
}
/**
Closes a secret chat, effectively transferring its state to secretChatStateClosed.
Request type for {@link Tdjson#closeSecretChat}.
*/
export interface CloseSecretChat {
    '@type': 'closeSecretChat';
    /**
Secret chat identifier.
*/
    secret_chat_id: number;
}
/**
Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only for
supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order
of decreasing event_id).
Request type for {@link Tdjson#getChatEventLog}.
*/
export interface GetChatEventLog {
    '@type': 'getChatEventLog';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Search query by which to filter events.
*/
    query: string;
    /**
Identifier of an event from which to return results. Use 0 to get results from the latest events.
*/
    from_event_id: string;
    /**
The maximum number of events to return; up to 100.
*/
    limit: number;
    /**
The types of events to return; pass null to get chat events of all types.
*/
    filters: ChatEventLogFilters;
    /**
User identifiers by which to filter events. By default, events relating to all users will be returned.
*/
    user_ids: number[];
}
/**
Returns the list of supported time zones.
Request type for {@link Tdjson#getTimeZones}.
*/
export interface GetTimeZones {
    '@type': 'getTimeZones';
}
/**
Returns an invoice payment form. This method must be called when the user presses inline button of the type
inlineKeyboardButtonTypeBuy, or wants to buy access to media in a messagePaidMedia message.
Request type for {@link Tdjson#getPaymentForm}.
*/
export interface GetPaymentForm {
    '@type': 'getPaymentForm';
    /**
The invoice.
*/
    input_invoice: InputInvoice;
    /**
Preferred payment form theme; pass null to use the default theme.
*/
    theme: ThemeParameters;
}
/**
Validates the order information provided by a user and returns the available shipping options for a flexible invoice.
Request type for {@link Tdjson#validateOrderInfo}.
*/
export interface ValidateOrderInfo {
    '@type': 'validateOrderInfo';
    /**
The invoice.
*/
    input_invoice: InputInvoice;
    /**
The order information, provided by the user; pass null if empty.
*/
    order_info: OrderInfo;
    /**
Pass true to save the order information.
*/
    allow_save?: boolean;
}
/**
Sends a filled-out payment form to the bot for final verification.
Request type for {@link Tdjson#sendPaymentForm}.
*/
export interface SendPaymentForm {
    '@type': 'sendPaymentForm';
    /**
The invoice.
*/
    input_invoice: InputInvoice;
    /**
Payment form identifier returned by getPaymentForm.
*/
    payment_form_id: string;
    /**
Identifier returned by validateOrderInfo, or an empty string.
*/
    order_info_id: string;
    /**
Identifier of a chosen shipping option, if applicable.
*/
    shipping_option_id: string;
    /**
The credentials chosen by user for payment; pass null for a payment in Telegram Stars.
*/
    credentials: InputCredentials;
    /**
Chosen by the user amount of tip in the smallest units of the currency.
*/
    tip_amount: number;
}
/**
Returns information about a successful payment.
Request type for {@link Tdjson#getPaymentReceipt}.
*/
export interface GetPaymentReceipt {
    '@type': 'getPaymentReceipt';
    /**
Chat identifier of the messagePaymentSuccessful message.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
}
/**
Returns saved order information. Returns a 404 error if there is no saved order information.
Request type for {@link Tdjson#getSavedOrderInfo}.
*/
export interface GetSavedOrderInfo {
    '@type': 'getSavedOrderInfo';
}
/**
Deletes saved order information.
Request type for {@link Tdjson#deleteSavedOrderInfo}.
*/
export interface DeleteSavedOrderInfo {
    '@type': 'deleteSavedOrderInfo';
}
/**
Deletes saved credentials for all payment provider bots.
Request type for {@link Tdjson#deleteSavedCredentials}.
*/
export interface DeleteSavedCredentials {
    '@type': 'deleteSavedCredentials';
}
/**
Returns gifts that can be sent to other users and channel chats.
Request type for {@link Tdjson#getAvailableGifts}.
*/
export interface GetAvailableGifts {
    '@type': 'getAvailableGifts';
}
/**
Sends a gift to another user or channel chat. May return an error with a message "STARGIFT_USAGE_LIMITED" if the gift
was sold out.
Request type for {@link Tdjson#sendGift}.
*/
export interface SendGift {
    '@type': 'sendGift';
    /**
Identifier of the gift to send.
*/
    gift_id: string;
    /**
Identifier of the user or the channel chat that will receive the gift.
*/
    owner_id: MessageSender;
    /**
Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline,
Strikethrough, Spoiler, and CustomEmoji entities are allowed. Must be empty if the receiver enabled paid messages.
*/
    text: FormattedText;
    /**
Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them.
*/
    is_private?: boolean;
    /**
Pass true to additionally pay for the gift upgrade and allow the receiver to upgrade it for free.
*/
    pay_for_upgrade?: boolean;
}
/**
Sells a gift for Telegram Stars.
Request type for {@link Tdjson#sellGift}.
*/
export interface SellGift {
    '@type': 'sellGift';
    /**
Identifier of the gift.
*/
    received_gift_id: string;
}
/**
Toggles whether a gift is shown on the current user's or the channel's profile page; requires can_post_messages
administrator right in the channel chat.
Request type for {@link Tdjson#toggleGiftIsSaved}.
*/
export interface ToggleGiftIsSaved {
    '@type': 'toggleGiftIsSaved';
    /**
Identifier of the gift.
*/
    received_gift_id: string;
    /**
Pass true to display the gift on the user's or the channel's profile page; pass false to remove it from the profile
page.
*/
    is_saved?: boolean;
}
/**
Changes the list of pinned gifts on the current user's or the channel's profile page; requires can_post_messages
administrator right in the channel chat.
Request type for {@link Tdjson#setPinnedGifts}.
*/
export interface SetPinnedGifts {
    '@type': 'setPinnedGifts';
    /**
Identifier of the user or the channel chat that received the gifts.
*/
    owner_id: MessageSender;
    /**
New list of pinned gifts. All gifts must be upgraded and saved on the profile page first. There can be up to
getOption("pinned_gift_count_max") pinned gifts.
*/
    received_gift_ids: string[];
}
/**
Toggles whether notifications for new gifts received by a channel chat are sent to the current user; requires
can_post_messages administrator right in the chat.
Request type for {@link Tdjson#toggleChatGiftNotifications}.
*/
export interface ToggleChatGiftNotifications {
    '@type': 'toggleChatGiftNotifications';
    /**
Identifier of the channel chat.
*/
    chat_id: number;
    /**
Pass true to enable notifications about new gifts owned by the channel chat; pass false to disable the notifications.
*/
    are_enabled?: boolean;
}
/**
Returns examples of possible upgraded gifts for a regular gift.
Request type for {@link Tdjson#getGiftUpgradePreview}.
*/
export interface GetGiftUpgradePreview {
    '@type': 'getGiftUpgradePreview';
    /**
Identifier of the gift.
*/
    gift_id: string;
}
/**
Upgrades a regular gift.
Request type for {@link Tdjson#upgradeGift}.
*/
export interface UpgradeGift {
    '@type': 'upgradeGift';
    /**
Identifier of the gift.
*/
    received_gift_id: string;
    /**
Pass true to keep the original gift text, sender and receiver in the upgraded gift.
*/
    keep_original_details?: boolean;
    /**
The amount of Telegram Stars required to pay for the upgrade. It the gift has prepaid_upgrade_star_count > 0, then pass
0, otherwise, pass gift.upgrade_star_count.
*/
    star_count: number;
}
/**
Sends an upgraded gift to another user or a channel chat.
Request type for {@link Tdjson#transferGift}.
*/
export interface TransferGift {
    '@type': 'transferGift';
    /**
Identifier of the gift.
*/
    received_gift_id: string;
    /**
Identifier of the user or the channel chat that will receive the gift.
*/
    new_owner_id: MessageSender;
    /**
The amount of Telegram Stars required to pay for the transfer.
*/
    star_count: number;
}
/**
Returns gifts received by the given user or chat.
Request type for {@link Tdjson#getReceivedGifts}.
*/
export interface GetReceivedGifts {
    '@type': 'getReceivedGifts';
    /**
Identifier of the gift receiver.
*/
    owner_id: MessageSender;
    /**
Pass true to exclude gifts that aren't saved to the chat's profile page. Always true for gifts received by other users
and channel chats without can_post_messages administrator right.
*/
    exclude_unsaved?: boolean;
    /**
Pass true to exclude gifts that are saved to the chat's profile page. Always false for gifts received by other users and
channel chats without can_post_messages administrator right.
*/
    exclude_saved?: boolean;
    /**
Pass true to exclude gifts that can be purchased unlimited number of times.
*/
    exclude_unlimited?: boolean;
    /**
Pass true to exclude gifts that can be purchased limited number of times.
*/
    exclude_limited?: boolean;
    /**
Pass true to exclude upgraded gifts.
*/
    exclude_upgraded?: boolean;
    /**
Pass true to sort results by gift price instead of send date.
*/
    sort_by_price?: boolean;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of gifts to be returned; must be positive and can't be greater than 100. For optimal performance, the
number of returned objects is chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Returns information about a received gift.
Request type for {@link Tdjson#getReceivedGift}.
*/
export interface GetReceivedGift {
    '@type': 'getReceivedGift';
    /**
Identifier of the gift.
*/
    received_gift_id: string;
}
/**
Returns information about an upgraded gift by its name.
Request type for {@link Tdjson#getUpgradedGift}.
*/
export interface GetUpgradedGift {
    '@type': 'getUpgradedGift';
    /**
Unique name of the upgraded gift.
*/
    name: string;
}
/**
Returns a URL for upgraded gift withdrawal in the TON blockchain as an NFT; requires owner privileges for gifts owned by
a chat.
Request type for {@link Tdjson#getUpgradedGiftWithdrawalUrl}.
*/
export interface GetUpgradedGiftWithdrawalUrl {
    '@type': 'getUpgradedGiftWithdrawalUrl';
    /**
Identifier of the gift.
*/
    received_gift_id: string;
    /**
The 2-step verification password of the current user.
*/
    password: string;
}
/**
Creates a link for the given invoice; for bots only.
Request type for {@link Tdjson#createInvoiceLink}.
*/
export interface CreateInvoiceLink {
    '@type': 'createInvoiceLink';
    /**
Unique identifier of business connection on behalf of which to send the request.
*/
    business_connection_id: string;
    /**
Information about the invoice of the type inputMessageInvoice.
*/
    invoice: InputMessageContent;
}
/**
Refunds a previously done payment in Telegram Stars; for bots only.
Request type for {@link Tdjson#refundStarPayment}.
*/
export interface RefundStarPayment {
    '@type': 'refundStarPayment';
    /**
Identifier of the user that did the payment.
*/
    user_id: number;
    /**
Telegram payment identifier.
*/
    telegram_payment_charge_id: string;
}
/**
Returns a user that can be contacted to get support.
Request type for {@link Tdjson#getSupportUser}.
*/
export interface GetSupportUser {
    '@type': 'getSupportUser';
}
/**
Constructs a persistent HTTP URL for a background.
Request type for {@link Tdjson#getBackgroundUrl}.
*/
export interface GetBackgroundUrl {
    '@type': 'getBackgroundUrl';
    /**
Background name.
*/
    name: string;
    /**
Background type; backgroundTypeChatTheme isn't supported.
*/
    type: BackgroundType;
}
/**
Searches for a background by its name.
Request type for {@link Tdjson#searchBackground}.
*/
export interface SearchBackground {
    '@type': 'searchBackground';
    /**
The name of the background.
*/
    name: string;
}
/**
Sets default background for chats; adds the background to the list of installed backgrounds.
Request type for {@link Tdjson#setDefaultBackground}.
*/
export interface SetDefaultBackground {
    '@type': 'setDefaultBackground';
    /**
The input background to use; pass null to create a new filled background.
*/
    background: InputBackground;
    /**
Background type; pass null to use the default type of the remote background; backgroundTypeChatTheme isn't supported.
*/
    type: BackgroundType;
    /**
Pass true if the background is set for a dark theme.
*/
    for_dark_theme?: boolean;
}
/**
Deletes default background for chats.
Request type for {@link Tdjson#deleteDefaultBackground}.
*/
export interface DeleteDefaultBackground {
    '@type': 'deleteDefaultBackground';
    /**
Pass true if the background is deleted for a dark theme.
*/
    for_dark_theme?: boolean;
}
/**
Returns backgrounds installed by the user.
Request type for {@link Tdjson#getInstalledBackgrounds}.
*/
export interface GetInstalledBackgrounds {
    '@type': 'getInstalledBackgrounds';
    /**
Pass true to order returned backgrounds for a dark theme.
*/
    for_dark_theme?: boolean;
}
/**
Removes background from the list of installed backgrounds.
Request type for {@link Tdjson#removeInstalledBackground}.
*/
export interface RemoveInstalledBackground {
    '@type': 'removeInstalledBackground';
    /**
The background identifier.
*/
    background_id: string;
}
/**
Resets list of installed backgrounds to its default value.
Request type for {@link Tdjson#resetInstalledBackgrounds}.
*/
export interface ResetInstalledBackgrounds {
    '@type': 'resetInstalledBackgrounds';
}
/**
Returns information about the current localization target. This is an offline request if only_local is true. Can be
called before authorization.
Request type for {@link Tdjson#getLocalizationTargetInfo}.
*/
export interface GetLocalizationTargetInfo {
    '@type': 'getLocalizationTargetInfo';
    /**
Pass true to get only locally available information without sending network requests.
*/
    only_local?: boolean;
}
/**
Returns information about a language pack. Returned language pack identifier may be different from a provided one. Can
be called before authorization.
Request type for {@link Tdjson#getLanguagePackInfo}.
*/
export interface GetLanguagePackInfo {
    '@type': 'getLanguagePackInfo';
    /**
Language pack identifier.
*/
    language_pack_id: string;
}
/**
Returns strings from a language pack in the current localization target by their keys. Can be called before
authorization.
Request type for {@link Tdjson#getLanguagePackStrings}.
*/
export interface GetLanguagePackStrings {
    '@type': 'getLanguagePackStrings';
    /**
Language pack identifier of the strings to be returned.
*/
    language_pack_id: string;
    /**
Language pack keys of the strings to be returned; leave empty to request all available strings.
*/
    keys: string[];
}
/**
Fetches the latest versions of all strings from a language pack in the current localization target from the server. This
method doesn't need to be called explicitly for the current used/base language packs. Can be called before
authorization.
Request type for {@link Tdjson#synchronizeLanguagePack}.
*/
export interface SynchronizeLanguagePack {
    '@type': 'synchronizeLanguagePack';
    /**
Language pack identifier.
*/
    language_pack_id: string;
}
/**
Adds a custom server language pack to the list of installed language packs in current localization target. Can be called
before authorization.
Request type for {@link Tdjson#addCustomServerLanguagePack}.
*/
export interface AddCustomServerLanguagePack {
    '@type': 'addCustomServerLanguagePack';
    /**
Identifier of a language pack to be added.
*/
    language_pack_id: string;
}
/**
Adds or changes a custom local language pack to the current localization target.
Request type for {@link Tdjson#setCustomLanguagePack}.
*/
export interface SetCustomLanguagePack {
    '@type': 'setCustomLanguagePack';
    /**
Information about the language pack. Language pack identifier must start with 'X', consist only of English letters,
digits and hyphens, and must not exceed 64 characters. Can be called before authorization.
*/
    info: LanguagePackInfo;
    /**
Strings of the new language pack.
*/
    strings: LanguagePackString[];
}
/**
Edits information about a custom local language pack in the current localization target. Can be called before
authorization.
Request type for {@link Tdjson#editCustomLanguagePackInfo}.
*/
export interface EditCustomLanguagePackInfo {
    '@type': 'editCustomLanguagePackInfo';
    /**
New information about the custom local language pack.
*/
    info: LanguagePackInfo;
}
/**
Adds, edits or deletes a string in a custom local language pack. Can be called before authorization.
Request type for {@link Tdjson#setCustomLanguagePackString}.
*/
export interface SetCustomLanguagePackString {
    '@type': 'setCustomLanguagePackString';
    /**
Identifier of a previously added custom local language pack in the current localization target.
*/
    language_pack_id: string;
    /**
New language pack string.
*/
    new_string: LanguagePackString;
}
/**
Deletes all information about a language pack in the current localization target. The language pack which is currently
in use (including base language pack) or is being synchronized can't be deleted. Can be called before authorization.
Request type for {@link Tdjson#deleteLanguagePack}.
*/
export interface DeleteLanguagePack {
    '@type': 'deleteLanguagePack';
    /**
Identifier of the language pack to delete.
*/
    language_pack_id: string;
}
/**
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push
notification subscription.
Request type for {@link Tdjson#registerDevice}.
*/
export interface RegisterDevice {
    '@type': 'registerDevice';
    /**
Device token.
*/
    device_token: DeviceToken;
    /**
List of user identifiers of other users currently using the application.
*/
    other_user_ids: number[];
}
/**
Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the
server is required to fetch new data. Can be called before authorization.
Request type for {@link Tdjson#processPushNotification}.
*/
export interface ProcessPushNotification {
    '@type': 'processPushNotification';
    /**
JSON-encoded push notification payload with all fields sent by the server, and "google.sent_time" and
"google.notification.sound" fields added.
*/
    payload: string;
}
/**
Returns a globally unique push notification subscription identifier for identification of an account, which has received
a push notification. Can be called synchronously.
Request type for {@link Tdjson#getPushReceiverId}.
*/
export interface GetPushReceiverId {
    '@type': 'getPushReceiverId';
    /**
JSON-encoded push notification payload.
*/
    payload: string;
}
/**
Returns t.me URLs recently visited by a newly registered user.
Request type for {@link Tdjson#getRecentlyVisitedTMeUrls}.
*/
export interface GetRecentlyVisitedTMeUrls {
    '@type': 'getRecentlyVisitedTMeUrls';
    /**
Google Play referrer to identify the user.
*/
    referrer: string;
}
/**
Changes user privacy settings.
Request type for {@link Tdjson#setUserPrivacySettingRules}.
*/
export interface SetUserPrivacySettingRules {
    '@type': 'setUserPrivacySettingRules';
    /**
The privacy setting.
*/
    setting: UserPrivacySetting;
    /**
The new privacy rules.
*/
    rules: UserPrivacySettingRules;
}
/**
Returns the current privacy settings.
Request type for {@link Tdjson#getUserPrivacySettingRules}.
*/
export interface GetUserPrivacySettingRules {
    '@type': 'getUserPrivacySettingRules';
    /**
The privacy setting.
*/
    setting: UserPrivacySetting;
}
/**
Changes privacy settings for message read date.
Request type for {@link Tdjson#setReadDatePrivacySettings}.
*/
export interface SetReadDatePrivacySettings {
    '@type': 'setReadDatePrivacySettings';
    /**
New settings.
*/
    settings: ReadDatePrivacySettings;
}
/**
Returns privacy settings for message read date.
Request type for {@link Tdjson#getReadDatePrivacySettings}.
*/
export interface GetReadDatePrivacySettings {
    '@type': 'getReadDatePrivacySettings';
}
/**
Changes privacy settings for new chat creation; can be used only if getOption("can_set_new_chat_privacy_settings").
Request type for {@link Tdjson#setNewChatPrivacySettings}.
*/
export interface SetNewChatPrivacySettings {
    '@type': 'setNewChatPrivacySettings';
    /**
New settings.
*/
    settings: NewChatPrivacySettings;
}
/**
Returns privacy settings for new chat creation.
Request type for {@link Tdjson#getNewChatPrivacySettings}.
*/
export interface GetNewChatPrivacySettings {
    '@type': 'getNewChatPrivacySettings';
}
/**
Returns the total number of Telegram Stars received by the current user for paid messages from the given user.
Request type for {@link Tdjson#getPaidMessageRevenue}.
*/
export interface GetPaidMessageRevenue {
    '@type': 'getPaidMessageRevenue';
    /**
Identifier of the user.
*/
    user_id: number;
}
/**
Allows the specified user to send unpaid private messages to the current user by adding a rule to
userPrivacySettingAllowUnpaidMessages.
Request type for {@link Tdjson#allowUnpaidMessagesFromUser}.
*/
export interface AllowUnpaidMessagesFromUser {
    '@type': 'allowUnpaidMessagesFromUser';
    /**
Identifier of the user.
*/
    user_id: number;
    /**
Pass true to refund the user previously paid messages.
*/
    refund_payments?: boolean;
}
/**
Changes the amount of Telegram Stars that must be paid to send a message to a supergroup chat; requires
can_restrict_members administrator right and supergroupFullInfo.can_enable_paid_messages.
Request type for {@link Tdjson#setChatPaidMessageStarCount}.
*/
export interface SetChatPaidMessageStarCount {
    '@type': 'setChatPaidMessageStarCount';
    /**
Identifier of the supergroup chat.
*/
    chat_id: number;
    /**
The new number of Telegram Stars that must be paid for each message that is sent to the supergroup chat unless the
sender is an administrator of the chat; 0-getOption("paid_message_star_count_max"). The supergroup will receive
getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for message sending.
*/
    paid_message_star_count: number;
}
/**
Check whether the current user can message another user or try to create a chat with them.
Request type for {@link Tdjson#canSendMessageToUser}.
*/
export interface CanSendMessageToUser {
    '@type': 'canSendMessageToUser';
    /**
Identifier of the other user.
*/
    user_id: number;
    /**
Pass true to get only locally available information without sending network requests.
*/
    only_local?: boolean;
}
/**
Returns the value of an option by its name. (Check the list of available options on
https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options
"version" and "commit_hash".
Request type for {@link Tdjson#getOption}.
*/
export interface GetOption {
    '@type': 'getOption';
    /**
The name of the option.
*/
    name: string;
}
/**
Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only
writable options can be set. Can be called before authorization.
Request type for {@link Tdjson#setOption}.
*/
export interface SetOption {
    '@type': 'setOption';
    /**
The name of the option.
*/
    name: string;
    /**
The new value of the option; pass null to reset option value to a default value.
*/
    value: OptionValue;
}
/**
Changes the period of inactivity after which the account of the current user will automatically be deleted.
Request type for {@link Tdjson#setAccountTtl}.
*/
export interface SetAccountTtl {
    '@type': 'setAccountTtl';
    /**
New account TTL.
*/
    ttl: AccountTtl;
}
/**
Returns the period of inactivity after which the account of the current user will automatically be deleted.
Request type for {@link Tdjson#getAccountTtl}.
*/
export interface GetAccountTtl {
    '@type': 'getAccountTtl';
}
/**
Deletes the account of the current user, deleting all information associated with the user from the server. The phone
number of the account can be used to create a new account. Can be called before authorization when the current
authorization state is authorizationStateWaitPassword.
Request type for {@link Tdjson#deleteAccount}.
*/
export interface DeleteAccount {
    '@type': 'deleteAccount';
    /**
The reason why the account was deleted; optional.
*/
    reason: string;
    /**
The 2-step verification password of the current user. If the current user isn't authorized, then an empty string can be
passed and account deletion can be canceled within one week.
*/
    password: string;
}
/**
Changes the default message auto-delete time for new chats.
Request type for {@link Tdjson#setDefaultMessageAutoDeleteTime}.
*/
export interface SetDefaultMessageAutoDeleteTime {
    '@type': 'setDefaultMessageAutoDeleteTime';
    /**
New default message auto-delete time; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages
aren't deleted automatically.
*/
    message_auto_delete_time: MessageAutoDeleteTime;
}
/**
Returns default message auto-delete time setting for new chats.
Request type for {@link Tdjson#getDefaultMessageAutoDeleteTime}.
*/
export interface GetDefaultMessageAutoDeleteTime {
    '@type': 'getDefaultMessageAutoDeleteTime';
}
/**
Removes a chat action bar without any other action.
Request type for {@link Tdjson#removeChatActionBar}.
*/
export interface RemoveChatActionBar {
    '@type': 'removeChatActionBar';
    /**
Chat identifier.
*/
    chat_id: number;
}
/**
Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if
chat.can_be_reported.
Request type for {@link Tdjson#reportChat}.
*/
export interface ReportChat {
    '@type': 'reportChat';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Option identifier chosen by the user; leave empty for the initial request.
*/
    option_id: string;
    /**
Identifiers of reported messages. Use messageProperties.can_report_chat to check whether the message can be reported.
*/
    message_ids: number[];
    /**
Additional report details if asked by the server; 0-1024 characters; leave empty for the initial request.
*/
    text: string;
}
/**
Reports a chat photo to the Telegram moderators. A chat photo can be reported only if chat.can_be_reported.
Request type for {@link Tdjson#reportChatPhoto}.
*/
export interface ReportChatPhoto {
    '@type': 'reportChatPhoto';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Identifier of the photo to report. Only full photos from chatPhoto can be reported.
*/
    file_id: number;
    /**
The reason for reporting the chat photo.
*/
    reason: ReportReason;
    /**
Additional report details; 0-1024 characters.
*/
    text: string;
}
/**
Reports reactions set on a message to the Telegram moderators. Reactions on a message can be reported only if
messageProperties.can_report_reactions.
Request type for {@link Tdjson#reportMessageReactions}.
*/
export interface ReportMessageReactions {
    '@type': 'reportMessageReactions';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
Identifier of the sender, which added the reaction.
*/
    sender_id: MessageSender;
}
/**
Returns detailed revenue statistics about a chat. Currently, this method can be used only for channels if
supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics ==
true.
Request type for {@link Tdjson#getChatRevenueStatistics}.
*/
export interface GetChatRevenueStatistics {
    '@type': 'getChatRevenueStatistics';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Pass true if a dark theme is used by the application.
*/
    is_dark?: boolean;
}
/**
Returns a URL for chat revenue withdrawal; requires owner privileges in the channel chat or the bot. Currently, this
method can be used only if getOption("can_withdraw_chat_revenue") for channels with
supergroupFullInfo.can_get_revenue_statistics == true or bots with userFullInfo.bot_info.can_get_revenue_statistics ==
true.
Request type for {@link Tdjson#getChatRevenueWithdrawalUrl}.
*/
export interface GetChatRevenueWithdrawalUrl {
    '@type': 'getChatRevenueWithdrawalUrl';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The 2-step verification password of the current user.
*/
    password: string;
}
/**
Returns the list of revenue transactions for a chat. Currently, this method can be used only for channels if
supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics ==
true.
Request type for {@link Tdjson#getChatRevenueTransactions}.
*/
export interface GetChatRevenueTransactions {
    '@type': 'getChatRevenueTransactions';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Number of transactions to skip.
*/
    offset: number;
    /**
The maximum number of transactions to be returned; up to 200.
*/
    limit: number;
}
/**
Returns detailed Telegram Star revenue statistics.
Request type for {@link Tdjson#getStarRevenueStatistics}.
*/
export interface GetStarRevenueStatistics {
    '@type': 'getStarRevenueStatistics';
    /**
Identifier of the owner of the Telegram Stars; can be identifier of the current user, an owned bot, or a supergroup or a
channel chat with supergroupFullInfo.can_get_star_revenue_statistics == true.
*/
    owner_id: MessageSender;
    /**
Pass true if a dark theme is used by the application.
*/
    is_dark?: boolean;
}
/**
Returns a URL for Telegram Star withdrawal.
Request type for {@link Tdjson#getStarWithdrawalUrl}.
*/
export interface GetStarWithdrawalUrl {
    '@type': 'getStarWithdrawalUrl';
    /**
Identifier of the owner of the Telegram Stars; can be identifier of the current user, an owned bot, or an owned
supergroup or channel chat.
*/
    owner_id: MessageSender;
    /**
The number of Telegram Stars to withdraw. Must be at least getOption("star_withdrawal_count_min").
*/
    star_count: number;
    /**
The 2-step verification password of the current user.
*/
    password: string;
}
/**
Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for the chat paid in the
owned Telegram Stars.
Request type for {@link Tdjson#getStarAdAccountUrl}.
*/
export interface GetStarAdAccountUrl {
    '@type': 'getStarAdAccountUrl';
    /**
Identifier of the owner of the Telegram Stars; can be identifier of an owned bot, or identifier of an owned channel
chat.
*/
    owner_id: MessageSender;
}
/**
Returns detailed statistics about a chat. Currently, this method can be used only for supergroups and channels. Can be
used only if supergroupFullInfo.can_get_statistics == true.
Request type for {@link Tdjson#getChatStatistics}.
*/
export interface GetChatStatistics {
    '@type': 'getChatStatistics';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Pass true if a dark theme is used by the application.
*/
    is_dark?: boolean;
}
/**
Returns detailed statistics about a message. Can be used only if messageProperties.can_get_statistics == true.
Request type for {@link Tdjson#getMessageStatistics}.
*/
export interface GetMessageStatistics {
    '@type': 'getMessageStatistics';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
Pass true if a dark theme is used by the application.
*/
    is_dark?: boolean;
}
/**
Returns forwarded copies of a channel message to different public channels and public reposts as a story. Can be used
only if messageProperties.can_get_statistics == true. For optimal performance, the number of returned messages and
stories is chosen by TDLib.
Request type for {@link Tdjson#getMessagePublicForwards}.
*/
export interface GetMessagePublicForwards {
    '@type': 'getMessagePublicForwards';
    /**
Chat identifier of the message.
*/
    chat_id: number;
    /**
Message identifier.
*/
    message_id: number;
    /**
Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of
results.
*/
    offset: string;
    /**
The maximum number of messages and stories to be returned; must be positive and can't be greater than 100. For optimal
performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Returns detailed statistics about a story. Can be used only if story.can_get_statistics == true.
Request type for {@link Tdjson#getStoryStatistics}.
*/
export interface GetStoryStatistics {
    '@type': 'getStoryStatistics';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
Story identifier.
*/
    story_id: number;
    /**
Pass true if a dark theme is used by the application.
*/
    is_dark?: boolean;
}
/**
Loads an asynchronous or a zoomed in statistical graph.
Request type for {@link Tdjson#getStatisticalGraph}.
*/
export interface GetStatisticalGraph {
    '@type': 'getStatisticalGraph';
    /**
Chat identifier.
*/
    chat_id: number;
    /**
The token for graph loading.
*/
    token: string;
    /**
X-value for zoomed in graph or 0 otherwise.
*/
    x: number;
}
/**
Returns storage usage statistics. Can be called before authorization.
Request type for {@link Tdjson#getStorageStatistics}.
*/
export interface GetStorageStatistics {
    '@type': 'getStorageStatistics';
    /**
The maximum number of chats with the largest storage usage for which separate statistics need to be returned. All other
chats will be grouped in entries with chat_id == 0. If the chat info database is not used, the chat_limit is ignored and
is always set to 0.
*/
    chat_limit: number;
}
/**
Quickly returns approximate storage usage statistics. Can be called before authorization.
Request type for {@link Tdjson#getStorageStatisticsFast}.
*/
export interface GetStorageStatisticsFast {
    '@type': 'getStorageStatisticsFast';
}
/**
Returns database statistics.
Request type for {@link Tdjson#getDatabaseStatistics}.
*/
export interface GetDatabaseStatistics {
    '@type': 'getDatabaseStatistics';
}
/**
Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be
deleted.
Request type for {@link Tdjson#optimizeStorage}.
*/
export interface OptimizeStorage {
    '@type': 'optimizeStorage';
    /**
Limit on the total size of files after deletion, in bytes. Pass -1 to use the default limit.
*/
    size: number;
    /**
Limit on the time that has passed since the last time a file was accessed (or creation time for some filesystems). Pass
-1 to use the default limit.
*/
    ttl: number;
    /**
Limit on the total number of files after deletion. Pass -1 to use the default limit.
*/
    count: number;
    /**
The amount of time after the creation of a file during which it can't be deleted, in seconds. Pass -1 to use the default
value.
*/
    immunity_delay: number;
    /**
If non-empty, only files with the given types are considered. By default, all types except thumbnails, profile photos,
stickers and wallpapers are deleted.
*/
    file_types: FileType[];
    /**
If non-empty, only files from the given chats are considered. Use 0 as chat identifier to delete files not belonging to
any chat (e.g., profile photos).
*/
    chat_ids: number[];
    /**
If non-empty, files from the given chats are excluded. Use 0 as chat identifier to exclude all files not belonging to
any chat (e.g., profile photos).
*/
    exclude_chat_ids: number[];
    /**
Pass true if statistics about the files that were deleted must be returned instead of the whole storage usage
statistics. Affects only returned statistics.
*/
    return_deleted_file_statistics?: boolean;
    /**
Same as in getStorageStatistics. Affects only returned statistics.
*/
    chat_limit: number;
}
/**
Sets the current network type. Can be called before authorization. Calling this method forces all network connections to
reopen, mitigating the delay in switching between different networks, so it must be called whenever the network is
changed, even if the network type remains the same. Network type is used to check whether the library can use the
network at all and also for collecting detailed network data usage statistics.
Request type for {@link Tdjson#setNetworkType}.
*/
export interface SetNetworkType {
    '@type': 'setNetworkType';
    /**
The new network type; pass null to set network type to networkTypeOther.
*/
    type: NetworkType;
}
/**
Returns network data usage statistics. Can be called before authorization.
Request type for {@link Tdjson#getNetworkStatistics}.
*/
export interface GetNetworkStatistics {
    '@type': 'getNetworkStatistics';
    /**
Pass true to get statistics only for the current library launch.
*/
    only_current?: boolean;
}
/**
Adds the specified data to data usage statistics. Can be called before authorization.
Request type for {@link Tdjson#addNetworkStatistics}.
*/
export interface AddNetworkStatistics {
    '@type': 'addNetworkStatistics';
    /**
The network statistics entry with the data to be added to statistics.
*/
    entry: NetworkStatisticsEntry;
}
/**
Resets all network data usage statistics to zero. Can be called before authorization.
Request type for {@link Tdjson#resetNetworkStatistics}.
*/
export interface ResetNetworkStatistics {
    '@type': 'resetNetworkStatistics';
}
/**
Returns auto-download settings presets for the current user.
Request type for {@link Tdjson#getAutoDownloadSettingsPresets}.
*/
export interface GetAutoDownloadSettingsPresets {
    '@type': 'getAutoDownloadSettingsPresets';
}
/**
Sets auto-download settings.
Request type for {@link Tdjson#setAutoDownloadSettings}.
*/
export interface SetAutoDownloadSettings {
    '@type': 'setAutoDownloadSettings';
    /**
New user auto-download settings.
*/
    settings: AutoDownloadSettings;
    /**
Type of the network for which the new settings are relevant.
*/
    type: NetworkType;
}
/**
Returns autosave settings for the current user.
Request type for {@link Tdjson#getAutosaveSettings}.
*/
export interface GetAutosaveSettings {
    '@type': 'getAutosaveSettings';
}
/**
Sets autosave settings for the given scope. The method is guaranteed to work only after at least one call to
getAutosaveSettings.
Request type for {@link Tdjson#setAutosaveSettings}.
*/
export interface SetAutosaveSettings {
    '@type': 'setAutosaveSettings';
    /**
Autosave settings scope.
*/
    scope: AutosaveSettingsScope;
    /**
New autosave settings for the scope; pass null to set autosave settings to default.
*/
    settings: ScopeAutosaveSettings;
}
/**
Clears the list of all autosave settings exceptions. The method is guaranteed to work only after at least one call to
getAutosaveSettings.
Request type for {@link Tdjson#clearAutosaveSettingsExceptions}.
*/
export interface ClearAutosaveSettingsExceptions {
    '@type': 'clearAutosaveSettingsExceptions';
}
/**
Returns information about a bank card.
Request type for {@link Tdjson#getBankCardInfo}.
*/
export interface GetBankCardInfo {
    '@type': 'getBankCardInfo';
    /**
The bank card number.
*/
    bank_card_number: string;
}
/**
Returns one of the available Telegram Passport elements.
Request type for {@link Tdjson#getPassportElement}.
*/
export interface GetPassportElement {
    '@type': 'getPassportElement';
    /**
Telegram Passport element type.
*/
    type: PassportElementType;
    /**
The 2-step verification password of the current user.
*/
    password: string;
}
/**
Returns all available Telegram Passport elements.
Request type for {@link Tdjson#getAllPassportElements}.
*/
export interface GetAllPassportElements {
    '@type': 'getAllPassportElements';
    /**
The 2-step verification password of the current user.
*/
    password: string;
}
/**
Adds an element to the user's Telegram Passport. May return an error with a message "PHONE_VERIFICATION_NEEDED" or
"EMAIL_VERIFICATION_NEEDED" if the chosen phone number or the chosen email address must be verified first.
Request type for {@link Tdjson#setPassportElement}.
*/
export interface SetPassportElement {
    '@type': 'setPassportElement';
    /**
Input Telegram Passport element.
*/
    element: InputPassportElement;
    /**
The 2-step verification password of the current user.
*/
    password: string;
}
/**
Deletes a Telegram Passport element.
Request type for {@link Tdjson#deletePassportElement}.
*/
export interface DeletePassportElement {
    '@type': 'deletePassportElement';
    /**
Element type.
*/
    type: PassportElementType;
}
/**
Informs the user that some of the elements in their Telegram Passport contain errors; for bots only. The user will not
be able to resend the elements, until the errors are fixed.
Request type for {@link Tdjson#setPassportElementErrors}.
*/
export interface SetPassportElementErrors {
    '@type': 'setPassportElementErrors';
    /**
User identifier.
*/
    user_id: number;
    /**
The errors.
*/
    errors: InputPassportElementError[];
}
/**
Returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in
Telegram Passport personal details. Returns a 404 error if unknown.
Request type for {@link Tdjson#getPreferredCountryLanguage}.
*/
export interface GetPreferredCountryLanguage {
    '@type': 'getPreferredCountryLanguage';
    /**
A two-letter ISO 3166-1 alpha-2 country code.
*/
    country_code: string;
}
/**
Sends a code to verify an email address to be added to a user's Telegram Passport.
Request type for {@link Tdjson#sendEmailAddressVerificationCode}.
*/
export interface SendEmailAddressVerificationCode {
    '@type': 'sendEmailAddressVerificationCode';
    /**
Email address.
*/
    email_address: string;
}
/**
Resends the code to verify an email address to be added to a user's Telegram Passport.
Request type for {@link Tdjson#resendEmailAddressVerificationCode}.
*/
export interface ResendEmailAddressVerificationCode {
    '@type': 'resendEmailAddressVerificationCode';
}
/**
Checks the email address verification code for Telegram Passport.
Request type for {@link Tdjson#checkEmailAddressVerificationCode}.
*/
export interface CheckEmailAddressVerificationCode {
    '@type': 'checkEmailAddressVerificationCode';
    /**
Verification code to check.
*/
    code: string;
}
/**
Returns a Telegram Passport authorization form for sharing data with a service.
Request type for {@link Tdjson#getPassportAuthorizationForm}.
*/
export interface GetPassportAuthorizationForm {
    '@type': 'getPassportAuthorizationForm';
    /**
User identifier of the service's bot.
*/
    bot_user_id: number;
    /**
Telegram Passport element types requested by the service.
*/
    scope: string;
    /**
Service's public key.
*/
    public_key: string;
    /**
Unique request identifier provided by the service.
*/
    nonce: string;
}
/**
Returns already available Telegram Passport elements suitable for completing a Telegram Passport authorization form.
Result can be received only once for each authorization form.
Request type for {@link Tdjson#getPassportAuthorizationFormAvailableElements}.
*/
export interface GetPassportAuthorizationFormAvailableElements {
    '@type': 'getPassportAuthorizationFormAvailableElements';
    /**
Authorization form identifier.
*/
    authorization_form_id: number;
    /**
The 2-step verification password of the current user.
*/
    password: string;
}
/**
Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called
after getPassportAuthorizationFormAvailableElements if some previously available elements are going to be reused.
Request type for {@link Tdjson#sendPassportAuthorizationForm}.
*/
export interface SendPassportAuthorizationForm {
    '@type': 'sendPassportAuthorizationForm';
    /**
Authorization form identifier.
*/
    authorization_form_id: number;
    /**
Types of Telegram Passport elements chosen by user to complete the authorization form.
*/
    types: PassportElementType[];
}
/**
Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots
only.
Request type for {@link Tdjson#setBotUpdatesStatus}.
*/
export interface SetBotUpdatesStatus {
    '@type': 'setBotUpdatesStatus';
    /**
The number of pending updates.
*/
    pending_update_count: number;
    /**
The last error message.
*/
    error_message: string;
}
/**
Uploads a file with a sticker; returns the uploaded file.
Request type for {@link Tdjson#uploadStickerFile}.
*/
export interface UploadStickerFile {
    '@type': 'uploadStickerFile';
    /**
Sticker file owner; ignored for regular users.
*/
    user_id: number;
    /**
Sticker format.
*/
    sticker_format: StickerFormat;
    /**
File file to upload; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will
be converted to WEBP server-side. See https://core.telegram.org/animated_stickers#technical-requirements for technical
requirements.
*/
    sticker: InputFile;
}
/**
Returns a suggested name for a new sticker set with a given title.
Request type for {@link Tdjson#getSuggestedStickerSetName}.
*/
export interface GetSuggestedStickerSetName {
    '@type': 'getSuggestedStickerSetName';
    /**
Sticker set title; 1-64 characters.
*/
    title: string;
}
/**
Checks whether a name can be used for a new sticker set.
Request type for {@link Tdjson#checkStickerSetName}.
*/
export interface CheckStickerSetName {
    '@type': 'checkStickerSetName';
    /**
Name to be checked.
*/
    name: string;
}
/**
Creates a new sticker set. Returns the newly created sticker set.
Request type for {@link Tdjson#createNewStickerSet}.
*/
export interface CreateNewStickerSet {
    '@type': 'createNewStickerSet';
    /**
Sticker set owner; ignored for regular users.
*/
    user_id: number;
    /**
Sticker set title; 1-64 characters.
*/
    title: string;
    /**
Sticker set name. Can contain only English letters, digits and underscores. Must end with *"_by_<bot username>"*
(*<bot_username>* is case insensitive) for bots; 0-64 characters. If empty, then the name returned by
getSuggestedStickerSetName will be used automatically.
*/
    name: string;
    /**
Type of the stickers in the set.
*/
    sticker_type: StickerType;
    /**
Pass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only.
*/
    needs_repainting?: boolean;
    /**
List of stickers to be added to the set; 1-200 stickers for custom emoji sticker sets, and 1-120 stickers otherwise. For
TGS stickers, uploadStickerFile must be used before the sticker is shown.
*/
    stickers: InputSticker[];
    /**
Source of the sticker set; may be empty if unknown.
*/
    source: string;
}
/**
Adds a new sticker to a set.
Request type for {@link Tdjson#addStickerToSet}.
*/
export interface AddStickerToSet {
    '@type': 'addStickerToSet';
    /**
Sticker set owner; ignored for regular users.
*/
    user_id: number;
    /**
Sticker set name. The sticker set must be owned by the current user, and contain less than 200 stickers for custom emoji
sticker sets and less than 120 otherwise.
*/
    name: string;
    /**
Sticker to add to the set.
*/
    sticker: InputSticker;
}
/**
Replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then
setStickerPositionInSet.
Request type for {@link Tdjson#replaceStickerInSet}.
*/
export interface ReplaceStickerInSet {
    '@type': 'replaceStickerInSet';
    /**
Sticker set owner; ignored for regular users.
*/
    user_id: number;
    /**
Sticker set name. The sticker set must be owned by the current user.
*/
    name: string;
    /**
Sticker to remove from the set.
*/
    old_sticker: InputFile;
    /**
Sticker to add to the set.
*/
    new_sticker: InputSticker;
}
/**
Sets a sticker set thumbnail.
Request type for {@link Tdjson#setStickerSetThumbnail}.
*/
export interface SetStickerSetThumbnail {
    '@type': 'setStickerSetThumbnail';
    /**
Sticker set owner; ignored for regular users.
*/
    user_id: number;
    /**
Sticker set name. The sticker set must be owned by the current user.
*/
    name: string;
    /**
Thumbnail to set; pass null to remove the sticker set thumbnail.
*/
    thumbnail: InputFile;
    /**
Format of the thumbnail; pass null if thumbnail is removed.
*/
    format: StickerFormat;
}
/**
Sets a custom emoji sticker set thumbnail.
Request type for {@link Tdjson#setCustomEmojiStickerSetThumbnail}.
*/
export interface SetCustomEmojiStickerSetThumbnail {
    '@type': 'setCustomEmojiStickerSetThumbnail';
    /**
Sticker set name. The sticker set must be owned by the current user.
*/
    name: string;
    /**
Identifier of the custom emoji from the sticker set, which will be set as sticker set thumbnail; pass 0 to remove the
sticker set thumbnail.
*/
    custom_emoji_id: string;
}
/**
Sets a sticker set title.
Request type for {@link Tdjson#setStickerSetTitle}.
*/
export interface SetStickerSetTitle {
    '@type': 'setStickerSetTitle';
    /**
Sticker set name. The sticker set must be owned by the current user.
*/
    name: string;
    /**
New sticker set title.
*/
    title: string;
}
/**
Completely deletes a sticker set.
Request type for {@link Tdjson#deleteStickerSet}.
*/
export interface DeleteStickerSet {
    '@type': 'deleteStickerSet';
    /**
Sticker set name. The sticker set must be owned by the current user.
*/
    name: string;
}
/**
Changes the position of a sticker in the set to which it belongs. The sticker set must be owned by the current user.
Request type for {@link Tdjson#setStickerPositionInSet}.
*/
export interface SetStickerPositionInSet {
    '@type': 'setStickerPositionInSet';
    /**
Sticker.
*/
    sticker: InputFile;
    /**
New position of the sticker in the set, 0-based.
*/
    position: number;
}
/**
Removes a sticker from the set to which it belongs. The sticker set must be owned by the current user.
Request type for {@link Tdjson#removeStickerFromSet}.
*/
export interface RemoveStickerFromSet {
    '@type': 'removeStickerFromSet';
    /**
Sticker to remove from the set.
*/
    sticker: InputFile;
}
/**
Changes the list of emojis corresponding to a sticker. The sticker must belong to a regular or custom emoji sticker set
that is owned by the current user.
Request type for {@link Tdjson#setStickerEmojis}.
*/
export interface SetStickerEmojis {
    '@type': 'setStickerEmojis';
    /**
Sticker.
*/
    sticker: InputFile;
    /**
New string with 1-20 emoji corresponding to the sticker.
*/
    emojis: string;
}
/**
Changes the list of keywords of a sticker. The sticker must belong to a regular or custom emoji sticker set that is
owned by the current user.
Request type for {@link Tdjson#setStickerKeywords}.
*/
export interface SetStickerKeywords {
    '@type': 'setStickerKeywords';
    /**
Sticker.
*/
    sticker: InputFile;
    /**
List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker.
*/
    keywords: string[];
}
/**
Changes the mask position of a mask sticker. The sticker must belong to a mask sticker set that is owned by the current
user.
Request type for {@link Tdjson#setStickerMaskPosition}.
*/
export interface SetStickerMaskPosition {
    '@type': 'setStickerMaskPosition';
    /**
Sticker.
*/
    sticker: InputFile;
    /**
Position where the mask is placed; pass null to remove mask position.
*/
    mask_position: MaskPosition;
}
/**
Returns sticker sets owned by the current user.
Request type for {@link Tdjson#getOwnedStickerSets}.
*/
export interface GetOwnedStickerSets {
    '@type': 'getOwnedStickerSets';
    /**
Identifier of the sticker set from which to return owned sticker sets; use 0 to get results from the beginning.
*/
    offset_sticker_set_id: string;
    /**
The maximum number of sticker sets to be returned; must be positive and can't be greater than 100. For optimal
performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit.
*/
    limit: number;
}
/**
Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB
can be downloaded.
Request type for {@link Tdjson#getMapThumbnailFile}.
*/
export interface GetMapThumbnailFile {
    '@type': 'getMapThumbnailFile';
    /**
Location of the map center.
*/
    location: Location;
    /**
Map zoom level; 13-20.
*/
    zoom: number;
    /**
Map width in pixels before applying scale; 16-1024.
*/
    width: number;
    /**
Map height in pixels before applying scale; 16-1024.
*/
    height: number;
    /**
Map scale; 1-3.
*/
    scale: number;
    /**
Identifier of a chat in which the thumbnail will be shown. Use 0 if unknown.
*/
    chat_id: number;
}
/**
Returns information about a limit, increased for Premium users. Returns a 404 error if the limit is unknown.
Request type for {@link Tdjson#getPremiumLimit}.
*/
export interface GetPremiumLimit {
    '@type': 'getPremiumLimit';
    /**
Type of the limit.
*/
    limit_type: PremiumLimitType;
}
/**
Returns information about features, available to Premium users.
Request type for {@link Tdjson#getPremiumFeatures}.
*/
export interface GetPremiumFeatures {
    '@type': 'getPremiumFeatures';
    /**
Source of the request; pass null if the method is called from some non-standard source.
*/
    source: PremiumSource;
}
/**
Returns examples of premium stickers for demonstration purposes.
Request type for {@link Tdjson#getPremiumStickerExamples}.
*/
export interface GetPremiumStickerExamples {
    '@type': 'getPremiumStickerExamples';
}
/**
Returns the sticker to be used as representation of the Telegram Premium subscription.
Request type for {@link Tdjson#getPremiumInfoSticker}.
*/
export interface GetPremiumInfoSticker {
    '@type': 'getPremiumInfoSticker';
    /**
Number of months the Telegram Premium subscription will be active.
*/
    month_count: number;
}
/**
Informs TDLib that the user viewed detailed information about a Premium feature on the Premium features screen.
Request type for {@link Tdjson#viewPremiumFeature}.
*/
export interface ViewPremiumFeature {
    '@type': 'viewPremiumFeature';
    /**
The viewed premium feature.
*/
    feature: PremiumFeature;
}
/**
Informs TDLib that the user clicked Premium subscription button on the Premium features screen.
Request type for {@link Tdjson#clickPremiumSubscriptionButton}.
*/
export interface ClickPremiumSubscriptionButton {
    '@type': 'clickPremiumSubscriptionButton';
}
/**
Returns state of Telegram Premium subscription and promotion videos for Premium features.
Request type for {@link Tdjson#getPremiumState}.
*/
export interface GetPremiumState {
    '@type': 'getPremiumState';
}
/**
Returns available options for gifting Telegram Premium to a user.
Request type for {@link Tdjson#getPremiumGiftPaymentOptions}.
*/
export interface GetPremiumGiftPaymentOptions {
    '@type': 'getPremiumGiftPaymentOptions';
}
/**
Returns available options for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among
chat members.
Request type for {@link Tdjson#getPremiumGiveawayPaymentOptions}.
*/
export interface GetPremiumGiveawayPaymentOptions {
    '@type': 'getPremiumGiveawayPaymentOptions';
    /**
Identifier of the supergroup or channel chat, which will be automatically boosted by receivers of the gift codes and
which is administered by the user.
*/
    boosted_chat_id: number;
}
/**
Return information about a Telegram Premium gift code.
Request type for {@link Tdjson#checkPremiumGiftCode}.
*/
export interface CheckPremiumGiftCode {
    '@type': 'checkPremiumGiftCode';
    /**
The code to check.
*/
    code: string;
}
/**
Applies a Telegram Premium gift code.
Request type for {@link Tdjson#applyPremiumGiftCode}.
*/
export interface ApplyPremiumGiftCode {
    '@type': 'applyPremiumGiftCode';
    /**
The code to apply.
*/
    code: string;
}
/**
Launches a prepaid giveaway.
Request type for {@link Tdjson#launchPrepaidGiveaway}.
*/
export interface LaunchPrepaidGiveaway {
    '@type': 'launchPrepaidGiveaway';
    /**
Unique identifier of the prepaid giveaway.
*/
    giveaway_id: string;
    /**
Giveaway parameters.
*/
    parameters: GiveawayParameters;
    /**
The number of users to receive giveaway prize.
*/
    winner_count: number;
    /**
The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways.
*/
    star_count: number;
}
/**
Returns information about a giveaway.
Request type for {@link Tdjson#getGiveawayInfo}.
*/
export interface GetGiveawayInfo {
    '@type': 'getGiveawayInfo';
    /**
Identifier of the channel chat which started the giveaway.
*/
    chat_id: number;
    /**
Identifier of the giveaway or a giveaway winners message in the chat.
*/
    message_id: number;
}
/**
Returns available options for Telegram Stars purchase.
Request type for {@link Tdjson#getStarPaymentOptions}.
*/
export interface GetStarPaymentOptions {
    '@type': 'getStarPaymentOptions';
}
/**
Returns available options for Telegram Stars gifting.
Request type for {@link Tdjson#getStarGiftPaymentOptions}.
*/
export interface GetStarGiftPaymentOptions {
    '@type': 'getStarGiftPaymentOptions';
    /**
Identifier of the user that will receive Telegram Stars; pass 0 to get options for an unspecified user.
*/
    user_id: number;
}
/**
Returns available options for Telegram Star giveaway creation.
Request type for {@link Tdjson#getStarGiveawayPaymentOptions}.
*/
export interface GetStarGiveawayPaymentOptions {
    '@type': 'getStarGiveawayPaymentOptions';
}
/**
Returns the list of Telegram Star transactions for the specified owner.
Request type for {@link Tdjson#getStarTransactions}.
*/
export interface GetStarTransactions {
    '@type': 'getStarTransactions';
    /**
Identifier of the owner of the Telegram Stars; can be the identifier of the current user, identifier of an owned bot, or
identifier of a supergroup or a channel chat with supergroupFullInfo.can_get_star_revenue_statistics == true.
*/
    owner_id: MessageSender;
    /**
If non-empty, only transactions related to the Star Subscription will be returned.
*/
    subscription_id: string;
    /**
Direction of the transactions to receive; pass null to get all transactions.
*/
    direction: StarTransactionDirection;
    /**
Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk
of results.
*/
    offset: string;
    /**
The maximum number of transactions to return.
*/
    limit: number;
}
/**
Returns the list of Telegram Star subscriptions for the current user.
Request type for {@link Tdjson#getStarSubscriptions}.
*/
export interface GetStarSubscriptions {
    '@type': 'getStarSubscriptions';
    /**
Pass true to receive only expiring subscriptions for which there are no enough Telegram Stars to extend.
*/
    only_expiring?: boolean;
    /**
Offset of the first subscription to return as received from the previous request; use empty string to get the first
chunk of results.
*/
    offset: string;
}
/**
Checks whether an in-store purchase is possible. Must be called before any in-store purchase.
Request type for {@link Tdjson#canPurchaseFromStore}.
*/
export interface CanPurchaseFromStore {
    '@type': 'canPurchaseFromStore';
    /**
Transaction purpose.
*/
    purpose: StorePaymentPurpose;
}
/**
Informs server about a purchase through App Store. For official applications only.
Request type for {@link Tdjson#assignAppStoreTransaction}.
*/
export interface AssignAppStoreTransaction {
    '@type': 'assignAppStoreTransaction';
    /**
App Store receipt.
*/
    receipt: string;
    /**
Transaction purpose.
*/
    purpose: StorePaymentPurpose;
}
/**
Informs server about a purchase through Google Play. For official applications only.
Request type for {@link Tdjson#assignGooglePlayTransaction}.
*/
export interface AssignGooglePlayTransaction {
    '@type': 'assignGooglePlayTransaction';
    /**
Application package name.
*/
    package_name: string;
    /**
Identifier of the purchased store product.
*/
    store_product_id: string;
    /**
Google Play purchase token.
*/
    purchase_token: string;
    /**
Transaction purpose.
*/
    purpose: StorePaymentPurpose;
}
/**
Cancels or re-enables Telegram Star subscription.
Request type for {@link Tdjson#editStarSubscription}.
*/
export interface EditStarSubscription {
    '@type': 'editStarSubscription';
    /**
Identifier of the subscription to change.
*/
    subscription_id: string;
    /**
New value of is_canceled.
*/
    is_canceled?: boolean;
}
/**
Cancels or re-enables Telegram Star subscription for a user; for bots only.
Request type for {@link Tdjson#editUserStarSubscription}.
*/
export interface EditUserStarSubscription {
    '@type': 'editUserStarSubscription';
    /**
User identifier.
*/
    user_id: number;
    /**
Telegram payment identifier of the subscription.
*/
    telegram_payment_charge_id: string;
    /**
Pass true to cancel the subscription; pass false to allow the user to enable it.
*/
    is_canceled?: boolean;
}
/**
Reuses an active Telegram Star subscription to a channel chat and joins the chat again.
Request type for {@link Tdjson#reuseStarSubscription}.
*/
export interface ReuseStarSubscription {
    '@type': 'reuseStarSubscription';
    /**
Identifier of the subscription.
*/
    subscription_id: string;
}
/**
Changes affiliate program for a bot.
Request type for {@link Tdjson#setChatAffiliateProgram}.
*/
export interface SetChatAffiliateProgram {
    '@type': 'setChatAffiliateProgram';
    /**
Identifier of the chat with an owned bot for which affiliate program is changed.
*/
    chat_id: number;
    /**
Parameters of the affiliate program; pass null to close the currently active program. If there is an active program,
then commission and program duration can only be increased. If the active program is scheduled to be closed, then it
can't be changed anymore.
*/
    parameters: AffiliateProgramParameters;
}
/**
Searches a chat with an affiliate program. Returns the chat if found and the program is active.
Request type for {@link Tdjson#searchChatAffiliateProgram}.
*/
export interface SearchChatAffiliateProgram {
    '@type': 'searchChatAffiliateProgram';
    /**
Username of the chat.
*/
    username: string;
    /**
The referrer from an internalLinkTypeChatAffiliateProgram link.
*/
    referrer: string;
}
/**
Searches affiliate programs that can be connected to the given affiliate.
Request type for {@link Tdjson#searchAffiliatePrograms}.
*/
export interface SearchAffiliatePrograms {
    '@type': 'searchAffiliatePrograms';
    /**
The affiliate for which affiliate programs are searched for.
*/
    affiliate: AffiliateType;
    /**
Sort order for the results.
*/
    sort_order: AffiliateProgramSortOrder;
    /**
Offset of the first affiliate program to return as received from the previous request; use empty string to get the first
chunk of results.
*/
    offset: string;
    /**
The maximum number of affiliate programs to return.
*/
    limit: number;
}
/**
Connects an affiliate program to the given affiliate. Returns information about the connected affiliate program.
Request type for {@link Tdjson#connectAffiliateProgram}.
*/
export interface ConnectAffiliateProgram {
    '@type': 'connectAffiliateProgram';
    /**
The affiliate to which the affiliate program will be connected.
*/
    affiliate: AffiliateType;
    /**
Identifier of the bot, which affiliate program is connected.
*/
    bot_user_id: number;
}
/**
Disconnects an affiliate program from the given affiliate and immediately deactivates its referral link. Returns updated
information about the disconnected affiliate program.
Request type for {@link Tdjson#disconnectAffiliateProgram}.
*/
export interface DisconnectAffiliateProgram {
    '@type': 'disconnectAffiliateProgram';
    /**
The affiliate to which the affiliate program is connected.
*/
    affiliate: AffiliateType;
    /**
The referral link of the affiliate program.
*/
    url: string;
}
/**
Returns an affiliate program that were connected to the given affiliate by identifier of the bot that created the
program.
Request type for {@link Tdjson#getConnectedAffiliateProgram}.
*/
export interface GetConnectedAffiliateProgram {
    '@type': 'getConnectedAffiliateProgram';
    /**
The affiliate to which the affiliate program will be connected.
*/
    affiliate: AffiliateType;
    /**
Identifier of the bot that created the program.
*/
    bot_user_id: number;
}
/**
Returns affiliate programs that were connected to the given affiliate.
Request type for {@link Tdjson#getConnectedAffiliatePrograms}.
*/
export interface GetConnectedAffiliatePrograms {
    '@type': 'getConnectedAffiliatePrograms';
    /**
The affiliate to which the affiliate program were connected.
*/
    affiliate: AffiliateType;
    /**
Offset of the first affiliate program to return as received from the previous request; use empty string to get the first
chunk of results.
*/
    offset: string;
    /**
The maximum number of affiliate programs to return.
*/
    limit: number;
}
/**
Returns information about features, available to Business users.
Request type for {@link Tdjson#getBusinessFeatures}.
*/
export interface GetBusinessFeatures {
    '@type': 'getBusinessFeatures';
    /**
Source of the request; pass null if the method is called from settings or some non-standard source.
*/
    source: BusinessFeature;
}
/**
Accepts Telegram terms of services.
Request type for {@link Tdjson#acceptTermsOfService}.
*/
export interface AcceptTermsOfService {
    '@type': 'acceptTermsOfService';
    /**
Terms of service identifier.
*/
    terms_of_service_id: string;
}
/**
Searches specified query by word prefixes in the provided strings. Returns 0-based positions of strings that matched.
Can be called synchronously.
Request type for {@link Tdjson#searchStringsByPrefix}.
*/
export interface SearchStringsByPrefix {
    '@type': 'searchStringsByPrefix';
    /**
The strings to search in for the query.
*/
    strings: string[];
    /**
Query to search for.
*/
    query: string;
    /**
The maximum number of objects to return.
*/
    limit: number;
    /**
Pass true to receive no results for an empty query.
*/
    return_none_for_empty_query?: boolean;
}
/**
Sends a custom request; for bots only.
Request type for {@link Tdjson#sendCustomRequest}.
*/
export interface SendCustomRequest {
    '@type': 'sendCustomRequest';
    /**
The method name.
*/
    method: string;
    /**
JSON-serialized method parameters.
*/
    parameters: string;
}
/**
Answers a custom query; for bots only.
Request type for {@link Tdjson#answerCustomQuery}.
*/
export interface AnswerCustomQuery {
    '@type': 'answerCustomQuery';
    /**
Identifier of a custom query.
*/
    custom_query_id: string;
    /**
JSON-serialized answer to the query.
*/
    data: string;
}
/**
Succeeds after a specified amount of time has passed. Can be called before initialization.
Request type for {@link Tdjson#setAlarm}.
*/
export interface SetAlarm {
    '@type': 'setAlarm';
    /**
Number of seconds before the function returns.
*/
    seconds: number;
}
/**
Returns information about existing countries. Can be called before authorization.
Request type for {@link Tdjson#getCountries}.
*/
export interface GetCountries {
    '@type': 'getCountries';
}
/**
Uses the current IP address to find the current country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be
called before authorization.
Request type for {@link Tdjson#getCountryCode}.
*/
export interface GetCountryCode {
    '@type': 'getCountryCode';
}
/**
Returns information about a phone number by its prefix. Can be called before authorization.
Request type for {@link Tdjson#getPhoneNumberInfo}.
*/
export interface GetPhoneNumberInfo {
    '@type': 'getPhoneNumberInfo';
    /**
The phone number prefix.
*/
    phone_number_prefix: string;
}
/**
Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after
changing localization to the specified language if properly localized country information is expected. Can be called
synchronously.
Request type for {@link Tdjson#getPhoneNumberInfoSync}.
*/
export interface GetPhoneNumberInfoSync {
    '@type': 'getPhoneNumberInfoSync';
    /**
A two-letter ISO 639-1 language code for country information localization.
*/
    language_code: string;
    /**
The phone number prefix.
*/
    phone_number_prefix: string;
}
/**
Returns information about a given collectible item that was purchased at https://fragment.com.
Request type for {@link Tdjson#getCollectibleItemInfo}.
*/
export interface GetCollectibleItemInfo {
    '@type': 'getCollectibleItemInfo';
    /**
Type of the collectible item. The item must be used by a user and must be visible to the current user.
*/
    type: CollectibleItemType;
}
/**
Returns information about a tg:// deep link. Use "tg://need_update_for_some_feature" or "tg:some_unsupported_feature"
for testing. Returns a 404 error for unknown links. Can be called before authorization.
Request type for {@link Tdjson#getDeepLinkInfo}.
*/
export interface GetDeepLinkInfo {
    '@type': 'getDeepLinkInfo';
    /**
The link.
*/
    link: string;
}
/**
Returns application config, provided by the server. Can be called before authorization.
Request type for {@link Tdjson#getApplicationConfig}.
*/
export interface GetAppConfig {
    '@type': 'getApplicationConfig';
}
/**
Saves application log event on the server. Can be called before authorization.
Request type for {@link Tdjson#saveApplicationLogEvent}.
*/
export interface SaveAppLogEvent {
    '@type': 'saveApplicationLogEvent';
    /**
Event type.
*/
    type: string;
    /**
Optional chat identifier, associated with the event.
*/
    chat_id: number;
    /**
The log event data.
*/
    data: JsonValue;
}
/**
Returns the link for downloading official Telegram application to be used when the current user invites friends to
Telegram.
Request type for {@link Tdjson#getApplicationDownloadLink}.
*/
export interface GetAppDownloadLink {
    '@type': 'getApplicationDownloadLink';
}
/**
Adds a proxy server for network requests. Can be called before authorization.
Request type for {@link Tdjson#addProxy}.
*/
export interface AddProxy {
    '@type': 'addProxy';
    /**
Proxy server domain or IP address.
*/
    server: string;
    /**
Proxy server port.
*/
    port: number;
    /**
Pass true to immediately enable the proxy.
*/
    enable?: boolean;
    /**
Proxy type.
*/
    type: ProxyType;
}
/**
Edits an existing proxy server for network requests. Can be called before authorization.
Request type for {@link Tdjson#editProxy}.
*/
export interface EditProxy {
    '@type': 'editProxy';
    /**
Proxy identifier.
*/
    proxy_id: number;
    /**
Proxy server domain or IP address.
*/
    server: string;
    /**
Proxy server port.
*/
    port: number;
    /**
Pass true to immediately enable the proxy.
*/
    enable?: boolean;
    /**
Proxy type.
*/
    type: ProxyType;
}
/**
Enables a proxy. Only one proxy can be enabled at a time. Can be called before authorization.
Request type for {@link Tdjson#enableProxy}.
*/
export interface EnableProxy {
    '@type': 'enableProxy';
    /**
Proxy identifier.
*/
    proxy_id: number;
}
/**
Disables the currently enabled proxy. Can be called before authorization.
Request type for {@link Tdjson#disableProxy}.
*/
export interface DisableProxy {
    '@type': 'disableProxy';
}
/**
Removes a proxy server. Can be called before authorization.
Request type for {@link Tdjson#removeProxy}.
*/
export interface RemoveProxy {
    '@type': 'removeProxy';
    /**
Proxy identifier.
*/
    proxy_id: number;
}
/**
Returns the list of proxies that are currently set up. Can be called before authorization.
Request type for {@link Tdjson#getProxies}.
*/
export interface GetProxies {
    '@type': 'getProxies';
}
/**
Returns an HTTPS link, which can be used to add a proxy. Available only for SOCKS5 and MTProto proxies. Can be called
before authorization.
Request type for {@link Tdjson#getProxyLink}.
*/
export interface GetProxyLink {
    '@type': 'getProxyLink';
    /**
Proxy identifier.
*/
    proxy_id: number;
}
/**
Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.
Request type for {@link Tdjson#pingProxy}.
*/
export interface PingProxy {
    '@type': 'pingProxy';
    /**
Proxy identifier. Use 0 to ping a Telegram server without a proxy.
*/
    proxy_id: number;
}
/**
Sets new log stream for internal logging of TDLib. Can be called synchronously.
Request type for {@link Tdjson#setLogStream}.
*/
export interface SetLogStream {
    '@type': 'setLogStream';
    /**
New log stream.
*/
    log_stream: LogStream;
}
/**
Returns information about currently used log stream for internal logging of TDLib. Can be called synchronously.
Request type for {@link Tdjson#getLogStream}.
*/
export interface GetLogStream {
    '@type': 'getLogStream';
}
/**
Sets the verbosity level of the internal logging of TDLib. Can be called synchronously.
Request type for {@link Tdjson#setLogVerbosityLevel}.
*/
export interface SetLogVerbosityLevel {
    '@type': 'setLogVerbosityLevel';
    /**
New value of the verbosity level for logging. Value 0 corresponds to fatal errors, value 1 corresponds to errors, value
2 corresponds to warnings and debug warnings, value 3 corresponds to informational, value 4 corresponds to debug, value
5 corresponds to verbose debug, value greater than 5 and up to 1023 can be used to enable even more logging.
*/
    new_verbosity_level: number;
}
/**
Returns current verbosity level of the internal logging of TDLib. Can be called synchronously.
Request type for {@link Tdjson#getLogVerbosityLevel}.
*/
export interface GetLogVerbosityLevel {
    '@type': 'getLogVerbosityLevel';
}
/**
Returns the list of available TDLib internal log tags, for example, ["actor", "binlog", "connections", "notifications",
"proxy"]. Can be called synchronously.
Request type for {@link Tdjson#getLogTags}.
*/
export interface GetLogTags {
    '@type': 'getLogTags';
}
/**
Sets the verbosity level for a specified TDLib internal log tag. Can be called synchronously.
Request type for {@link Tdjson#setLogTagVerbosityLevel}.
*/
export interface SetLogTagVerbosityLevel {
    '@type': 'setLogTagVerbosityLevel';
    /**
Logging tag to change verbosity level.
*/
    tag: string;
    /**
New verbosity level; 1-1024.
*/
    new_verbosity_level: number;
}
/**
Returns current verbosity level for a specified TDLib internal log tag. Can be called synchronously.
Request type for {@link Tdjson#getLogTagVerbosityLevel}.
*/
export interface GetLogTagVerbosityLevel {
    '@type': 'getLogTagVerbosityLevel';
    /**
Logging tag to change verbosity level.
*/
    tag: string;
}
/**
Adds a message to TDLib internal log. Can be called synchronously.
Request type for {@link Tdjson#addLogMessage}.
*/
export interface AddLogMessage {
    '@type': 'addLogMessage';
    /**
The minimum verbosity level needed for the message to be logged; 0-1023.
*/
    verbosity_level: number;
    /**
Text of a message to log.
*/
    text: string;
}
/**
Returns support information for the given user; for Telegram support only.
Request type for {@link Tdjson#getUserSupportInfo}.
*/
export interface GetUserSupportInfo {
    '@type': 'getUserSupportInfo';
    /**
User identifier.
*/
    user_id: number;
}
/**
Sets support information for the given user; for Telegram support only.
Request type for {@link Tdjson#setUserSupportInfo}.
*/
export interface SetUserSupportInfo {
    '@type': 'setUserSupportInfo';
    /**
User identifier.
*/
    user_id: number;
    /**
New information message.
*/
    message: FormattedText;
}
/**
Returns localized name of the Telegram support user; for Telegram support only.
Request type for {@link Tdjson#getSupportName}.
*/
export interface GetSupportName {
    '@type': 'getSupportName';
}
/**
Does nothing; for testing only. This is an offline method. Can be called before authorization.
Request type for {@link Tdjson#testCallEmpty}.
*/
export interface TestCallEmpty {
    '@type': 'testCallEmpty';
}
/**
Returns the received string; for testing only. This is an offline method. Can be called before authorization.
Request type for {@link Tdjson#testCallString}.
*/
export interface TestCallString {
    '@type': 'testCallString';
    /**
String to return.
*/
    x: string;
}
/**
Returns the received bytes; for testing only. This is an offline method. Can be called before authorization.
Request type for {@link Tdjson#testCallBytes}.
*/
export interface TestCallBytes {
    '@type': 'testCallBytes';
    /**
Bytes to return.
*/
    x: string;
}
/**
Returns the received vector of numbers; for testing only. This is an offline method. Can be called before authorization.
Request type for {@link Tdjson#testCallVectorInt}.
*/
export interface TestCallVectorInt {
    '@type': 'testCallVectorInt';
    /**
Vector of numbers to return.
*/
    x: number[];
}
/**
Returns the received vector of objects containing a number; for testing only. This is an offline method. Can be called
before authorization.
Request type for {@link Tdjson#testCallVectorIntObject}.
*/
export interface TestCallVectorIntObject {
    '@type': 'testCallVectorIntObject';
    /**
Vector of objects to return.
*/
    x: TestInt[];
}
/**
Returns the received vector of strings; for testing only. This is an offline method. Can be called before authorization.
Request type for {@link Tdjson#testCallVectorString}.
*/
export interface TestCallVectorString {
    '@type': 'testCallVectorString';
    /**
Vector of strings to return.
*/
    x: string[];
}
/**
Returns the received vector of objects containing a string; for testing only. This is an offline method. Can be called
before authorization.
Request type for {@link Tdjson#testCallVectorStringObject}.
*/
export interface TestCallVectorStringObject {
    '@type': 'testCallVectorStringObject';
    /**
Vector of objects to return.
*/
    x: TestString[];
}
/**
Returns the squared received number; for testing only. This is an offline method. Can be called before authorization.
Request type for {@link Tdjson#testSquareInt}.
*/
export interface TestSquareInt {
    '@type': 'testSquareInt';
    /**
Number to square.
*/
    x: number;
}
/**
Sends a simple network request to the Telegram servers; for testing only. Can be called before authorization.
Request type for {@link Tdjson#testNetwork}.
*/
export interface TestNetwork {
    '@type': 'testNetwork';
}
/**
Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization.
Request type for {@link Tdjson#testProxy}.
*/
export interface TestProxy {
    '@type': 'testProxy';
    /**
Proxy server domain or IP address.
*/
    server: string;
    /**
Proxy server port.
*/
    port: number;
    /**
Proxy type.
*/
    type: ProxyType;
    /**
Identifier of a datacenter with which to test connection.
*/
    dc_id: number;
    /**
The maximum overall timeout for the request.
*/
    timeout: number;
}
/**
Forces an updates.getDifference call to the Telegram servers; for testing only.
Request type for {@link Tdjson#testGetDifference}.
*/
export interface TestGetDifference {
    '@type': 'testGetDifference';
}
/**
Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called
before authorization.
Request type for {@link Tdjson#testUseUpdate}.
*/
export interface TestUseUpdate {
    '@type': 'testUseUpdate';
}
/**
Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously.
Request type for {@link Tdjson#testReturnError}.
*/
export interface TestReturnError {
    '@type': 'testReturnError';
    /**
The error to be returned.
*/
    error: Error;
}
export type Request = GetAuthorizationState | SetTdlibParameters | SetAuthenticationPhoneNumber | SetAuthenticationEmailAddress | ResendAuthenticationCode | CheckAuthenticationEmailCode | CheckAuthenticationCode | RequestQrCodeAuthentication | RegisterUser | ResetAuthenticationEmailAddress | CheckAuthenticationPassword | RequestAuthenticationPasswordRecovery | CheckAuthenticationPasswordRecoveryCode | RecoverAuthenticationPassword | SendAuthenticationFirebaseSms | ReportAuthenticationCodeMissing | CheckAuthenticationBotToken | LogOut | Close | Destroy | ConfirmQrCodeAuthentication | GetCurrentState | SetDatabaseEncryptionKey | GetPasswordState | SetPassword | SetLoginEmailAddress | ResendLoginEmailAddressCode | CheckLoginEmailAddressCode | GetRecoveryEmailAddress | SetRecoveryEmailAddress | CheckRecoveryEmailAddressCode | ResendRecoveryEmailAddressCode | CancelRecoveryEmailAddressVerification | RequestPasswordRecovery | CheckPasswordRecoveryCode | RecoverPassword | ResetPassword | CancelPasswordReset | CreateTemporaryPassword | GetTemporaryPasswordState | GetMe | GetUser | GetUserFullInfo | GetBasicGroup | GetBasicGroupFullInfo | GetSupergroup | GetSupergroupFullInfo | GetSecretChat | GetChat | GetMessage | GetMessageLocally | GetRepliedMessage | GetChatPinnedMessage | GetCallbackQueryMessage | GetMessages | GetMessageProperties | GetMessageThread | GetMessageReadDate | GetMessageViewers | GetFile | GetRemoteFile | LoadChats | GetChats | SearchPublicChat | SearchPublicChats | SearchChats | SearchChatsOnServer | GetRecommendedChats | GetChatSimilarChats | GetChatSimilarChatCount | OpenChatSimilarChat | GetBotSimilarBots | GetBotSimilarBotCount | OpenBotSimilarBot | GetTopChats | RemoveTopChat | SearchRecentlyFoundChats | AddRecentlyFoundChat | RemoveRecentlyFoundChat | ClearRecentlyFoundChats | GetRecentlyOpenedChats | CheckChatUsername | GetCreatedPublicChats | CheckCreatedPublicChatsLimit | GetSuitableDiscussionChats | GetInactiveSupergroupChats | GetSuitablePersonalChats | LoadSavedMessagesTopics | GetSavedMessagesTopicHistory | GetSavedMessagesTopicMessageByDate | DeleteSavedMessagesTopicHistory | DeleteSavedMessagesTopicMessagesByDate | ToggleSavedMessagesTopicIsPinned | SetPinnedSavedMessagesTopics | GetGroupsInCommon | GetChatHistory | GetMessageThreadHistory | DeleteChatHistory | DeleteChat | SearchChatMessages | SearchMessages | SearchSecretMessages | SearchSavedMessages | SearchCallMessages | SearchOutgoingDocumentMessages | SearchPublicMessagesByTag | SearchPublicStoriesByTag | SearchPublicStoriesByLocation | SearchPublicStoriesByVenue | GetSearchedForTags | RemoveSearchedForTag | ClearSearchedForTags | DeleteAllCallMessages | SearchChatRecentLocationMessages | GetChatMessageByDate | GetChatSparseMessagePositions | GetChatMessageCalendar | GetChatMessageCount | GetChatMessagePosition | GetChatScheduledMessages | GetChatSponsoredMessages | ClickChatSponsoredMessage | ReportChatSponsoredMessage | RemoveNotification | RemoveNotificationGroup | GetMessageLink | GetMessageEmbeddingCode | GetMessageLinkInfo | TranslateText | TranslateMessageText | RecognizeSpeech | RateSpeechRecognition | GetChatAvailableMessageSenders | SetChatMessageSender | SendMessage | SendMessageAlbum | SendBotStartMessage | SendInlineQueryResultMessage | ForwardMessages | SendQuickReplyShortcutMessages | ResendMessages | AddLocalMessage | DeleteMessages | DeleteChatMessagesBySender | DeleteChatMessagesByDate | EditMessageText | EditMessageLiveLocation | EditMessageMedia | EditMessageCaption | EditMessageReplyMarkup | EditInlineMessageText | EditInlineMessageLiveLocation | EditInlineMessageMedia | EditInlineMessageCaption | EditInlineMessageReplyMarkup | EditMessageSchedulingState | SetMessageFactCheck | SendBusinessMessage | SendBusinessMessageAlbum | EditBusinessMessageText | EditBusinessMessageLiveLocation | EditBusinessMessageMedia | EditBusinessMessageCaption | EditBusinessMessageReplyMarkup | StopBusinessPoll | SetBusinessMessageIsPinned | CheckQuickReplyShortcutName | LoadQuickReplyShortcuts | SetQuickReplyShortcutName | DeleteQuickReplyShortcut | ReorderQuickReplyShortcuts | LoadQuickReplyShortcutMessages | DeleteQuickReplyShortcutMessages | AddQuickReplyShortcutMessage | AddQuickReplyShortcutInlineQueryResultMessage | AddQuickReplyShortcutMessageAlbum | ReaddQuickReplyShortcutMessages | EditQuickReplyMessage | GetForumTopicDefaultIcons | CreateForumTopic | EditForumTopic | GetForumTopic | GetForumTopicLink | GetForumTopics | SetForumTopicNotificationSettings | ToggleForumTopicIsClosed | ToggleGeneralForumTopicIsHidden | ToggleForumTopicIsPinned | SetPinnedForumTopics | DeleteForumTopic | GetEmojiReaction | GetCustomEmojiReactionAnimations | GetMessageAvailableReactions | ClearRecentReactions | AddMessageReaction | RemoveMessageReaction | GetChatAvailablePaidMessageReactionSenders | AddPendingPaidMessageReaction | CommitPendingPaidMessageReactions | RemovePendingPaidMessageReactions | SetPaidMessageReactionType | SetMessageReactions | GetMessageAddedReactions | SetDefaultReactionType | GetSavedMessagesTags | SetSavedMessagesTagLabel | GetMessageEffect | SearchQuote | GetTextEntities | ParseTextEntities | ParseMarkdown | GetMarkdownText | GetCountryFlagEmoji | GetFileMimeType | GetFileExtension | CleanFileName | GetLanguagePackString | GetJsonValue | GetJsonString | GetThemeParametersJsonString | SetPollAnswer | GetPollVoters | StopPoll | HideSuggestedAction | HideContactCloseBirthdays | GetBusinessConnection | GetLoginUrlInfo | GetLoginUrl | ShareUsersWithBot | ShareChatWithBot | GetInlineQueryResults | AnswerInlineQuery | SavePreparedInlineMessage | GetPreparedInlineMessage | GetGrossingWebAppBots | SearchWebApp | GetWebAppPlaceholder | GetWebAppLinkUrl | GetMainWebApp | GetWebAppUrl | SendWebAppData | OpenWebApp | CloseWebApp | AnswerWebAppQuery | CheckWebAppFileDownload | GetCallbackQueryAnswer | AnswerCallbackQuery | AnswerShippingQuery | AnswerPreCheckoutQuery | SetGameScore | SetInlineGameScore | GetGameHighScores | GetInlineGameHighScores | DeleteChatReplyMarkup | SendChatAction | OpenChat | CloseChat | ViewMessages | OpenMessageContent | ClickAnimatedEmojiMessage | GetInternalLink | GetInternalLinkType | GetExternalLinkInfo | GetExternalLink | ReadAllChatMentions | ReadAllMessageThreadMentions | ReadAllChatReactions | ReadAllMessageThreadReactions | CreatePrivateChat | CreateBasicGroupChat | CreateSupergroupChat | CreateSecretChat | CreateNewBasicGroupChat | CreateNewSupergroupChat | CreateNewSecretChat | UpgradeBasicGroupChatToSupergroupChat | GetChatListsToAddChat | AddChatToList | GetChatFolder | CreateChatFolder | EditChatFolder | DeleteChatFolder | GetChatFolderChatsToLeave | GetChatFolderChatCount | ReorderChatFolders | ToggleChatFolderTags | GetRecommendedChatFolders | GetChatFolderDefaultIconName | GetChatsForChatFolderInviteLink | CreateChatFolderInviteLink | GetChatFolderInviteLinks | EditChatFolderInviteLink | DeleteChatFolderInviteLink | CheckChatFolderInviteLink | AddChatFolderByInviteLink | GetChatFolderNewChats | ProcessChatFolderNewChats | GetArchiveChatListSettings | SetArchiveChatListSettings | SetChatTitle | SetChatPhoto | SetChatAccentColor | SetChatProfileAccentColor | SetChatMessageAutoDeleteTime | SetChatEmojiStatus | SetChatPermissions | SetChatBackground | DeleteChatBackground | SetChatTheme | SetChatDraftMessage | SetChatNotificationSettings | ToggleChatHasProtectedContent | ToggleChatViewAsTopics | ToggleChatIsTranslatable | ToggleChatIsMarkedAsUnread | ToggleChatDefaultDisableNotification | SetChatAvailableReactions | SetChatClientData | SetChatDescription | SetChatDiscussionGroup | SetChatLocation | SetChatSlowModeDelay | PinChatMessage | UnpinChatMessage | UnpinAllChatMessages | UnpinAllMessageThreadMessages | JoinChat | LeaveChat | AddChatMember | AddChatMembers | SetChatMemberStatus | BanChatMember | CanTransferOwnership | TransferChatOwnership | GetChatMember | SearchChatMembers | GetChatAdministrators | ClearAllDraftMessages | GetSavedNotificationSound | GetSavedNotificationSounds | AddSavedNotificationSound | RemoveSavedNotificationSound | GetChatNotificationSettingsExceptions | GetScopeNotificationSettings | SetScopeNotificationSettings | SetReactionNotificationSettings | ResetAllNotificationSettings | ToggleChatIsPinned | SetPinnedChats | ReadChatList | GetCurrentWeather | GetStory | GetChatsToSendStories | CanSendStory | SendStory | EditStory | EditStoryCover | SetStoryPrivacySettings | ToggleStoryIsPostedToChatPage | DeleteStory | GetStoryNotificationSettingsExceptions | LoadActiveStories | SetChatActiveStoriesList | GetChatActiveStories | GetChatPostedToChatPageStories | GetChatArchivedStories | SetChatPinnedStories | OpenStory | CloseStory | GetStoryAvailableReactions | SetStoryReaction | GetStoryInteractions | GetChatStoryInteractions | ReportStory | ActivateStoryStealthMode | GetStoryPublicForwards | GetChatBoostLevelFeatures | GetChatBoostFeatures | GetAvailableChatBoostSlots | GetChatBoostStatus | BoostChat | GetChatBoostLink | GetChatBoostLinkInfo | GetChatBoosts | GetUserChatBoosts | GetAttachmentMenuBot | ToggleBotIsAddedToAttachmentMenu | GetThemedEmojiStatuses | GetRecentEmojiStatuses | GetUpgradedGiftEmojiStatuses | GetDefaultEmojiStatuses | ClearRecentEmojiStatuses | GetThemedChatEmojiStatuses | GetDefaultChatEmojiStatuses | GetDisallowedChatEmojiStatuses | DownloadFile | GetFileDownloadedPrefixSize | CancelDownloadFile | GetSuggestedFileName | PreliminaryUploadFile | CancelPreliminaryUploadFile | WriteGeneratedFilePart | SetFileGenerationProgress | FinishFileGeneration | ReadFilePart | DeleteFile | AddFileToDownloads | ToggleDownloadIsPaused | ToggleAllDownloadsArePaused | RemoveFileFromDownloads | RemoveAllFilesFromDownloads | SearchFileDownloads | SetAppVerificationToken | GetMessageFileType | GetMessageImportConfirmationText | ImportMessages | ReplacePrimaryChatInviteLink | CreateChatInviteLink | CreateChatSubscriptionInviteLink | EditChatInviteLink | EditChatSubscriptionInviteLink | GetChatInviteLink | GetChatInviteLinkCounts | GetChatInviteLinks | GetChatInviteLinkMembers | RevokeChatInviteLink | DeleteRevokedChatInviteLink | DeleteAllRevokedChatInviteLinks | CheckChatInviteLink | JoinChatByInviteLink | GetChatJoinRequests | ProcessChatJoinRequest | ProcessChatJoinRequests | CreateCall | AcceptCall | SendCallSignalingData | DiscardCall | SendCallRating | SendCallDebugInformation | SendCallLog | GetVideoChatAvailableParticipants | SetVideoChatDefaultParticipant | CreateVideoChat | CreateGroupCall | GetVideoChatRtmpUrl | ReplaceVideoChatRtmpUrl | GetGroupCall | StartScheduledGroupCall | ToggleGroupCallEnabledStartNotification | JoinGroupCall | StartGroupCallScreenSharing | ToggleGroupCallScreenSharingIsPaused | EndGroupCallScreenSharing | SetGroupCallTitle | ToggleGroupCallMuteNewParticipants | InviteGroupCallParticipants | GetGroupCallInviteLink | RevokeGroupCallInviteLink | StartGroupCallRecording | EndGroupCallRecording | ToggleGroupCallIsMyVideoPaused | ToggleGroupCallIsMyVideoEnabled | SetGroupCallParticipantIsSpeaking | ToggleGroupCallParticipantIsMuted | SetGroupCallParticipantVolumeLevel | ToggleGroupCallParticipantIsHandRaised | LoadGroupCallParticipants | LeaveGroupCall | EndGroupCall | GetGroupCallStreams | GetGroupCallStreamSegment | SetMessageSenderBlockList | BlockMessageSenderFromReplies | GetBlockedMessageSenders | AddContact | ImportContacts | GetContacts | SearchContacts | RemoveContacts | GetImportedContactCount | ChangeImportedContacts | ClearImportedContacts | SetCloseFriends | GetCloseFriends | SetUserPersonalProfilePhoto | SuggestUserProfilePhoto | ToggleBotCanManageEmojiStatus | SetUserEmojiStatus | SearchUserByPhoneNumber | SharePhoneNumber | GetUserProfilePhotos | GetStickerOutline | GetStickers | GetAllStickerEmojis | SearchStickers | GetGreetingStickers | GetPremiumStickers | GetInstalledStickerSets | GetArchivedStickerSets | GetTrendingStickerSets | GetAttachedStickerSets | GetStickerSet | GetStickerSetName | SearchStickerSet | SearchInstalledStickerSets | SearchStickerSets | ChangeStickerSet | ViewTrendingStickerSets | ReorderInstalledStickerSets | GetRecentStickers | AddRecentSticker | RemoveRecentSticker | ClearRecentStickers | GetFavoriteStickers | AddFavoriteSticker | RemoveFavoriteSticker | GetStickerEmojis | SearchEmojis | GetKeywordEmojis | GetEmojiCategories | GetAnimatedEmoji | GetEmojiSuggestionsUrl | GetCustomEmojiStickers | GetDefaultChatPhotoCustomEmojiStickers | GetDefaultProfilePhotoCustomEmojiStickers | GetDefaultBackgroundCustomEmojiStickers | GetSavedAnimations | AddSavedAnimation | RemoveSavedAnimation | GetRecentInlineBots | GetOwnedBots | SearchHashtags | RemoveRecentHashtag | GetLinkPreview | GetWebPageInstantView | SetProfilePhoto | DeleteProfilePhoto | SetAccentColor | SetProfileAccentColor | SetName | SetBio | SetUsername | ToggleUsernameIsActive | ReorderActiveUsernames | SetBirthdate | SetPersonalChat | SetEmojiStatus | ToggleHasSponsoredMessagesEnabled | SetBusinessLocation | SetBusinessOpeningHours | SetBusinessGreetingMessageSettings | SetBusinessAwayMessageSettings | SetBusinessStartPage | SendPhoneNumberCode | SendPhoneNumberFirebaseSms | ReportPhoneNumberCodeMissing | ResendPhoneNumberCode | CheckPhoneNumberCode | GetBusinessConnectedBot | SetBusinessConnectedBot | DeleteBusinessConnectedBot | ToggleBusinessConnectedBotChatIsPaused | RemoveBusinessConnectedBotFromChat | GetBusinessChatLinks | CreateBusinessChatLink | EditBusinessChatLink | DeleteBusinessChatLink | GetBusinessChatLinkInfo | GetUserLink | SearchUserByToken | SetCommands | DeleteCommands | GetCommands | SetMenuButton | GetMenuButton | SetDefaultGroupAdministratorRights | SetDefaultChannelAdministratorRights | CanBotSendMessages | AllowBotToSendMessages | SendWebAppCustomRequest | GetBotMediaPreviews | GetBotMediaPreviewInfo | AddBotMediaPreview | EditBotMediaPreview | ReorderBotMediaPreviews | DeleteBotMediaPreviews | SetBotName | GetBotName | SetBotProfilePhoto | ToggleBotUsernameIsActive | ReorderBotActiveUsernames | SetBotInfoDescription | GetBotInfoDescription | SetBotInfoShortDescription | GetBotInfoShortDescription | SetMessageSenderBotVerification | RemoveMessageSenderBotVerification | GetActiveSessions | TerminateSession | TerminateAllOtherSessions | ConfirmSession | ToggleSessionCanAcceptCalls | ToggleSessionCanAcceptSecretChats | SetInactiveSessionTtl | GetConnectedWebsites | DisconnectWebsite | DisconnectAllWebsites | SetSupergroupUsername | ToggleSupergroupUsernameIsActive | DisableAllSupergroupUsernames | ReorderSupergroupActiveUsernames | SetSupergroupStickerSet | SetSupergroupCustomEmojiStickerSet | SetSupergroupUnrestrictBoostCount | ToggleSupergroupSignMessages | ToggleSupergroupJoinToSendMessages | ToggleSupergroupJoinByRequest | ToggleSupergroupIsAllHistoryAvailable | ToggleSupergroupCanHaveSponsoredMessages | ToggleSupergroupHasHiddenMembers | ToggleSupergroupHasAggressiveAntiSpamEnabled | ToggleSupergroupIsForum | ToggleSupergroupIsBroadcastGroup | ReportSupergroupSpam | ReportSupergroupAntiSpamFalsePositive | GetSupergroupMembers | CloseSecretChat | GetChatEventLog | GetTimeZones | GetPaymentForm | ValidateOrderInfo | SendPaymentForm | GetPaymentReceipt | GetSavedOrderInfo | DeleteSavedOrderInfo | DeleteSavedCredentials | GetAvailableGifts | SendGift | SellGift | ToggleGiftIsSaved | SetPinnedGifts | ToggleChatGiftNotifications | GetGiftUpgradePreview | UpgradeGift | TransferGift | GetReceivedGifts | GetReceivedGift | GetUpgradedGift | GetUpgradedGiftWithdrawalUrl | CreateInvoiceLink | RefundStarPayment | GetSupportUser | GetBackgroundUrl | SearchBackground | SetDefaultBackground | DeleteDefaultBackground | GetInstalledBackgrounds | RemoveInstalledBackground | ResetInstalledBackgrounds | GetLocalizationTargetInfo | GetLanguagePackInfo | GetLanguagePackStrings | SynchronizeLanguagePack | AddCustomServerLanguagePack | SetCustomLanguagePack | EditCustomLanguagePackInfo | SetCustomLanguagePackString | DeleteLanguagePack | RegisterDevice | ProcessPushNotification | GetPushReceiverId | GetRecentlyVisitedTMeUrls | SetUserPrivacySettingRules | GetUserPrivacySettingRules | SetReadDatePrivacySettings | GetReadDatePrivacySettings | SetNewChatPrivacySettings | GetNewChatPrivacySettings | GetPaidMessageRevenue | AllowUnpaidMessagesFromUser | SetChatPaidMessageStarCount | CanSendMessageToUser | GetOption | SetOption | SetAccountTtl | GetAccountTtl | DeleteAccount | SetDefaultMessageAutoDeleteTime | GetDefaultMessageAutoDeleteTime | RemoveChatActionBar | ReportChat | ReportChatPhoto | ReportMessageReactions | GetChatRevenueStatistics | GetChatRevenueWithdrawalUrl | GetChatRevenueTransactions | GetStarRevenueStatistics | GetStarWithdrawalUrl | GetStarAdAccountUrl | GetChatStatistics | GetMessageStatistics | GetMessagePublicForwards | GetStoryStatistics | GetStatisticalGraph | GetStorageStatistics | GetStorageStatisticsFast | GetDatabaseStatistics | OptimizeStorage | SetNetworkType | GetNetworkStatistics | AddNetworkStatistics | ResetNetworkStatistics | GetAutoDownloadSettingsPresets | SetAutoDownloadSettings | GetAutosaveSettings | SetAutosaveSettings | ClearAutosaveSettingsExceptions | GetBankCardInfo | GetPassportElement | GetAllPassportElements | SetPassportElement | DeletePassportElement | SetPassportElementErrors | GetPreferredCountryLanguage | SendEmailAddressVerificationCode | ResendEmailAddressVerificationCode | CheckEmailAddressVerificationCode | GetPassportAuthorizationForm | GetPassportAuthorizationFormAvailableElements | SendPassportAuthorizationForm | SetBotUpdatesStatus | UploadStickerFile | GetSuggestedStickerSetName | CheckStickerSetName | CreateNewStickerSet | AddStickerToSet | ReplaceStickerInSet | SetStickerSetThumbnail | SetCustomEmojiStickerSetThumbnail | SetStickerSetTitle | DeleteStickerSet | SetStickerPositionInSet | RemoveStickerFromSet | SetStickerEmojis | SetStickerKeywords | SetStickerMaskPosition | GetOwnedStickerSets | GetMapThumbnailFile | GetPremiumLimit | GetPremiumFeatures | GetPremiumStickerExamples | GetPremiumInfoSticker | ViewPremiumFeature | ClickPremiumSubscriptionButton | GetPremiumState | GetPremiumGiftPaymentOptions | GetPremiumGiveawayPaymentOptions | CheckPremiumGiftCode | ApplyPremiumGiftCode | LaunchPrepaidGiveaway | GetGiveawayInfo | GetStarPaymentOptions | GetStarGiftPaymentOptions | GetStarGiveawayPaymentOptions | GetStarTransactions | GetStarSubscriptions | CanPurchaseFromStore | AssignAppStoreTransaction | AssignGooglePlayTransaction | EditStarSubscription | EditUserStarSubscription | ReuseStarSubscription | SetChatAffiliateProgram | SearchChatAffiliateProgram | SearchAffiliatePrograms | ConnectAffiliateProgram | DisconnectAffiliateProgram | GetConnectedAffiliateProgram | GetConnectedAffiliatePrograms | GetBusinessFeatures | AcceptTermsOfService | SearchStringsByPrefix | SendCustomRequest | AnswerCustomQuery | SetAlarm | GetCountries | GetCountryCode | GetPhoneNumberInfo | GetPhoneNumberInfoSync | GetCollectibleItemInfo | GetDeepLinkInfo | GetAppConfig | SaveAppLogEvent | GetAppDownloadLink | AddProxy | EditProxy | EnableProxy | DisableProxy | RemoveProxy | GetProxies | GetProxyLink | PingProxy | SetLogStream | GetLogStream | SetLogVerbosityLevel | GetLogVerbosityLevel | GetLogTags | SetLogTagVerbosityLevel | GetLogTagVerbosityLevel | AddLogMessage | GetUserSupportInfo | SetUserSupportInfo | GetSupportName | TestCallEmpty | TestCallString | TestCallBytes | TestCallVectorInt | TestCallVectorIntObject | TestCallVectorString | TestCallVectorStringObject | TestSquareInt | TestNetwork | TestProxy | TestGetDifference | TestUseUpdate | TestReturnError;
export declare abstract class Tdjson {
    /**
Returns the current authorization state; this is an offline request. For informational purposes only. Use
updateAuthorizationState instead to maintain the current authorization state. Can be called before initialization.
*/
    getAuthorizationState(): Promise<AuthorizationState>;
    /**
Sets the parameters for TDLib initialization. Works only when the current authorization state is
authorizationStateWaitTdlibParameters.
*/
    setTdlibParameters(options: Omit<SetTdlibParameters, '@type'>): Promise<Ok>;
    /**
Sets the phone number of the user and sends an authentication code to the user. Works only when the current
authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current
authorization state is authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode,
authorizationStateWaitRegistration, or authorizationStateWaitPassword.
*/
    setAuthenticationPhoneNumber(options: Omit<SetAuthenticationPhoneNumber, '@type'>): Promise<Ok>;
    /**
Sets the email address of the user and sends an authentication code to the email address. Works only when the current
authorization state is authorizationStateWaitEmailAddress.
*/
    setAuthenticationEmailAddress(options: Omit<SetAuthenticationEmailAddress, '@type'>): Promise<Ok>;
    /**
Resends an authentication code to the user. Works only when the current authorization state is
authorizationStateWaitCode, the next_code_type of the result is not null and the server-specified timeout has passed, or
when the current authorization state is authorizationStateWaitEmailCode.
*/
    resendAuthenticationCode(options: Omit<ResendAuthenticationCode, '@type'>): Promise<Ok>;
    /**
Checks the authentication of an email address. Works only when the current authorization state is
authorizationStateWaitEmailCode.
*/
    checkAuthenticationEmailCode(options: Omit<CheckAuthenticationEmailCode, '@type'>): Promise<Ok>;
    /**
Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode.
*/
    checkAuthenticationCode(options: Omit<CheckAuthenticationCode, '@type'>): Promise<Ok>;
    /**
Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current
authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current
authorization state is authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode,
authorizationStateWaitRegistration, or authorizationStateWaitPassword.
*/
    requestQrCodeAuthentication(options: Omit<RequestQrCodeAuthentication, '@type'>): Promise<Ok>;
    /**
Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration.
*/
    registerUser(options: Omit<RegisterUser, '@type'>): Promise<Ok>;
    /**
Resets the login email address. May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending.
Works only when the current authorization state is authorizationStateWaitEmailCode and
authorization_state.can_reset_email_address == true.
*/
    resetAuthenticationEmailAddress(): Promise<Ok>;
    /**
Checks the 2-step verification password for correctness. Works only when the current authorization state is
authorizationStateWaitPassword.
*/
    checkAuthenticationPassword(options: Omit<CheckAuthenticationPassword, '@type'>): Promise<Ok>;
    /**
Requests to send a 2-step verification password recovery code to an email address that was previously set up. Works only
when the current authorization state is authorizationStateWaitPassword.
*/
    requestAuthenticationPasswordRecovery(): Promise<Ok>;
    /**
Checks whether a 2-step verification password recovery code sent to an email address is valid. Works only when the
current authorization state is authorizationStateWaitPassword.
*/
    checkAuthenticationPasswordRecoveryCode(options: Omit<CheckAuthenticationPasswordRecoveryCode, '@type'>): Promise<Ok>;
    /**
Recovers the 2-step verification password with a password recovery code sent to an email address that was previously set
up. Works only when the current authorization state is authorizationStateWaitPassword.
*/
    recoverAuthenticationPassword(options: Omit<RecoverAuthenticationPassword, '@type'>): Promise<Ok>;
    /**
Sends Firebase Authentication SMS to the phone number of the user. Works only when the current authorization state is
authorizationStateWaitCode and the server returned code of the type authenticationCodeTypeFirebaseAndroid or
authenticationCodeTypeFirebaseIos.
*/
    sendAuthenticationFirebaseSms(options: Omit<SendAuthenticationFirebaseSms, '@type'>): Promise<Ok>;
    /**
Reports that authentication code wasn't delivered via SMS; for official mobile applications only. Works only when the
current authorization state is authorizationStateWaitCode.
*/
    reportAuthenticationCodeMissing(options: Omit<ReportAuthenticationCodeMissing, '@type'>): Promise<Ok>;
    /**
Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is
authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to
log in.
*/
    checkAuthenticationBotToken(options: Omit<CheckAuthenticationBotToken, '@type'>): Promise<Ok>;
    /**
Closes the TDLib instance after a proper logout. Requires an available network connection. All local data will be
destroyed. After the logout completes, updateAuthorizationState with authorizationStateClosed will be sent.
*/
    logOut(): Promise<Ok>;
    /**
Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes,
updateAuthorizationState with authorizationStateClosed will be sent. Can be called before initialization.
*/
    close(): Promise<Ok>;
    /**
Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in
the list of all active sessions. All local data will be destroyed. After the destruction completes
updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization.
*/
    destroy(): Promise<Ok>;
    /**
Confirms QR code authentication on another device. Returns created session on success.
*/
    confirmQrCodeAuthentication(options: Omit<ConfirmQrCodeAuthentication, '@type'>): Promise<Session>;
    /**
Returns all updates needed to restore current TDLib state, i.e. all actual
updateAuthorizationState/updateUser/updateNewChat and others. This is especially useful if TDLib is run in a separate
process. Can be called before initialization.
*/
    getCurrentState(): Promise<Updates>;
    /**
Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain.
*/
    setDatabaseEncryptionKey(options: Omit<SetDatabaseEncryptionKey, '@type'>): Promise<Ok>;
    /**
Returns the current state of 2-step verification.
*/
    getPasswordState(): Promise<PasswordState>;
    /**
Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the
change will not be applied until the new recovery email address is confirmed.
*/
    setPassword(options: Omit<SetPassword, '@type'>): Promise<PasswordState>;
    /**
Changes the login email address of the user. The email address can be changed only if the current user already has login
email and passwordState.login_email_address_pattern is non-empty. The change will not be applied until the new login
email address is confirmed with checkLoginEmailAddressCode. To use Apple ID/Google ID instead of an email address, call
checkLoginEmailAddressCode directly.
*/
    setLoginEmailAddress(options: Omit<SetLoginEmailAddress, '@type'>): Promise<EmailAddressAuthenticationCodeInfo>;
    /**
Resends the login email address verification code.
*/
    resendLoginEmailAddressCode(): Promise<EmailAddressAuthenticationCodeInfo>;
    /**
Checks the login email address authentication.
*/
    checkLoginEmailAddressCode(options: Omit<CheckLoginEmailAddressCode, '@type'>): Promise<Ok>;
    /**
Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a
password provided by the user.
*/
    getRecoveryEmailAddress(options: Omit<GetRecoveryEmailAddress, '@type'>): Promise<RecoveryEmailAddress>;
    /**
Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then
the change will not be applied until the new recovery email address is confirmed. If new_recovery_email_address is the
same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting
for an email confirmation.
*/
    setRecoveryEmailAddress(options: Omit<SetRecoveryEmailAddress, '@type'>): Promise<PasswordState>;
    /**
Checks the 2-step verification recovery email address verification code.
*/
    checkRecoveryEmailAddressCode(options: Omit<CheckRecoveryEmailAddressCode, '@type'>): Promise<PasswordState>;
    /**
Resends the 2-step verification recovery email address verification code.
*/
    resendRecoveryEmailAddressCode(): Promise<PasswordState>;
    /**
Cancels verification of the 2-step verification recovery email address.
*/
    cancelRecoveryEmailAddressVerification(): Promise<PasswordState>;
    /**
Requests to send a 2-step verification password recovery code to an email address that was previously set up.
*/
    requestPasswordRecovery(): Promise<EmailAddressAuthenticationCodeInfo>;
    /**
Checks whether a 2-step verification password recovery code sent to an email address is valid.
*/
    checkPasswordRecoveryCode(options: Omit<CheckPasswordRecoveryCode, '@type'>): Promise<Ok>;
    /**
Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up.
*/
    recoverPassword(options: Omit<RecoverPassword, '@type'>): Promise<PasswordState>;
    /**
Removes 2-step verification password without previous password and access to recovery email address. The password can't
be reset immediately and the request needs to be repeated after the specified time.
*/
    resetPassword(): Promise<ResetPasswordResult>;
    /**
Cancels reset of 2-step verification password. The method can be called if passwordState.pending_reset_date > 0.
*/
    cancelPasswordReset(): Promise<Ok>;
    /**
Creates a new temporary password for processing payments.
*/
    createTemporaryPassword(options: Omit<CreateTemporaryPassword, '@type'>): Promise<TemporaryPasswordState>;
    /**
Returns information about the current temporary password.
*/
    getTemporaryPasswordState(): Promise<TemporaryPasswordState>;
    /**
Returns the current user.
*/
    getMe(): Promise<User>;
    /**
Returns information about a user by their identifier. This is an offline request if the current user is not a bot.
*/
    getUser(options: Omit<GetUser, '@type'>): Promise<User>;
    /**
Returns full information about a user by their identifier.
*/
    getUserFullInfo(options: Omit<GetUserFullInfo, '@type'>): Promise<UserFullInfo>;
    /**
Returns information about a basic group by its identifier. This is an offline request if the current user is not a bot.
*/
    getBasicGroup(options: Omit<GetBasicGroup, '@type'>): Promise<BasicGroup>;
    /**
Returns full information about a basic group by its identifier.
*/
    getBasicGroupFullInfo(options: Omit<GetBasicGroupFullInfo, '@type'>): Promise<BasicGroupFullInfo>;
    /**
Returns information about a supergroup or a channel by its identifier. This is an offline request if the current user is
not a bot.
*/
    getSupergroup(options: Omit<GetSupergroup, '@type'>): Promise<Supergroup>;
    /**
Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute.
*/
    getSupergroupFullInfo(options: Omit<GetSupergroupFullInfo, '@type'>): Promise<SupergroupFullInfo>;
    /**
Returns information about a secret chat by its identifier. This is an offline request.
*/
    getSecretChat(options: Omit<GetSecretChat, '@type'>): Promise<SecretChat>;
    /**
Returns information about a chat by its identifier; this is an offline request if the current user is not a bot.
*/
    getChat(options: Omit<GetChat, '@type'>): Promise<Chat>;
    /**
Returns information about a message. Returns a 404 error if the message doesn't exist.
*/
    getMessage(options: Omit<GetMessage, '@type'>): Promise<Message>;
    /**
Returns information about a message, if it is available without sending network request. Returns a 404 error if message
isn't available locally. This is an offline request.
*/
    getMessageLocally(options: Omit<GetMessageLocally, '@type'>): Promise<Message>;
    /**
Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message,
the game message, the invoice message, the message with a previously set same background, the giveaway message, and the
topic creation message for messages of the types messagePinMessage, messageGameScore, messagePaymentSuccessful,
messageChatSetBackground, messageGiveawayCompleted and topic messages without non-bundled replied message respectively.
Returns a 404 error if the message doesn't exist.
*/
    getRepliedMessage(options: Omit<GetRepliedMessage, '@type'>): Promise<Message>;
    /**
Returns information about a newest pinned message in the chat. Returns a 404 error if the message doesn't exist.
*/
    getChatPinnedMessage(options: Omit<GetChatPinnedMessage, '@type'>): Promise<Message>;
    /**
Returns information about a message with the callback button that originated a callback query; for bots only.
*/
    getCallbackQueryMessage(options: Omit<GetCallbackQueryMessage, '@type'>): Promise<Message>;
    /**
Returns information about messages. If a message is not found, returns null on the corresponding position of the result.
*/
    getMessages(options: Omit<GetMessages, '@type'>): Promise<Messages>;
    /**
Returns properties of a message; this is an offline request.
*/
    getMessageProperties(options: Omit<GetMessageProperties, '@type'>): Promise<MessageProperties>;
    /**
Returns information about a message thread. Can be used only if messageProperties.can_get_message_thread == true.
*/
    getMessageThread(options: Omit<GetMessageThread, '@type'>): Promise<MessageThreadInfo>;
    /**
Returns read date of a recent outgoing message in a private chat. The method can be called if
messageProperties.can_get_read_date == true.
*/
    getMessageReadDate(options: Omit<GetMessageReadDate, '@type'>): Promise<MessageReadDate>;
    /**
Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only
users, opened content of the message, are returned. The method can be called if messageProperties.can_get_viewers ==
true.
*/
    getMessageViewers(options: Omit<GetMessageViewers, '@type'>): Promise<MessageViewers>;
    /**
Returns information about a file; this is an offline request.
*/
    getFile(options: Omit<GetFile, '@type'>): Promise<File>;
    /**
Returns information about a file by its remote identifier; this is an offline request. Can be used to register a URL as
a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is
still accessible to the user. For example, if the file is from a message, then the message must be not deleted and
accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded
by the application.
*/
    getRemoteFile(options: Omit<GetRemoteFile, '@type'>): Promise<File>;
    /**
Loads more chats from a chat list. The loaded chats and their positions in the chat list will be sent through updates.
Chats are sorted by the pair (chat.position.order, chat.id) in descending order. Returns a 404 error if all chats have
been loaded.
*/
    loadChats(options: Omit<LoadChats, '@type'>): Promise<Ok>;
    /**
Returns an ordered list of chats from the beginning of a chat list. For informational purposes only. Use loadChats and
updates processing instead to maintain chat lists in a consistent state.
*/
    getChats(options: Omit<GetChats, '@type'>): Promise<Chats>;
    /**
Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns
the chat if found; otherwise, an error is returned.
*/
    searchPublicChat(options: Omit<SearchPublicChat, '@type'>): Promise<Chat>;
    /**
Searches public chats by looking for specified query in their username and title. Currently, only private chats,
supergroups and channels can be public. Returns a meaningful number of results. Excludes private chats with contacts and
chats from the chat list from the results.
*/
    searchPublicChats(options: Omit<SearchPublicChats, '@type'>): Promise<Chats>;
    /**
Searches for the specified query in the title and username of already known chats; this is an offline request. Returns
chats in the order seen in the main chat list.
*/
    searchChats(options: Omit<SearchChats, '@type'>): Promise<Chats>;
    /**
Searches for the specified query in the title and username of already known chats via request to the server. Returns
chats in the order seen in the main chat list.
*/
    searchChatsOnServer(options: Omit<SearchChatsOnServer, '@type'>): Promise<Chats>;
    /**
Returns a list of channel chats recommended to the current user.
*/
    getRecommendedChats(): Promise<Chats>;
    /**
Returns a list of chats similar to the given chat.
*/
    getChatSimilarChats(options: Omit<GetChatSimilarChats, '@type'>): Promise<Chats>;
    /**
Returns approximate number of chats similar to the given chat.
*/
    getChatSimilarChatCount(options: Omit<GetChatSimilarChatCount, '@type'>): Promise<Count>;
    /**
Informs TDLib that a chat was opened from the list of similar chats. The method is independent of openChat and closeChat
methods.
*/
    openChatSimilarChat(options: Omit<OpenChatSimilarChat, '@type'>): Promise<Ok>;
    /**
Returns a list of bots similar to the given bot.
*/
    getBotSimilarBots(options: Omit<GetBotSimilarBots, '@type'>): Promise<Users>;
    /**
Returns approximate number of bots similar to the given bot.
*/
    getBotSimilarBotCount(options: Omit<GetBotSimilarBotCount, '@type'>): Promise<Count>;
    /**
Informs TDLib that a bot was opened from the list of similar bots.
*/
    openBotSimilarBot(options: Omit<OpenBotSimilarBot, '@type'>): Promise<Ok>;
    /**
Returns a list of frequently used chats.
*/
    getTopChats(options: Omit<GetTopChats, '@type'>): Promise<Chats>;
    /**
Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled.
*/
    removeTopChat(options: Omit<RemoveTopChat, '@type'>): Promise<Ok>;
    /**
Searches for the specified query in the title and username of up to 50 recently found chats; this is an offline request.
*/
    searchRecentlyFoundChats(options: Omit<SearchRecentlyFoundChats, '@type'>): Promise<Chats>;
    /**
Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already
in the list, it will be removed from the list first.
*/
    addRecentlyFoundChat(options: Omit<AddRecentlyFoundChat, '@type'>): Promise<Ok>;
    /**
Removes a chat from the list of recently found chats.
*/
    removeRecentlyFoundChat(options: Omit<RemoveRecentlyFoundChat, '@type'>): Promise<Ok>;
    /**
Clears the list of recently found chats.
*/
    clearRecentlyFoundChats(): Promise<Ok>;
    /**
Returns recently opened chats; this is an offline request. Returns chats in the order of last opening.
*/
    getRecentlyOpenedChats(options: Omit<GetRecentlyOpenedChats, '@type'>): Promise<Chats>;
    /**
Checks whether a username can be set for a chat.
*/
    checkChatUsername(options: Omit<CheckChatUsername, '@type'>): Promise<CheckChatUsernameResult>;
    /**
Returns a list of public chats of the specified type, owned by the user.
*/
    getCreatedPublicChats(options: Omit<GetCreatedPublicChats, '@type'>): Promise<Chats>;
    /**
Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was
reached. The limit can be increased with Telegram Premium.
*/
    checkCreatedPublicChatsLimit(options: Omit<CheckCreatedPublicChatsLimit, '@type'>): Promise<Ok>;
    /**
Returns a list of basic group and supergroup chats, which can be used as a discussion group for a channel. Returned
basic group chats must be first upgraded to supergroups before they can be set as a discussion group. To set a returned
supergroup as a discussion group, access to its old messages must be enabled using toggleSupergroupIsAllHistoryAvailable
first.
*/
    getSuitableDiscussionChats(): Promise<Chats>;
    /**
Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of
joined supergroups and channels and receives CHANNELS_TOO_MUCH error. Also, the limit can be increased with Telegram
Premium.
*/
    getInactiveSupergroupChats(): Promise<Chats>;
    /**
Returns a list of channel chats, which can be used as a personal chat.
*/
    getSuitablePersonalChats(): Promise<Chats>;
    /**
Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by
their topic.order in descending order. Returns a 404 error if all topics have been loaded.
*/
    loadSavedMessagesTopics(options: Omit<LoadSavedMessagesTopics, '@type'>): Promise<Ok>;
    /**
Returns messages in a Saved Messages topic. The messages are returned in reverse chronological order (i.e., in order of
decreasing message_id).
*/
    getSavedMessagesTopicHistory(options: Omit<GetSavedMessagesTopicHistory, '@type'>): Promise<Messages>;
    /**
Returns the last message sent in a Saved Messages topic no later than the specified date.
*/
    getSavedMessagesTopicMessageByDate(options: Omit<GetSavedMessagesTopicMessageByDate, '@type'>): Promise<Message>;
    /**
Deletes all messages in a Saved Messages topic.
*/
    deleteSavedMessagesTopicHistory(options: Omit<DeleteSavedMessagesTopicHistory, '@type'>): Promise<Ok>;
    /**
Deletes all messages between the specified dates in a Saved Messages topic. Messages sent in the last 30 seconds will
not be deleted.
*/
    deleteSavedMessagesTopicMessagesByDate(options: Omit<DeleteSavedMessagesTopicMessagesByDate, '@type'>): Promise<Ok>;
    /**
Changes the pinned state of a Saved Messages topic. There can be up to
getOption("pinned_saved_messages_topic_count_max") pinned topics. The limit can be increased with Telegram Premium.
*/
    toggleSavedMessagesTopicIsPinned(options: Omit<ToggleSavedMessagesTopicIsPinned, '@type'>): Promise<Ok>;
    /**
Changes the order of pinned Saved Messages topics.
*/
    setPinnedSavedMessagesTopics(options: Omit<SetPinnedSavedMessagesTopics, '@type'>): Promise<Ok>;
    /**
Returns a list of common group chats with a given user. Chats are sorted by their type and creation date.
*/
    getGroupsInCommon(options: Omit<GetGroupsInCommon, '@type'>): Promise<Chats>;
    /**
Returns messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing
message_id). For optimal performance, the number of returned messages is chosen by TDLib. This is an offline request if
only_local is true.
*/
    getChatHistory(options: Omit<GetChatHistory, '@type'>): Promise<Messages>;
    /**
Returns messages in a message thread of a message. Can be used only if messageProperties.can_get_message_thread == true.
Message thread of a channel message is in the channel's linked supergroup. The messages are returned in reverse
chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages
is chosen by TDLib.
*/
    getMessageThreadHistory(options: Omit<GetMessageThreadHistory, '@type'>): Promise<Messages>;
    /**
Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to
find whether and how the method can be applied to the chat.
*/
    deleteChatHistory(options: Omit<DeleteChatHistory, '@type'>): Promise<Ok>;
    /**
Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release
the usernames and remove all members. Use the field chat.can_be_deleted_for_all_users to find whether the method can be
applied to the chat.
*/
    deleteChat(options: Omit<DeleteChat, '@type'>): Promise<Ok>;
    /**
Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of
decreasing message_id. Cannot be used in secret chats with a non-empty query (searchSecretMessages must be used
instead), or without an enabled message database. For optimal performance, the number of returned messages is chosen by
TDLib and can be smaller than the specified limit. A combination of query, sender_id, filter and message_thread_id
search criteria is expected to be supported, only if it is required for Telegram official application implementation.
*/
    searchChatMessages(options: Omit<SearchChatMessages, '@type'>): Promise<FoundChatMessages>;
    /**
Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in
order of decreasing (date, chat_id, message_id)). For optimal performance, the number of returned messages is chosen by
TDLib and can be smaller than the specified limit.
*/
    searchMessages(options: Omit<SearchMessages, '@type'>): Promise<FoundMessages>;
    /**
Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance, the
number of returned messages is chosen by TDLib.
*/
    searchSecretMessages(options: Omit<SearchSecretMessages, '@type'>): Promise<FoundMessages>;
    /**
Searches for messages tagged by the given reaction and with the given words in the Saved Messages chat; for Telegram
Premium users only. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. For
optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit.
*/
    searchSavedMessages(options: Omit<SearchSavedMessages, '@type'>): Promise<FoundChatMessages>;
    /**
Searches for call messages. Returns the results in reverse chronological order (i.e., in order of decreasing
message_id). For optimal performance, the number of returned messages is chosen by TDLib.
*/
    searchCallMessages(options: Omit<SearchCallMessages, '@type'>): Promise<FoundMessages>;
    /**
Searches for outgoing messages with content of the type messageDocument in all chats except secret chats. Returns the
results in reverse chronological order.
*/
    searchOutgoingDocumentMessages(options: Omit<SearchOutgoingDocumentMessages, '@type'>): Promise<FoundMessages>;
    /**
Searches for public channel posts containing the given hashtag or cashtag. For optimal performance, the number of
returned messages is chosen by TDLib and can be smaller than the specified limit.
*/
    searchPublicMessagesByTag(options: Omit<SearchPublicMessagesByTag, '@type'>): Promise<FoundMessages>;
    /**
Searches for public stories containing the given hashtag or cashtag. For optimal performance, the number of returned
stories is chosen by TDLib and can be smaller than the specified limit.
*/
    searchPublicStoriesByTag(options: Omit<SearchPublicStoriesByTag, '@type'>): Promise<FoundStories>;
    /**
Searches for public stories by the given address location. For optimal performance, the number of returned stories is
chosen by TDLib and can be smaller than the specified limit.
*/
    searchPublicStoriesByLocation(options: Omit<SearchPublicStoriesByLocation, '@type'>): Promise<FoundStories>;
    /**
Searches for public stories from the given venue. For optimal performance, the number of returned stories is chosen by
TDLib and can be smaller than the specified limit.
*/
    searchPublicStoriesByVenue(options: Omit<SearchPublicStoriesByVenue, '@type'>): Promise<FoundStories>;
    /**
Returns recently searched for hashtags or cashtags by their prefix.
*/
    getSearchedForTags(options: Omit<GetSearchedForTags, '@type'>): Promise<Hashtags>;
    /**
Removes a hashtag or a cashtag from the list of recently searched for hashtags or cashtags.
*/
    removeSearchedForTag(options: Omit<RemoveSearchedForTag, '@type'>): Promise<Ok>;
    /**
Clears the list of recently searched for hashtags or cashtags.
*/
    clearSearchedForTags(options: Omit<ClearSearchedForTags, '@type'>): Promise<Ok>;
    /**
Deletes all call messages.
*/
    deleteAllCallMessages(options: Omit<DeleteAllCallMessages, '@type'>): Promise<Ok>;
    /**
Returns information about the recent locations of chat members that were sent to the chat. Returns up to 1 location
message per user.
*/
    searchChatRecentLocationMessages(options: Omit<SearchChatRecentLocationMessages, '@type'>): Promise<Messages>;
    /**
Returns the last message sent in a chat no later than the specified date. Returns a 404 error if such message doesn't
exist.
*/
    getChatMessageByDate(options: Omit<GetChatMessageByDate, '@type'>): Promise<Message>;
    /**
Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll
implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). Cannot be
used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database.
*/
    getChatSparseMessagePositions(options: Omit<GetChatSparseMessagePositions, '@type'>): Promise<MessagePositions>;
    /**
Returns information about the next messages of the specified type in the chat split by days. Returns the results in
reverse chronological order. Can return partial result for the last returned day. Behavior of this method depends on the
value of the option "utc_time_offset".
*/
    getChatMessageCalendar(options: Omit<GetChatMessageCalendar, '@type'>): Promise<MessageCalendar>;
    /**
Returns approximate number of messages of the specified type in the chat.
*/
    getChatMessageCount(options: Omit<GetChatMessageCount, '@type'>): Promise<Count>;
    /**
Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the
chat. Cannot be used in secret chats.
*/
    getChatMessagePosition(options: Omit<GetChatMessagePosition, '@type'>): Promise<Count>;
    /**
Returns all scheduled messages in a chat. The messages are returned in reverse chronological order (i.e., in order of
decreasing message_id).
*/
    getChatScheduledMessages(options: Omit<GetChatScheduledMessages, '@type'>): Promise<Messages>;
    /**
Returns sponsored messages to be shown in a chat; for channel chats and chats with bots only.
*/
    getChatSponsoredMessages(options: Omit<GetChatSponsoredMessages, '@type'>): Promise<SponsoredMessages>;
    /**
Informs TDLib that the user opened the sponsored chat via the button, the name, the chat photo, a mention in the
sponsored message text, or the media in the sponsored message.
*/
    clickChatSponsoredMessage(options: Omit<ClickChatSponsoredMessage, '@type'>): Promise<Ok>;
    /**
Reports a sponsored message to Telegram moderators.
*/
    reportChatSponsoredMessage(options: Omit<ReportChatSponsoredMessage, '@type'>): Promise<ReportChatSponsoredMessageResult>;
    /**
Removes an active notification from notification list. Needs to be called only if the notification is removed by the
current user.
*/
    removeNotification(options: Omit<RemoveNotification, '@type'>): Promise<Ok>;
    /**
Removes a group of active notifications. Needs to be called only if the notification group is removed by the current
user.
*/
    removeNotificationGroup(options: Omit<RemoveNotificationGroup, '@type'>): Promise<Ok>;
    /**
Returns an HTTPS link to a message in a chat. Available only if messageProperties.can_get_link, or if
messageProperties.can_get_media_timestamp_links and a media timestamp link is generated. This is an offline request.
*/
    getMessageLink(options: Omit<GetMessageLink, '@type'>): Promise<MessageLink>;
    /**
Returns an HTML code for embedding the message. Available only if messageProperties.can_get_embedding_code.
*/
    getMessageEmbeddingCode(options: Omit<GetMessageEmbeddingCode, '@type'>): Promise<Text>;
    /**
Returns information about a public or private message link. Can be called for any internal link of the type
internalLinkTypeMessage.
*/
    getMessageLinkInfo(options: Omit<GetMessageLinkInfo, '@type'>): Promise<MessageLinkInfo>;
    /**
Translates a text to the given language. If the current user is a Telegram Premium user, then text formatting is
preserved.
*/
    translateText(options: Omit<TranslateText, '@type'>): Promise<FormattedText>;
    /**
Extracts text or caption of the given message and translates it to the given language. If the current user is a Telegram
Premium user, then text formatting is preserved.
*/
    translateMessageText(options: Omit<TranslateMessageText, '@type'>): Promise<FormattedText>;
    /**
Recognizes speech in a video note or a voice note message.
*/
    recognizeSpeech(options: Omit<RecognizeSpeech, '@type'>): Promise<Ok>;
    /**
Rates recognized speech in a video note or a voice note message.
*/
    rateSpeechRecognition(options: Omit<RateSpeechRecognition, '@type'>): Promise<Ok>;
    /**
Returns the list of message sender identifiers, which can be used to send messages in a chat.
*/
    getChatAvailableMessageSenders(options: Omit<GetChatAvailableMessageSenders, '@type'>): Promise<ChatMessageSenders>;
    /**
Selects a message sender to send messages in a chat.
*/
    setChatMessageSender(options: Omit<SetChatMessageSender, '@type'>): Promise<Ok>;
    /**
Sends a message. Returns the sent message.
*/
    sendMessage(options: Omit<SendMessage, '@type'>): Promise<Message>;
    /**
Sends 2-10 messages grouped together into an album. Currently, only audio, document, photo and video messages can be
grouped into an album. Documents and audio files can be only grouped in an album with messages of the same type. Returns
sent messages.
*/
    sendMessageAlbum(options: Omit<SendMessageAlbum, '@type'>): Promise<Messages>;
    /**
Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires can_invite_users member
right. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels
(although they can be added as admins) and secret chats. Returns the sent message.
*/
    sendBotStartMessage(options: Omit<SendBotStartMessage, '@type'>): Promise<Message>;
    /**
Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message.
*/
    sendInlineQueryResultMessage(options: Omit<SendInlineQueryResultMessage, '@type'>): Promise<Message>;
    /**
Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in
message_ids. If a message can't be forwarded, null will be returned instead of the message.
*/
    forwardMessages(options: Omit<ForwardMessages, '@type'>): Promise<Messages>;
    /**
Sends messages from a quick reply shortcut. Requires Telegram Business subscription. Can't be used to send paid
messages.
*/
    sendQuickReplyShortcutMessages(options: Omit<SendQuickReplyShortcutMessages, '@type'>): Promise<Messages>;
    /**
Resends messages which failed to send. Can be called only for messages for which messageSendingStateFailed.can_retry is
true and after specified in messageSendingStateFailed.retry_after time passed. If a message is re-sent, the
corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers
passed in message_ids. If a message can't be re-sent, null will be returned instead of the message.
*/
    resendMessages(options: Omit<ResendMessages, '@type'>): Promise<Messages>;
    /**
Adds a local message to a chat. The message is persistent across application restarts only if the message database is
used. Returns the added message.
*/
    addLocalMessage(options: Omit<AddLocalMessage, '@type'>): Promise<Message>;
    /**
Deletes messages.
*/
    deleteMessages(options: Omit<DeleteMessages, '@type'>): Promise<Ok>;
    /**
Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires
can_delete_messages administrator right.
*/
    deleteChatMessagesBySender(options: Omit<DeleteChatMessagesBySender, '@type'>): Promise<Ok>;
    /**
Deletes all messages between the specified dates in a chat. Supported only for private chats and basic groups. Messages
sent in the last 30 seconds will not be deleted.
*/
    deleteChatMessagesByDate(options: Omit<DeleteChatMessagesByDate, '@type'>): Promise<Ok>;
    /**
Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the
server side.
*/
    editMessageText(options: Omit<EditMessageText, '@type'>): Promise<Message>;
    /**
Edits the message content of a live location. Messages can be edited for a limited period of time specified in the live
location. Returns the edited message after the edit is completed on the server side.
*/
    editMessageLiveLocation(options: Omit<EditMessageLiveLocation, '@type'>): Promise<Message>;
    /**
Edits the media content of a message, including message caption. If only the caption needs to be edited, use
editMessageCaption instead. The type of message content in an album can't be changed with exception of replacing a photo
with a video or vice versa. Returns the edited message after the edit is completed on the server side.
*/
    editMessageMedia(options: Omit<EditMessageMedia, '@type'>): Promise<Message>;
    /**
Edits the message content caption. Returns the edited message after the edit is completed on the server side.
*/
    editMessageCaption(options: Omit<EditMessageCaption, '@type'>): Promise<Message>;
    /**
Edits the message reply markup; for bots only. Returns the edited message after the edit is completed on the server
side.
*/
    editMessageReplyMarkup(options: Omit<EditMessageReplyMarkup, '@type'>): Promise<Message>;
    /**
Edits the text of an inline text or game message sent via a bot; for bots only.
*/
    editInlineMessageText(options: Omit<EditInlineMessageText, '@type'>): Promise<Ok>;
    /**
Edits the content of a live location in an inline message sent via a bot; for bots only.
*/
    editInlineMessageLiveLocation(options: Omit<EditInlineMessageLiveLocation, '@type'>): Promise<Ok>;
    /**
Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in an inline
message sent via a bot; for bots only.
*/
    editInlineMessageMedia(options: Omit<EditInlineMessageMedia, '@type'>): Promise<Ok>;
    /**
Edits the caption of an inline message sent via a bot; for bots only.
*/
    editInlineMessageCaption(options: Omit<EditInlineMessageCaption, '@type'>): Promise<Ok>;
    /**
Edits the reply markup of an inline message sent via a bot; for bots only.
*/
    editInlineMessageReplyMarkup(options: Omit<EditInlineMessageReplyMarkup, '@type'>): Promise<Ok>;
    /**
Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded
together with the message will be also changed.
*/
    editMessageSchedulingState(options: Omit<EditMessageSchedulingState, '@type'>): Promise<Ok>;
    /**
Changes the fact-check of a message. Can be only used if messageProperties.can_set_fact_check == true.
*/
    setMessageFactCheck(options: Omit<SetMessageFactCheck, '@type'>): Promise<Ok>;
    /**
Sends a message on behalf of a business account; for bots only. Returns the message after it was sent.
*/
    sendBusinessMessage(options: Omit<SendBusinessMessage, '@type'>): Promise<BusinessMessage>;
    /**
Sends 2-10 messages grouped together into an album on behalf of a business account; for bots only. Currently, only
audio, document, photo and video messages can be grouped into an album. Documents and audio files can be only grouped in
an album with messages of the same type. Returns sent messages.
*/
    sendBusinessMessageAlbum(options: Omit<SendBusinessMessageAlbum, '@type'>): Promise<BusinessMessages>;
    /**
Edits the text of a text or game message sent on behalf of a business account; for bots only.
*/
    editBusinessMessageText(options: Omit<EditBusinessMessageText, '@type'>): Promise<BusinessMessage>;
    /**
Edits the content of a live location in a message sent on behalf of a business account; for bots only.
*/
    editBusinessMessageLiveLocation(options: Omit<EditBusinessMessageLiveLocation, '@type'>): Promise<BusinessMessage>;
    /**
Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in a message
sent on behalf of a business account; for bots only.
*/
    editBusinessMessageMedia(options: Omit<EditBusinessMessageMedia, '@type'>): Promise<BusinessMessage>;
    /**
Edits the caption of a message sent on behalf of a business account; for bots only.
*/
    editBusinessMessageCaption(options: Omit<EditBusinessMessageCaption, '@type'>): Promise<BusinessMessage>;
    /**
Edits the reply markup of a message sent on behalf of a business account; for bots only.
*/
    editBusinessMessageReplyMarkup(options: Omit<EditBusinessMessageReplyMarkup, '@type'>): Promise<BusinessMessage>;
    /**
Stops a poll sent on behalf of a business account; for bots only.
*/
    stopBusinessPoll(options: Omit<StopBusinessPoll, '@type'>): Promise<BusinessMessage>;
    /**
Pins or unpins a message sent on behalf of a business account; for bots only.
*/
    setBusinessMessageIsPinned(options: Omit<SetBusinessMessageIsPinned, '@type'>): Promise<Ok>;
    /**
Checks validness of a name for a quick reply shortcut. Can be called synchronously.
*/
    checkQuickReplyShortcutName(options: Omit<CheckQuickReplyShortcutName, '@type'>): Promise<Ok>;
    /**
Loads quick reply shortcuts created by the current user. The loaded data will be sent through updateQuickReplyShortcut
and updateQuickReplyShortcuts.
*/
    loadQuickReplyShortcuts(): Promise<Ok>;
    /**
Changes name of a quick reply shortcut.
*/
    setQuickReplyShortcutName(options: Omit<SetQuickReplyShortcutName, '@type'>): Promise<Ok>;
    /**
Deletes a quick reply shortcut.
*/
    deleteQuickReplyShortcut(options: Omit<DeleteQuickReplyShortcut, '@type'>): Promise<Ok>;
    /**
Changes the order of quick reply shortcuts.
*/
    reorderQuickReplyShortcuts(options: Omit<ReorderQuickReplyShortcuts, '@type'>): Promise<Ok>;
    /**
Loads quick reply messages that can be sent by a given quick reply shortcut. The loaded messages will be sent through
updateQuickReplyShortcutMessages.
*/
    loadQuickReplyShortcutMessages(options: Omit<LoadQuickReplyShortcutMessages, '@type'>): Promise<Ok>;
    /**
Deletes specified quick reply messages.
*/
    deleteQuickReplyShortcutMessages(options: Omit<DeleteQuickReplyShortcutMessages, '@type'>): Promise<Ok>;
    /**
Adds a message to a quick reply shortcut. If shortcut doesn't exist and there are less than
getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. The shortcut must not contain
more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added
message.
*/
    addQuickReplyShortcutMessage(options: Omit<AddQuickReplyShortcutMessage, '@type'>): Promise<QuickReplyMessage>;
    /**
Adds a message to a quick reply shortcut via inline bot. If shortcut doesn't exist and there are less than
getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. The shortcut must not contain
more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added
message.
*/
    addQuickReplyShortcutInlineQueryResultMessage(options: Omit<AddQuickReplyShortcutInlineQueryResultMessage, '@type'>): Promise<QuickReplyMessage>;
    /**
Adds 2-10 messages grouped together into an album to a quick reply shortcut. Currently, only audio, document, photo and
video messages can be grouped into an album. Documents and audio files can be only grouped in an album with messages of
the same type. Returns sent messages.
*/
    addQuickReplyShortcutMessageAlbum(options: Omit<AddQuickReplyShortcutMessageAlbum, '@type'>): Promise<QuickReplyMessages>;
    /**
Readds quick reply messages which failed to add. Can be called only for messages for which
messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. If
a message is readded, the corresponding failed to send message is deleted. Returns the sent messages in the same order
as the message identifiers passed in message_ids. If a message can't be readded, null will be returned instead of the
message.
*/
    readdQuickReplyShortcutMessages(options: Omit<ReaddQuickReplyShortcutMessages, '@type'>): Promise<QuickReplyMessages>;
    /**
Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.can_be_edited to check
whether a message can be edited. Media message can be edited only to a media message. The type of message content in an
album can't be changed with exception of replacing a photo with a video or vice versa.
*/
    editQuickReplyMessage(options: Omit<EditQuickReplyMessage, '@type'>): Promise<Ok>;
    /**
Returns the list of custom emoji, which can be used as forum topic icon by all users.
*/
    getForumTopicDefaultIcons(): Promise<Stickers>;
    /**
Creates a topic in a forum supergroup chat; requires can_manage_topics administrator or can_create_topics member right
in the supergroup.
*/
    createForumTopic(options: Omit<CreateForumTopic, '@type'>): Promise<ForumTopicInfo>;
    /**
Edits title and icon of a topic in a forum supergroup chat; requires can_manage_topics right in the supergroup unless
the user is creator of the topic.
*/
    editForumTopic(options: Omit<EditForumTopic, '@type'>): Promise<Ok>;
    /**
Returns information about a forum topic.
*/
    getForumTopic(options: Omit<GetForumTopic, '@type'>): Promise<ForumTopic>;
    /**
Returns an HTTPS link to a topic in a forum chat. This is an offline request.
*/
    getForumTopicLink(options: Omit<GetForumTopicLink, '@type'>): Promise<MessageLink>;
    /**
Returns found forum topics in a forum chat. This is a temporary method for getting information about topic list from the
server.
*/
    getForumTopics(options: Omit<GetForumTopics, '@type'>): Promise<ForumTopics>;
    /**
Changes the notification settings of a forum topic.
*/
    setForumTopicNotificationSettings(options: Omit<SetForumTopicNotificationSettings, '@type'>): Promise<Ok>;
    /**
Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics right in the supergroup unless
the user is creator of the topic.
*/
    toggleForumTopicIsClosed(options: Omit<ToggleForumTopicIsClosed, '@type'>): Promise<Ok>;
    /**
Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics right in the
supergroup.
*/
    toggleGeneralForumTopicIsHidden(options: Omit<ToggleGeneralForumTopicIsHidden, '@type'>): Promise<Ok>;
    /**
Changes the pinned state of a forum topic; requires can_manage_topics right in the supergroup. There can be up to
getOption("pinned_forum_topic_count_max") pinned forum topics.
*/
    toggleForumTopicIsPinned(options: Omit<ToggleForumTopicIsPinned, '@type'>): Promise<Ok>;
    /**
Changes the order of pinned forum topics; requires can_manage_topics right in the supergroup.
*/
    setPinnedForumTopics(options: Omit<SetPinnedForumTopics, '@type'>): Promise<Ok>;
    /**
Deletes all messages in a forum topic; requires can_delete_messages administrator right in the supergroup unless the
user is creator of the topic, the topic has no messages from other users and has at most 11 messages.
*/
    deleteForumTopic(options: Omit<DeleteForumTopic, '@type'>): Promise<Ok>;
    /**
Returns information about an emoji reaction. Returns a 404 error if the reaction is not found.
*/
    getEmojiReaction(options: Omit<GetEmojiReaction, '@type'>): Promise<EmojiReaction>;
    /**
Returns TGS stickers with generic animations for custom emoji reactions.
*/
    getCustomEmojiReactionAnimations(): Promise<Stickers>;
    /**
Returns reactions, which can be added to a message. The list can change after updateActiveEmojiReactions,
updateChatAvailableReactions for the chat, or updateMessageInteractionInfo for the message.
*/
    getMessageAvailableReactions(options: Omit<GetMessageAvailableReactions, '@type'>): Promise<AvailableReactions>;
    /**
Clears the list of recently used reactions.
*/
    clearRecentReactions(): Promise<Ok>;
    /**
Adds a reaction or a tag to a message. Use getMessageAvailableReactions to receive the list of available reactions for
the message.
*/
    addMessageReaction(options: Omit<AddMessageReaction, '@type'>): Promise<Ok>;
    /**
Removes a reaction from a message. A chosen reaction can always be removed.
*/
    removeMessageReaction(options: Omit<RemoveMessageReaction, '@type'>): Promise<Ok>;
    /**
Returns the list of message sender identifiers, which can be used to send a paid reaction in a chat.
*/
    getChatAvailablePaidMessageReactionSenders(options: Omit<GetChatAvailablePaidMessageReactionSenders, '@type'>): Promise<MessageSenders>;
    /**
Adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available
for the message.
*/
    addPendingPaidMessageReaction(options: Omit<AddPendingPaidMessageReaction, '@type'>): Promise<Ok>;
    /**
Applies all pending paid reactions on a message.
*/
    commitPendingPaidMessageReactions(options: Omit<CommitPendingPaidMessageReactions, '@type'>): Promise<Ok>;
    /**
Removes all pending paid reactions on a message.
*/
    removePendingPaidMessageReactions(options: Omit<RemovePendingPaidMessageReactions, '@type'>): Promise<Ok>;
    /**
Changes type of paid message reaction of the current user on a message. The message must have paid reaction added by the
current user.
*/
    setPaidMessageReactionType(options: Omit<SetPaidMessageReactionType, '@type'>): Promise<Ok>;
    /**
Sets reactions on a message; for bots only.
*/
    setMessageReactions(options: Omit<SetMessageReactions, '@type'>): Promise<Ok>;
    /**
Returns reactions added for a message, along with their sender.
*/
    getMessageAddedReactions(options: Omit<GetMessageAddedReactions, '@type'>): Promise<AddedReactions>;
    /**
Changes type of default reaction for the current user.
*/
    setDefaultReactionType(options: Omit<SetDefaultReactionType, '@type'>): Promise<Ok>;
    /**
Returns tags used in Saved Messages or a Saved Messages topic.
*/
    getSavedMessagesTags(options: Omit<GetSavedMessagesTags, '@type'>): Promise<SavedMessagesTags>;
    /**
Changes label of a Saved Messages tag; for Telegram Premium users only.
*/
    setSavedMessagesTagLabel(options: Omit<SetSavedMessagesTagLabel, '@type'>): Promise<Ok>;
    /**
Returns information about a message effect. Returns a 404 error if the effect is not found.
*/
    getMessageEffect(options: Omit<GetMessageEffect, '@type'>): Promise<MessageEffect>;
    /**
Searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if
the quote is not found. Can be called synchronously.
*/
    searchQuote(options: Omit<SearchQuote, '@type'>): Promise<FoundPosition>;
    /**
Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, URLs, and email addresses) found in
the text. Can be called synchronously.
*/
    getTextEntities(options: Omit<GetTextEntities, '@type'>): Promise<TextEntities>;
    /**
Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre,
PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously.
*/
    parseTextEntities(options: Omit<ParseTextEntities, '@type'>): Promise<FormattedText>;
    /**
Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously.
*/
    parseMarkdown(options: Omit<ParseMarkdown, '@type'>): Promise<FormattedText>;
    /**
Replaces text entities with Markdown formatting in a human-friendly format. Entities that can't be represented in
Markdown unambiguously are kept as is. Can be called synchronously.
*/
    getMarkdownText(options: Omit<GetMarkdownText, '@type'>): Promise<FormattedText>;
    /**
Returns an emoji for the given country. Returns an empty string on failure. Can be called synchronously.
*/
    getCountryFlagEmoji(options: Omit<GetCountryFlagEmoji, '@type'>): Promise<Text>;
    /**
Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called
synchronously.
*/
    getFileMimeType(options: Omit<GetFileMimeType, '@type'>): Promise<Text>;
    /**
Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called
synchronously.
*/
    getFileExtension(options: Omit<GetFileExtension, '@type'>): Promise<Text>;
    /**
Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called
synchronously.
*/
    cleanFileName(options: Omit<CleanFileName, '@type'>): Promise<Text>;
    /**
Returns a string stored in the local database from the specified localization target and language pack by its key.
Returns a 404 error if the string is not found. Can be called synchronously.
*/
    getLanguagePackString(options: Omit<GetLanguagePackString, '@type'>): Promise<LanguagePackStringValue>;
    /**
Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously.
*/
    getJsonValue(options: Omit<GetJsonValue, '@type'>): Promise<JsonValue>;
    /**
Converts a JsonValue object to corresponding JSON-serialized string. Can be called synchronously.
*/
    getJsonString(options: Omit<GetJsonString, '@type'>): Promise<Text>;
    /**
Converts a themeParameters object to corresponding JSON-serialized string. Can be called synchronously.
*/
    getThemeParametersJsonString(options: Omit<GetThemeParametersJsonString, '@type'>): Promise<Text>;
    /**
Changes the user answer to a poll. A poll in quiz mode can be answered only once.
*/
    setPollAnswer(options: Omit<SetPollAnswer, '@type'>): Promise<Ok>;
    /**
Returns message senders voted for the specified option in a non-anonymous polls. For optimal performance, the number of
returned users is chosen by TDLib.
*/
    getPollVoters(options: Omit<GetPollVoters, '@type'>): Promise<MessageSenders>;
    /**
Stops a poll.
*/
    stopPoll(options: Omit<StopPoll, '@type'>): Promise<Ok>;
    /**
Hides a suggested action.
*/
    hideSuggestedAction(options: Omit<HideSuggestedAction, '@type'>): Promise<Ok>;
    /**
Hides the list of contacts that have close birthdays for 24 hours.
*/
    hideContactCloseBirthdays(): Promise<Ok>;
    /**
Returns information about a business connection by its identifier; for bots only.
*/
    getBusinessConnection(options: Omit<GetBusinessConnection, '@type'>): Promise<BusinessConnection>;
    /**
Returns information about a button of type inlineKeyboardButtonTypeLoginUrl. The method needs to be called when the user
presses the button.
*/
    getLoginUrlInfo(options: Omit<GetLoginUrlInfo, '@type'>): Promise<LoginUrlInfo>;
    /**
Returns an HTTP URL which can be used to automatically authorize the user on a website after clicking an inline button
of type inlineKeyboardButtonTypeLoginUrl. Use the method getLoginUrlInfo to find whether a prior user confirmation is
needed. If an error is returned, then the button must be handled as an ordinary URL button.
*/
    getLoginUrl(options: Omit<GetLoginUrl, '@type'>): Promise<HttpUrl>;
    /**
Shares users after pressing a keyboardButtonTypeRequestUsers button with the bot.
*/
    shareUsersWithBot(options: Omit<ShareUsersWithBot, '@type'>): Promise<Ok>;
    /**
Shares a chat after pressing a keyboardButtonTypeRequestChat button with the bot.
*/
    shareChatWithBot(options: Omit<ShareChatWithBot, '@type'>): Promise<Ok>;
    /**
Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the
query before the query timeout expires.
*/
    getInlineQueryResults(options: Omit<GetInlineQueryResults, '@type'>): Promise<InlineQueryResults>;
    /**
Sets the result of an inline query; for bots only.
*/
    answerInlineQuery(options: Omit<AnswerInlineQuery, '@type'>): Promise<Ok>;
    /**
Saves an inline message to be sent by the given user; for bots only.
*/
    savePreparedInlineMessage(options: Omit<SavePreparedInlineMessage, '@type'>): Promise<PreparedInlineMessageId>;
    /**
Saves an inline message to be sent by the given user.
*/
    getPreparedInlineMessage(options: Omit<GetPreparedInlineMessage, '@type'>): Promise<PreparedInlineMessage>;
    /**
Returns the most grossing Web App bots.
*/
    getGrossingWebAppBots(options: Omit<GetGrossingWebAppBots, '@type'>): Promise<FoundUsers>;
    /**
Returns information about a Web App by its short name. Returns a 404 error if the Web App is not found.
*/
    searchWebApp(options: Omit<SearchWebApp, '@type'>): Promise<FoundWebApp>;
    /**
Returns a default placeholder for Web Apps of a bot; this is an offline request. Returns a 404 error if the placeholder
isn't known.
*/
    getWebAppPlaceholder(options: Omit<GetWebAppPlaceholder, '@type'>): Promise<Outline>;
    /**
Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked.
*/
    getWebAppLinkUrl(options: Omit<GetWebAppLinkUrl, '@type'>): Promise<HttpUrl>;
    /**
Returns information needed to open the main Web App of a bot.
*/
    getMainWebApp(options: Omit<GetMainWebApp, '@type'>): Promise<MainWebApp>;
    /**
Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, or an
inlineQueryResultsButtonTypeWebApp button.
*/
    getWebAppUrl(options: Omit<GetWebAppUrl, '@type'>): Promise<HttpUrl>;
    /**
Sends data received from a keyboardButtonTypeWebApp Web App to a bot.
*/
    sendWebAppData(options: Omit<SendWebAppData, '@type'>): Promise<Ok>;
    /**
Informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an
internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. For each bot, a confirmation alert
about data sent to the bot must be shown once.
*/
    openWebApp(options: Omit<OpenWebApp, '@type'>): Promise<WebAppInfo>;
    /**
Informs TDLib that a previously opened Web App was closed.
*/
    closeWebApp(options: Omit<CloseWebApp, '@type'>): Promise<Ok>;
    /**
Sets the result of interaction with a Web App and sends corresponding message on behalf of the user to the chat from
which the query originated; for bots only.
*/
    answerWebAppQuery(options: Omit<AnswerWebAppQuery, '@type'>): Promise<SentWebAppMessage>;
    /**
Checks whether a file can be downloaded and saved locally by Web App request.
*/
    checkWebAppFileDownload(options: Omit<CheckWebAppFileDownload, '@type'>): Promise<Ok>;
    /**
Sends a callback query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the
query before the query timeout expires.
*/
    getCallbackQueryAnswer(options: Omit<GetCallbackQueryAnswer, '@type'>): Promise<CallbackQueryAnswer>;
    /**
Sets the result of a callback query; for bots only.
*/
    answerCallbackQuery(options: Omit<AnswerCallbackQuery, '@type'>): Promise<Ok>;
    /**
Sets the result of a shipping query; for bots only.
*/
    answerShippingQuery(options: Omit<AnswerShippingQuery, '@type'>): Promise<Ok>;
    /**
Sets the result of a pre-checkout query; for bots only.
*/
    answerPreCheckoutQuery(options: Omit<AnswerPreCheckoutQuery, '@type'>): Promise<Ok>;
    /**
Updates the game score of the specified user in the game; for bots only.
*/
    setGameScore(options: Omit<SetGameScore, '@type'>): Promise<Message>;
    /**
Updates the game score of the specified user in a game; for bots only.
*/
    setInlineGameScore(options: Omit<SetInlineGameScore, '@type'>): Promise<Ok>;
    /**
Returns the high scores for a game and some part of the high score table in the range of the specified user; for bots
only.
*/
    getGameHighScores(options: Omit<GetGameHighScores, '@type'>): Promise<GameHighScores>;
    /**
Returns game high scores and some part of the high score table in the range of the specified user; for bots only.
*/
    getInlineGameHighScores(options: Omit<GetInlineGameHighScores, '@type'>): Promise<GameHighScores>;
    /**
Deletes the default reply markup from a chat. Must be called after a one-time keyboard or a replyMarkupForceReply reply
markup has been used. An updateChatReplyMarkup update will be sent if the reply markup is changed.
*/
    deleteChatReplyMarkup(options: Omit<DeleteChatReplyMarkup, '@type'>): Promise<Ok>;
    /**
Sends a notification about user activity in a chat.
*/
    sendChatAction(options: Omit<SendChatAction, '@type'>): Promise<Ok>;
    /**
Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed
(e.g., in supergroups and channels all updates are received only for opened chats).
*/
    openChat(options: Omit<OpenChat, '@type'>): Promise<Ok>;
    /**
Informs TDLib that the chat is closed by the user. Many useful activities depend on the chat being opened or closed.
*/
    closeChat(options: Omit<CloseChat, '@type'>): Promise<Ok>;
    /**
Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the
entire text of the message is shown on the screen (excluding the button). Many useful activities depend on whether the
messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view
counter, removing deleted messages in supergroups and channels).
*/
    viewMessages(options: Omit<ViewMessages, '@type'>): Promise<Ok>;
    /**
Informs TDLib that the message content has been opened (e.g., the user has opened a photo, video, document, location or
venue, or has listened to an audio file or voice note message). An updateMessageContentOpened update will be generated
if something has changed.
*/
    openMessageContent(options: Omit<OpenMessageContent, '@type'>): Promise<Ok>;
    /**
Informs TDLib that a message with an animated emoji was clicked by the user. Returns a big animated sticker to be played
or a 404 error if usual animation needs to be played.
*/
    clickAnimatedEmojiMessage(options: Omit<ClickAnimatedEmojiMessage, '@type'>): Promise<Sticker>;
    /**
Returns an HTTPS or a tg: link with the given type. Can be called before authorization.
*/
    getInternalLink(options: Omit<GetInternalLink, '@type'>): Promise<HttpUrl>;
    /**
Returns information about the type of internal link. Returns a 404 error if the link is not internal. Can be called
before authorization.
*/
    getInternalLinkType(options: Omit<GetInternalLinkType, '@type'>): Promise<InternalLinkType>;
    /**
Returns information about an action to be done when the current user clicks an external link. Don't use this method for
links from secret chats if link preview is disabled in secret chats.
*/
    getExternalLinkInfo(options: Omit<GetExternalLinkInfo, '@type'>): Promise<LoginUrlInfo>;
    /**
Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP
link. Use the method getExternalLinkInfo to find whether a prior user confirmation is needed.
*/
    getExternalLink(options: Omit<GetExternalLink, '@type'>): Promise<HttpUrl>;
    /**
Marks all mentions in a chat as read.
*/
    readAllChatMentions(options: Omit<ReadAllChatMentions, '@type'>): Promise<Ok>;
    /**
Marks all mentions in a forum topic as read.
*/
    readAllMessageThreadMentions(options: Omit<ReadAllMessageThreadMentions, '@type'>): Promise<Ok>;
    /**
Marks all reactions in a chat or a forum topic as read.
*/
    readAllChatReactions(options: Omit<ReadAllChatReactions, '@type'>): Promise<Ok>;
    /**
Marks all reactions in a forum topic as read.
*/
    readAllMessageThreadReactions(options: Omit<ReadAllMessageThreadReactions, '@type'>): Promise<Ok>;
    /**
Returns an existing chat corresponding to a given user.
*/
    createPrivateChat(options: Omit<CreatePrivateChat, '@type'>): Promise<Chat>;
    /**
Returns an existing chat corresponding to a known basic group.
*/
    createBasicGroupChat(options: Omit<CreateBasicGroupChat, '@type'>): Promise<Chat>;
    /**
Returns an existing chat corresponding to a known supergroup or channel.
*/
    createSupergroupChat(options: Omit<CreateSupergroupChat, '@type'>): Promise<Chat>;
    /**
Returns an existing chat corresponding to a known secret chat.
*/
    createSecretChat(options: Omit<CreateSecretChat, '@type'>): Promise<Chat>;
    /**
Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns information about the newly
created chat.
*/
    createNewBasicGroupChat(options: Omit<CreateNewBasicGroupChat, '@type'>): Promise<CreatedBasicGroupChat>;
    /**
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created
chat.
*/
    createNewSupergroupChat(options: Omit<CreateNewSupergroupChat, '@type'>): Promise<Chat>;
    /**
Creates a new secret chat. Returns the newly created chat.
*/
    createNewSecretChat(options: Omit<CreateNewSecretChat, '@type'>): Promise<Chat>;
    /**
Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and
messageChatUpgradeFrom; requires owner privileges. Deactivates the original basic group.
*/
    upgradeBasicGroupChatToSupergroupChat(options: Omit<UpgradeBasicGroupChatToSupergroupChat, '@type'>): Promise<Chat>;
    /**
Returns chat lists to which the chat can be added. This is an offline request.
*/
    getChatListsToAddChat(options: Omit<GetChatListsToAddChat, '@type'>): Promise<ChatLists>;
    /**
Adds a chat to a chat list. A chat can't be simultaneously in Main and Archive chat lists, so it is automatically
removed from another one if needed.
*/
    addChatToList(options: Omit<AddChatToList, '@type'>): Promise<Ok>;
    /**
Returns information about a chat folder by its identifier.
*/
    getChatFolder(options: Omit<GetChatFolder, '@type'>): Promise<ChatFolder>;
    /**
Creates new chat folder. Returns information about the created chat folder. There can be up to
getOption("chat_folder_count_max") chat folders, but the limit can be increased with Telegram Premium.
*/
    createChatFolder(options: Omit<CreateChatFolder, '@type'>): Promise<ChatFolderInfo>;
    /**
Edits existing chat folder. Returns information about the edited chat folder.
*/
    editChatFolder(options: Omit<EditChatFolder, '@type'>): Promise<ChatFolderInfo>;
    /**
Deletes existing chat folder.
*/
    deleteChatFolder(options: Omit<DeleteChatFolder, '@type'>): Promise<Ok>;
    /**
Returns identifiers of pinned or always included chats from a chat folder, which are suggested to be left when the chat
folder is deleted.
*/
    getChatFolderChatsToLeave(options: Omit<GetChatFolderChatsToLeave, '@type'>): Promise<Chats>;
    /**
Returns approximate number of chats in a being created chat folder. Main and archive chat lists must be fully preloaded
for this function to work correctly.
*/
    getChatFolderChatCount(options: Omit<GetChatFolderChatCount, '@type'>): Promise<Count>;
    /**
Changes the order of chat folders.
*/
    reorderChatFolders(options: Omit<ReorderChatFolders, '@type'>): Promise<Ok>;
    /**
Toggles whether chat folder tags are enabled.
*/
    toggleChatFolderTags(options: Omit<ToggleChatFolderTags, '@type'>): Promise<Ok>;
    /**
Returns recommended chat folders for the current user.
*/
    getRecommendedChatFolders(): Promise<RecommendedChatFolders>;
    /**
Returns default icon name for a folder. Can be called synchronously.
*/
    getChatFolderDefaultIconName(options: Omit<GetChatFolderDefaultIconName, '@type'>): Promise<ChatFolderIcon>;
    /**
Returns identifiers of chats from a chat folder, suitable for adding to a chat folder invite link.
*/
    getChatsForChatFolderInviteLink(options: Omit<GetChatsForChatFolderInviteLink, '@type'>): Promise<Chats>;
    /**
Creates a new invite link for a chat folder. A link can be created for a chat folder if it has only pinned and included
chats.
*/
    createChatFolderInviteLink(options: Omit<CreateChatFolderInviteLink, '@type'>): Promise<ChatFolderInviteLink>;
    /**
Returns invite links created by the current user for a shareable chat folder.
*/
    getChatFolderInviteLinks(options: Omit<GetChatFolderInviteLinks, '@type'>): Promise<ChatFolderInviteLinks>;
    /**
Edits an invite link for a chat folder.
*/
    editChatFolderInviteLink(options: Omit<EditChatFolderInviteLink, '@type'>): Promise<ChatFolderInviteLink>;
    /**
Deletes an invite link for a chat folder.
*/
    deleteChatFolderInviteLink(options: Omit<DeleteChatFolderInviteLink, '@type'>): Promise<Ok>;
    /**
Checks the validity of an invite link for a chat folder and returns information about the corresponding chat folder.
*/
    checkChatFolderInviteLink(options: Omit<CheckChatFolderInviteLink, '@type'>): Promise<ChatFolderInviteLinkInfo>;
    /**
Adds a chat folder by an invite link.
*/
    addChatFolderByInviteLink(options: Omit<AddChatFolderByInviteLink, '@type'>): Promise<Ok>;
    /**
Returns new chats added to a shareable chat folder by its owner. The method must be called at most once in
getOption("chat_folder_new_chats_update_period") for the given chat folder.
*/
    getChatFolderNewChats(options: Omit<GetChatFolderNewChats, '@type'>): Promise<Chats>;
    /**
Process new chats added to a shareable chat folder by its owner.
*/
    processChatFolderNewChats(options: Omit<ProcessChatFolderNewChats, '@type'>): Promise<Ok>;
    /**
Returns settings for automatic moving of chats to and from the Archive chat lists.
*/
    getArchiveChatListSettings(): Promise<ArchiveChatListSettings>;
    /**
Changes settings for automatic moving of chats to and from the Archive chat lists.
*/
    setArchiveChatListSettings(options: Omit<SetArchiveChatListSettings, '@type'>): Promise<Ok>;
    /**
Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info member
right.
*/
    setChatTitle(options: Omit<SetChatTitle, '@type'>): Promise<Ok>;
    /**
Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info member
right.
*/
    setChatPhoto(options: Omit<SetChatPhoto, '@type'>): Promise<Ok>;
    /**
Changes accent color and background custom emoji of a channel chat. Requires can_change_info administrator right.
*/
    setChatAccentColor(options: Omit<SetChatAccentColor, '@type'>): Promise<Ok>;
    /**
Changes accent color and background custom emoji for profile of a supergroup or channel chat. Requires can_change_info
administrator right.
*/
    setChatProfileAccentColor(options: Omit<SetChatProfileAccentColor, '@type'>): Promise<Ok>;
    /**
Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires change_info administrator
right in basic groups, supergroups and channels. Message auto-delete time can't be changed in a chat with the current
user (Saved Messages) and the chat 777000 (Telegram).
*/
    setChatMessageAutoDeleteTime(options: Omit<SetChatMessageAutoDeleteTime, '@type'>): Promise<Ok>;
    /**
Changes the emoji status of a chat. Use chatBoostLevelFeatures.can_set_emoji_status to check whether an emoji status can
be set. Requires can_change_info administrator right.
*/
    setChatEmojiStatus(options: Omit<SetChatEmojiStatus, '@type'>): Promise<Ok>;
    /**
Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members
administrator right.
*/
    setChatPermissions(options: Omit<SetChatPermissions, '@type'>): Promise<Ok>;
    /**
Sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats
with sufficient boost level and can_change_info administrator right.
*/
    setChatBackground(options: Omit<SetChatBackground, '@type'>): Promise<Ok>;
    /**
Deletes background in a specific chat.
*/
    deleteChatBackground(options: Omit<DeleteChatBackground, '@type'>): Promise<Ok>;
    /**
Changes the chat theme. Supported only in private and secret chats.
*/
    setChatTheme(options: Omit<SetChatTheme, '@type'>): Promise<Ok>;
    /**
Changes the draft message in a chat.
*/
    setChatDraftMessage(options: Omit<SetChatDraftMessage, '@type'>): Promise<Ok>;
    /**
Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages)
can't be changed.
*/
    setChatNotificationSettings(options: Omit<SetChatNotificationSettings, '@type'>): Promise<Ok>;
    /**
Changes the ability of users to save, forward, or copy chat content. Supported only for basic groups, supergroups and
channels. Requires owner privileges.
*/
    toggleChatHasProtectedContent(options: Omit<ToggleChatHasProtectedContent, '@type'>): Promise<Ok>;
    /**
Changes the view_as_topics setting of a forum chat or Saved Messages.
*/
    toggleChatViewAsTopics(options: Omit<ToggleChatViewAsTopics, '@type'>): Promise<Ok>;
    /**
Changes the translatable state of a chat.
*/
    toggleChatIsTranslatable(options: Omit<ToggleChatIsTranslatable, '@type'>): Promise<Ok>;
    /**
Changes the marked as unread state of a chat.
*/
    toggleChatIsMarkedAsUnread(options: Omit<ToggleChatIsMarkedAsUnread, '@type'>): Promise<Ok>;
    /**
Changes the value of the default disable_notification parameter, used when a message is sent to a chat.
*/
    toggleChatDefaultDisableNotification(options: Omit<ToggleChatDefaultDisableNotification, '@type'>): Promise<Ok>;
    /**
Changes reactions, available in a chat. Available for basic groups, supergroups, and channels. Requires can_change_info
member right.
*/
    setChatAvailableReactions(options: Omit<SetChatAvailableReactions, '@type'>): Promise<Ok>;
    /**
Changes application-specific data associated with a chat.
*/
    setChatClientData(options: Omit<SetChatClientData, '@type'>): Promise<Ok>;
    /**
Changes information about a chat. Available for basic groups, supergroups, and channels. Requires can_change_info member
right.
*/
    setChatDescription(options: Omit<SetChatDescription, '@type'>): Promise<Ok>;
    /**
Changes the discussion group of a channel chat; requires can_change_info administrator right in the channel if it is
specified.
*/
    setChatDiscussionGroup(options: Omit<SetChatDiscussionGroup, '@type'>): Promise<Ok>;
    /**
Changes the location of a chat. Available only for some location-based supergroups, use
supergroupFullInfo.can_set_location to check whether the method is allowed to use.
*/
    setChatLocation(options: Omit<SetChatLocation, '@type'>): Promise<Ok>;
    /**
Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members right.
*/
    setChatSlowModeDelay(options: Omit<SetChatSlowModeDelay, '@type'>): Promise<Ok>;
    /**
Pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned.
*/
    pinChatMessage(options: Omit<PinChatMessage, '@type'>): Promise<Ok>;
    /**
Removes a pinned message from a chat; requires can_pin_messages member right if the chat is a basic group or supergroup,
or can_edit_messages administrator right if the chat is a channel.
*/
    unpinChatMessage(options: Omit<UnpinChatMessage, '@type'>): Promise<Ok>;
    /**
Removes all pinned messages from a chat; requires can_pin_messages member right if the chat is a basic group or
supergroup, or can_edit_messages administrator right if the chat is a channel.
*/
    unpinAllChatMessages(options: Omit<UnpinAllChatMessages, '@type'>): Promise<Ok>;
    /**
Removes all pinned messages from a forum topic; requires can_pin_messages member right in the supergroup.
*/
    unpinAllMessageThreadMessages(options: Omit<UnpinAllMessageThreadMessages, '@type'>): Promise<Ok>;
    /**
Adds the current user as a new member to a chat. Private and secret chats can't be joined using this method. May return
an error with a message "INVITE_REQUEST_SENT" if only a join request was created.
*/
    joinChat(options: Omit<JoinChat, '@type'>): Promise<Ok>;
    /**
Removes the current user from chat members. Private and secret chats can't be left using this method.
*/
    leaveChat(options: Omit<LeaveChat, '@type'>): Promise<Ok>;
    /**
Adds a new member to a chat; requires can_invite_users member right. Members can't be added to private or secret chats.
Returns information about members that weren't added.
*/
    addChatMember(options: Omit<AddChatMember, '@type'>): Promise<FailedToAddMembers>;
    /**
Adds multiple new members to a chat; requires can_invite_users member right. Currently, this method is only available
for supergroups and channels. This method can't be used to join a chat. Members can't be added to a channel if it has
more than 200 members. Returns information about members that weren't added.
*/
    addChatMembers(options: Omit<AddChatMembers, '@type'>): Promise<FailedToAddMembers>;
    /**
Changes the status of a chat member; requires can_invite_users member right to add a chat member, can_promote_members
administrator right to change administrator rights of the member, and can_restrict_members administrator right to change
restrictions of a user. This function is currently not suitable for transferring chat ownership; use
transferChatOwnership instead. Use addChatMember or banChatMember if some additional parameters needs to be passed.
*/
    setChatMemberStatus(options: Omit<SetChatMemberStatus, '@type'>): Promise<Ok>;
    /**
Bans a member in a chat; requires can_restrict_members administrator right. Members can't be banned in private or secret
chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links,
etc., unless unbanned first.
*/
    banChatMember(options: Omit<BanChatMember, '@type'>): Promise<Ok>;
    /**
Checks whether the current session can be used to transfer a chat ownership to another user.
*/
    canTransferOwnership(): Promise<CanTransferOwnershipResult>;
    /**
Changes the owner of a chat; requires owner privileges in the chat. Use the method canTransferOwnership to check whether
the ownership can be transferred from the current session. Available only for supergroups and channel chats.
*/
    transferChatOwnership(options: Omit<TransferChatOwnership, '@type'>): Promise<Ok>;
    /**
Returns information about a single member of a chat.
*/
    getChatMember(options: Omit<GetChatMember, '@type'>): Promise<ChatMember>;
    /**
Searches for a specified query in the first name, last name and usernames of the members of a specified chat. Requires
administrator rights if the chat is a channel.
*/
    searchChatMembers(options: Omit<SearchChatMembers, '@type'>): Promise<ChatMembers>;
    /**
Returns a list of administrators of the chat with their custom titles.
*/
    getChatAdministrators(options: Omit<GetChatAdministrators, '@type'>): Promise<ChatAdministrators>;
    /**
Clears message drafts in all chats.
*/
    clearAllDraftMessages(options: Omit<ClearAllDraftMessages, '@type'>): Promise<Ok>;
    /**
Returns saved notification sound by its identifier. Returns a 404 error if there is no saved notification sound with the
specified identifier.
*/
    getSavedNotificationSound(options: Omit<GetSavedNotificationSound, '@type'>): Promise<NotificationSounds>;
    /**
Returns the list of saved notification sounds. If a sound isn't in the list, then default sound needs to be used.
*/
    getSavedNotificationSounds(): Promise<NotificationSounds>;
    /**
Adds a new notification sound to the list of saved notification sounds. The new notification sound is added to the top
of the list. If it is already in the list, its position isn't changed.
*/
    addSavedNotificationSound(options: Omit<AddSavedNotificationSound, '@type'>): Promise<NotificationSound>;
    /**
Removes a notification sound from the list of saved notification sounds.
*/
    removeSavedNotificationSound(options: Omit<RemoveSavedNotificationSound, '@type'>): Promise<Ok>;
    /**
Returns the list of chats with non-default notification settings for new messages.
*/
    getChatNotificationSettingsExceptions(options: Omit<GetChatNotificationSettingsExceptions, '@type'>): Promise<Chats>;
    /**
Returns the notification settings for chats of a given type.
*/
    getScopeNotificationSettings(options: Omit<GetScopeNotificationSettings, '@type'>): Promise<ScopeNotificationSettings>;
    /**
Changes notification settings for chats of a given type.
*/
    setScopeNotificationSettings(options: Omit<SetScopeNotificationSettings, '@type'>): Promise<Ok>;
    /**
Changes notification settings for reactions.
*/
    setReactionNotificationSettings(options: Omit<SetReactionNotificationSettings, '@type'>): Promise<Ok>;
    /**
Resets all chat and scope notification settings to their default values. By default, all chats are unmuted and message
previews are shown.
*/
    resetAllNotificationSettings(): Promise<Ok>;
    /**
Changes the pinned state of a chat. There can be up to
getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same
number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium.
*/
    toggleChatIsPinned(options: Omit<ToggleChatIsPinned, '@type'>): Promise<Ok>;
    /**
Changes the order of pinned chats.
*/
    setPinnedChats(options: Omit<SetPinnedChats, '@type'>): Promise<Ok>;
    /**
Traverse all chats in a chat list and marks all messages in the chats as read.
*/
    readChatList(options: Omit<ReadChatList, '@type'>): Promise<Ok>;
    /**
Returns the current weather in the given location.
*/
    getCurrentWeather(options: Omit<GetCurrentWeather, '@type'>): Promise<CurrentWeather>;
    /**
Returns a story.
*/
    getStory(options: Omit<GetStory, '@type'>): Promise<Story>;
    /**
Returns supergroup and channel chats in which the current user has the right to post stories. The chats must be
rechecked with canSendStory before actually trying to post a story there.
*/
    getChatsToSendStories(): Promise<Chats>;
    /**
Checks whether the current user can send a story on behalf of a chat; requires can_post_stories right for supergroup and
channel chats.
*/
    canSendStory(options: Omit<CanSendStory, '@type'>): Promise<CanSendStoryResult>;
    /**
Sends a new story to a chat; requires can_post_stories right for supergroup and channel chats. Returns a temporary
story.
*/
    sendStory(options: Omit<SendStory, '@type'>): Promise<Story>;
    /**
Changes content and caption of a story. Can be called only if story.can_be_edited == true.
*/
    editStory(options: Omit<EditStory, '@type'>): Promise<Ok>;
    /**
Changes cover of a video story. Can be called only if story.can_be_edited == true and the story isn't being edited now.
*/
    editStoryCover(options: Omit<EditStoryCover, '@type'>): Promise<Ok>;
    /**
Changes privacy settings of a story. The method can be called only for stories posted on behalf of the current user and
if story.can_be_edited == true.
*/
    setStoryPrivacySettings(options: Omit<SetStoryPrivacySettings, '@type'>): Promise<Ok>;
    /**
Toggles whether a story is accessible after expiration. Can be called only if story.can_toggle_is_posted_to_chat_page ==
true.
*/
    toggleStoryIsPostedToChatPage(options: Omit<ToggleStoryIsPostedToChatPage, '@type'>): Promise<Ok>;
    /**
Deletes a previously sent story. Can be called only if story.can_be_deleted == true.
*/
    deleteStory(options: Omit<DeleteStory, '@type'>): Promise<Ok>;
    /**
Returns the list of chats with non-default notification settings for stories.
*/
    getStoryNotificationSettingsExceptions(): Promise<Chats>;
    /**
Loads more active stories from a story list. The loaded stories will be sent through updates. Active stories are sorted
by the pair (active_stories.order, active_stories.story_sender_chat_id) in descending order. Returns a 404 error if all
active stories have been loaded.
*/
    loadActiveStories(options: Omit<LoadActiveStories, '@type'>): Promise<Ok>;
    /**
Changes story list in which stories from the chat are shown.
*/
    setChatActiveStoriesList(options: Omit<SetChatActiveStoriesList, '@type'>): Promise<Ok>;
    /**
Returns the list of active stories posted by the given chat.
*/
    getChatActiveStories(options: Omit<GetChatActiveStories, '@type'>): Promise<ChatActiveStories>;
    /**
Returns the list of stories that posted by the given chat to its chat page. If from_story_id == 0, then pinned stories
are returned first. Then, stories are returned in reverse chronological order (i.e., in order of decreasing story_id).
For optimal performance, the number of returned stories is chosen by TDLib.
*/
    getChatPostedToChatPageStories(options: Omit<GetChatPostedToChatPageStories, '@type'>): Promise<Stories>;
    /**
Returns the list of all stories posted by the given chat; requires can_edit_stories right in the chat. The stories are
returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of
returned stories is chosen by TDLib.
*/
    getChatArchivedStories(options: Omit<GetChatArchivedStories, '@type'>): Promise<Stories>;
    /**
Changes the list of pinned stories on a chat page; requires can_edit_stories right in the chat.
*/
    setChatPinnedStories(options: Omit<SetChatPinnedStories, '@type'>): Promise<Ok>;
    /**
Informs TDLib that a story is opened and is being viewed by the user.
*/
    openStory(options: Omit<OpenStory, '@type'>): Promise<Ok>;
    /**
Informs TDLib that a story is closed by the user.
*/
    closeStory(options: Omit<CloseStory, '@type'>): Promise<Ok>;
    /**
Returns reactions, which can be chosen for a story.
*/
    getStoryAvailableReactions(options: Omit<GetStoryAvailableReactions, '@type'>): Promise<AvailableReactions>;
    /**
Changes chosen reaction on a story that has already been sent.
*/
    setStoryReaction(options: Omit<SetStoryReaction, '@type'>): Promise<Ok>;
    /**
Returns interactions with a story. The method can be called only for stories posted on behalf of the current user.
*/
    getStoryInteractions(options: Omit<GetStoryInteractions, '@type'>): Promise<StoryInteractions>;
    /**
Returns interactions with a story posted in a chat. Can be used only if story is posted on behalf of a chat and the user
is an administrator in the chat.
*/
    getChatStoryInteractions(options: Omit<GetChatStoryInteractions, '@type'>): Promise<StoryInteractions>;
    /**
Reports a story to the Telegram moderators.
*/
    reportStory(options: Omit<ReportStory, '@type'>): Promise<ReportStoryResult>;
    /**
Activates stealth mode for stories, which hides all views of stories from the current user in the last
"story_stealth_mode_past_period" seconds and for the next "story_stealth_mode_future_period" seconds; for Telegram
Premium users only.
*/
    activateStoryStealthMode(): Promise<Ok>;
    /**
Returns forwards of a story as a message to public chats and reposts by public channels. Can be used only if the story
is posted on behalf of the current user or story.can_get_statistics == true. For optimal performance, the number of
returned messages and stories is chosen by TDLib.
*/
    getStoryPublicForwards(options: Omit<GetStoryPublicForwards, '@type'>): Promise<PublicForwards>;
    /**
Returns the list of features available on the specific chat boost level; this is an offline request.
*/
    getChatBoostLevelFeatures(options: Omit<GetChatBoostLevelFeatures, '@type'>): Promise<ChatBoostLevelFeatures>;
    /**
Returns the list of features available for different chat boost levels; this is an offline request.
*/
    getChatBoostFeatures(options: Omit<GetChatBoostFeatures, '@type'>): Promise<ChatBoostFeatures>;
    /**
Returns the list of available chat boost slots for the current user.
*/
    getAvailableChatBoostSlots(): Promise<ChatBoostSlots>;
    /**
Returns the current boost status for a supergroup or a channel chat.
*/
    getChatBoostStatus(options: Omit<GetChatBoostStatus, '@type'>): Promise<ChatBoostStatus>;
    /**
Boosts a chat and returns the list of available chat boost slots for the current user after the boost.
*/
    boostChat(options: Omit<BoostChat, '@type'>): Promise<ChatBoostSlots>;
    /**
Returns an HTTPS link to boost the specified supergroup or channel chat.
*/
    getChatBoostLink(options: Omit<GetChatBoostLink, '@type'>): Promise<ChatBoostLink>;
    /**
Returns information about a link to boost a chat. Can be called for any internal link of the type
internalLinkTypeChatBoost.
*/
    getChatBoostLinkInfo(options: Omit<GetChatBoostLinkInfo, '@type'>): Promise<ChatBoostLinkInfo>;
    /**
Returns the list of boosts applied to a chat; requires administrator rights in the chat.
*/
    getChatBoosts(options: Omit<GetChatBoosts, '@type'>): Promise<FoundChatBoosts>;
    /**
Returns the list of boosts applied to a chat by a given user; requires administrator rights in the chat; for bots only.
*/
    getUserChatBoosts(options: Omit<GetUserChatBoosts, '@type'>): Promise<FoundChatBoosts>;
    /**
Returns information about a bot that can be added to attachment or side menu.
*/
    getAttachmentMenuBot(options: Omit<GetAttachmentMenuBot, '@type'>): Promise<AttachmentMenuBot>;
    /**
Adds or removes a bot to attachment and side menu. Bot can be added to the menu, only if
userTypeBot.can_be_added_to_attachment_menu == true.
*/
    toggleBotIsAddedToAttachmentMenu(options: Omit<ToggleBotIsAddedToAttachmentMenu, '@type'>): Promise<Ok>;
    /**
Returns up to 8 emoji statuses, which must be shown right after the default Premium Badge in the emoji status list for
self status.
*/
    getThemedEmojiStatuses(): Promise<EmojiStatusCustomEmojis>;
    /**
Returns recent emoji statuses for self status.
*/
    getRecentEmojiStatuses(): Promise<EmojiStatuses>;
    /**
Returns available upgraded gift emoji statuses for self status.
*/
    getUpgradedGiftEmojiStatuses(): Promise<EmojiStatuses>;
    /**
Returns default emoji statuses for self status.
*/
    getDefaultEmojiStatuses(): Promise<EmojiStatusCustomEmojis>;
    /**
Clears the list of recently used emoji statuses for self status.
*/
    clearRecentEmojiStatuses(): Promise<Ok>;
    /**
Returns up to 8 emoji statuses, which must be shown in the emoji status list for chats.
*/
    getThemedChatEmojiStatuses(): Promise<EmojiStatusCustomEmojis>;
    /**
Returns default emoji statuses for chats.
*/
    getDefaultChatEmojiStatuses(): Promise<EmojiStatusCustomEmojis>;
    /**
Returns the list of emoji statuses, which can't be used as chat emoji status, even they are from a sticker set with
is_allowed_as_chat_emoji_status == true.
*/
    getDisallowedChatEmojiStatuses(): Promise<EmojiStatusCustomEmojis>;
    /**
Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile
updates.
*/
    downloadFile(options: Omit<DownloadFile, '@type'>): Promise<File>;
    /**
Returns file downloaded prefix size from a given offset, in bytes.
*/
    getFileDownloadedPrefixSize(options: Omit<GetFileDownloadedPrefixSize, '@type'>): Promise<FileDownloadedPrefixSize>;
    /**
Stops the downloading of a file. If a file has already been downloaded, does nothing.
*/
    cancelDownloadFile(options: Omit<CancelDownloadFile, '@type'>): Promise<Ok>;
    /**
Returns suggested name for saving a file in a given directory.
*/
    getSuggestedFileName(options: Omit<GetSuggestedFileName, '@type'>): Promise<Text>;
    /**
Preliminary uploads a file to the cloud before sending it in a message, which can be useful for uploading of being
recorded voice and video notes. In all other cases there is no need to preliminary upload a file. Updates updateFile
will be used to notify about upload progress. The upload will not be completed until the file is sent in a message.
*/
    preliminaryUploadFile(options: Omit<PreliminaryUploadFile, '@type'>): Promise<File>;
    /**
Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile.
*/
    cancelPreliminaryUploadFile(options: Omit<CancelPreliminaryUploadFile, '@type'>): Promise<Ok>;
    /**
Writes a part of a generated file. This method is intended to be used only if the application has no direct access to
TDLib's file system, because it is usually slower than a direct write to the destination file.
*/
    writeGeneratedFilePart(options: Omit<WriteGeneratedFilePart, '@type'>): Promise<Ok>;
    /**
Informs TDLib on a file generation progress.
*/
    setFileGenerationProgress(options: Omit<SetFileGenerationProgress, '@type'>): Promise<Ok>;
    /**
Finishes the file generation.
*/
    finishFileGeneration(options: Omit<FinishFileGeneration, '@type'>): Promise<Ok>;
    /**
Reads a part of a file from the TDLib file cache and returns read bytes. This method is intended to be used only if the
application has no direct access to TDLib's file system, because it is usually slower than a direct read from the file.
*/
    readFilePart(options: Omit<ReadFilePart, '@type'>): Promise<FilePart>;
    /**
Deletes a file from the TDLib file cache.
*/
    deleteFile(options: Omit<DeleteFile, '@type'>): Promise<Ok>;
    /**
Adds a file from a message to the list of file downloads. Download progress and completion of the download will be
notified through updateFile updates. If message database is used, the list of file downloads is persistent across
application restarts. The downloading is independent of download using downloadFile, i.e. it continues if downloadFile
is canceled or is used to download a part of the file.
*/
    addFileToDownloads(options: Omit<AddFileToDownloads, '@type'>): Promise<File>;
    /**
Changes pause state of a file in the file download list.
*/
    toggleDownloadIsPaused(options: Omit<ToggleDownloadIsPaused, '@type'>): Promise<Ok>;
    /**
Changes pause state of all files in the file download list.
*/
    toggleAllDownloadsArePaused(options: Omit<ToggleAllDownloadsArePaused, '@type'>): Promise<Ok>;
    /**
Removes a file from the file download list.
*/
    removeFileFromDownloads(options: Omit<RemoveFileFromDownloads, '@type'>): Promise<Ok>;
    /**
Removes all files from the file download list.
*/
    removeAllFilesFromDownloads(options: Omit<RemoveAllFilesFromDownloads, '@type'>): Promise<Ok>;
    /**
Searches for files in the file download list or recently downloaded files from the list.
*/
    searchFileDownloads(options: Omit<SearchFileDownloads, '@type'>): Promise<FoundFileDownloads>;
    /**
Application or reCAPTCHA verification has been completed. Can be called before authorization.
*/
    setApplicationVerificationToken(options: Omit<SetAppVerificationToken, '@type'>): Promise<Ok>;
    /**
Returns information about a file with messages exported from another application.
*/
    getMessageFileType(options: Omit<GetMessageFileType, '@type'>): Promise<MessageFileType>;
    /**
Returns a confirmation text to be shown to the user before starting message import.
*/
    getMessageImportConfirmationText(options: Omit<GetMessageImportConfirmationText, '@type'>): Promise<Text>;
    /**
Imports messages exported from another app.
*/
    importMessages(options: Omit<ImportMessages, '@type'>): Promise<Ok>;
    /**
Replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups,
and channels. Requires administrator privileges and can_invite_users right.
*/
    replacePrimaryChatInviteLink(options: Omit<ReplacePrimaryChatInviteLink, '@type'>): Promise<ChatInviteLink>;
    /**
Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator
privileges and can_invite_users right in the chat.
*/
    createChatInviteLink(options: Omit<CreateChatInviteLink, '@type'>): Promise<ChatInviteLink>;
    /**
Creates a new subscription invite link for a channel chat. Requires can_invite_users right in the chat.
*/
    createChatSubscriptionInviteLink(options: Omit<CreateChatSubscriptionInviteLink, '@type'>): Promise<ChatInviteLink>;
    /**
Edits a non-primary invite link for a chat. Available for basic groups, supergroups, and channels. If the link creates a
subscription, then expiration_date, member_limit and creates_join_request must not be used. Requires administrator
privileges and can_invite_users right in the chat for own links and owner privileges for other links.
*/
    editChatInviteLink(options: Omit<EditChatInviteLink, '@type'>): Promise<ChatInviteLink>;
    /**
Edits a subscription invite link for a channel chat. Requires can_invite_users right in the chat for own links and owner
privileges for other links.
*/
    editChatSubscriptionInviteLink(options: Omit<EditChatSubscriptionInviteLink, '@type'>): Promise<ChatInviteLink>;
    /**
Returns information about an invite link. Requires administrator privileges and can_invite_users right in the chat to
get own links and owner privileges to get other links.
*/
    getChatInviteLink(options: Omit<GetChatInviteLink, '@type'>): Promise<ChatInviteLink>;
    /**
Returns the list of chat administrators with number of their invite links. Requires owner privileges in the chat.
*/
    getChatInviteLinkCounts(options: Omit<GetChatInviteLinkCounts, '@type'>): Promise<ChatInviteLinkCounts>;
    /**
Returns invite links for a chat created by specified administrator. Requires administrator privileges and
can_invite_users right in the chat to get own links and owner privileges to get other links.
*/
    getChatInviteLinks(options: Omit<GetChatInviteLinks, '@type'>): Promise<ChatInviteLinks>;
    /**
Returns chat members joined a chat via an invite link. Requires administrator privileges and can_invite_users right in
the chat for own links and owner privileges for other links.
*/
    getChatInviteLinkMembers(options: Omit<GetChatInviteLinkMembers, '@type'>): Promise<ChatInviteLinkMembers>;
    /**
Revokes invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges
and can_invite_users right in the chat for own links and owner privileges for other links. If a primary link is revoked,
then additionally to the revoked link returns new primary link.
*/
    revokeChatInviteLink(options: Omit<RevokeChatInviteLink, '@type'>): Promise<ChatInviteLinks>;
    /**
Deletes revoked chat invite links. Requires administrator privileges and can_invite_users right in the chat for own
links and owner privileges for other links.
*/
    deleteRevokedChatInviteLink(options: Omit<DeleteRevokedChatInviteLink, '@type'>): Promise<Ok>;
    /**
Deletes all revoked chat invite links created by a given chat administrator. Requires administrator privileges and
can_invite_users right in the chat for own links and owner privileges for other links.
*/
    deleteAllRevokedChatInviteLinks(options: Omit<DeleteAllRevokedChatInviteLinks, '@type'>): Promise<Ok>;
    /**
Checks the validity of an invite link for a chat and returns information about the corresponding chat.
*/
    checkChatInviteLink(options: Omit<CheckChatInviteLink, '@type'>): Promise<ChatInviteLinkInfo>;
    /**
Uses an invite link to add the current user to the chat if possible. May return an error with a message
"INVITE_REQUEST_SENT" if only a join request was created.
*/
    joinChatByInviteLink(options: Omit<JoinChatByInviteLink, '@type'>): Promise<Chat>;
    /**
Returns pending join requests in a chat.
*/
    getChatJoinRequests(options: Omit<GetChatJoinRequests, '@type'>): Promise<ChatJoinRequests>;
    /**
Handles a pending join request in a chat.
*/
    processChatJoinRequest(options: Omit<ProcessChatJoinRequest, '@type'>): Promise<Ok>;
    /**
Handles all pending join requests for a given link in a chat.
*/
    processChatJoinRequests(options: Omit<ProcessChatJoinRequests, '@type'>): Promise<Ok>;
    /**
Creates a new call.
*/
    createCall(options: Omit<CreateCall, '@type'>): Promise<CallId>;
    /**
Accepts an incoming call.
*/
    acceptCall(options: Omit<AcceptCall, '@type'>): Promise<Ok>;
    /**
Sends call signaling data.
*/
    sendCallSignalingData(options: Omit<SendCallSignalingData, '@type'>): Promise<Ok>;
    /**
Discards a call.
*/
    discardCall(options: Omit<DiscardCall, '@type'>): Promise<Ok>;
    /**
Sends a call rating.
*/
    sendCallRating(options: Omit<SendCallRating, '@type'>): Promise<Ok>;
    /**
Sends debug information for a call to Telegram servers.
*/
    sendCallDebugInformation(options: Omit<SendCallDebugInformation, '@type'>): Promise<Ok>;
    /**
Sends log file for a call to Telegram servers.
*/
    sendCallLog(options: Omit<SendCallLog, '@type'>): Promise<Ok>;
    /**
Returns the list of participant identifiers, on whose behalf a video chat in the chat can be joined.
*/
    getVideoChatAvailableParticipants(options: Omit<GetVideoChatAvailableParticipants, '@type'>): Promise<MessageSenders>;
    /**
Changes default participant identifier, on whose behalf a video chat in the chat will be joined.
*/
    setVideoChatDefaultParticipant(options: Omit<SetVideoChatDefaultParticipant, '@type'>): Promise<Ok>;
    /**
Creates a video chat (a group call bound to a chat). Available only for basic groups, supergroups and channels; requires
can_manage_video_chats administrator right.
*/
    createVideoChat(options: Omit<CreateVideoChat, '@type'>): Promise<GroupCallId>;
    /**
Creates a group call from a one-to-one call.
*/
    createGroupCall(options: Omit<CreateGroupCall, '@type'>): Promise<Ok>;
    /**
Returns RTMP URL for streaming to the chat; requires can_manage_video_chats administrator right.
*/
    getVideoChatRtmpUrl(options: Omit<GetVideoChatRtmpUrl, '@type'>): Promise<RtmpUrl>;
    /**
Replaces the current RTMP URL for streaming to the chat; requires owner privileges.
*/
    replaceVideoChatRtmpUrl(options: Omit<ReplaceVideoChatRtmpUrl, '@type'>): Promise<RtmpUrl>;
    /**
Returns information about a group call.
*/
    getGroupCall(options: Omit<GetGroupCall, '@type'>): Promise<GroupCall>;
    /**
Starts a scheduled group call.
*/
    startScheduledGroupCall(options: Omit<StartScheduledGroupCall, '@type'>): Promise<Ok>;
    /**
Toggles whether the current user will receive a notification when the group call starts; scheduled group calls only.
*/
    toggleGroupCallEnabledStartNotification(options: Omit<ToggleGroupCallEnabledStartNotification, '@type'>): Promise<Ok>;
    /**
Joins an active group call. Returns join response payload for tgcalls.
*/
    joinGroupCall(options: Omit<JoinGroupCall, '@type'>): Promise<Text>;
    /**
Starts screen sharing in a joined group call. Returns join response payload for tgcalls.
*/
    startGroupCallScreenSharing(options: Omit<StartGroupCallScreenSharing, '@type'>): Promise<Text>;
    /**
Pauses or unpauses screen sharing in a joined group call.
*/
    toggleGroupCallScreenSharingIsPaused(options: Omit<ToggleGroupCallScreenSharingIsPaused, '@type'>): Promise<Ok>;
    /**
Ends screen sharing in a joined group call.
*/
    endGroupCallScreenSharing(options: Omit<EndGroupCallScreenSharing, '@type'>): Promise<Ok>;
    /**
Sets group call title. Requires groupCall.can_be_managed group call flag.
*/
    setGroupCallTitle(options: Omit<SetGroupCallTitle, '@type'>): Promise<Ok>;
    /**
Toggles whether new participants of a group call can be unmuted only by administrators of the group call. Requires
groupCall.can_toggle_mute_new_participants group call flag.
*/
    toggleGroupCallMuteNewParticipants(options: Omit<ToggleGroupCallMuteNewParticipants, '@type'>): Promise<Ok>;
    /**
Invites users to an active group call. Sends a service message of type messageInviteVideoChatParticipants for video
chats.
*/
    inviteGroupCallParticipants(options: Omit<InviteGroupCallParticipants, '@type'>): Promise<Ok>;
    /**
Returns invite link to a video chat in a public chat.
*/
    getGroupCallInviteLink(options: Omit<GetGroupCallInviteLink, '@type'>): Promise<HttpUrl>;
    /**
Revokes invite link for a group call. Requires groupCall.can_be_managed group call flag.
*/
    revokeGroupCallInviteLink(options: Omit<RevokeGroupCallInviteLink, '@type'>): Promise<Ok>;
    /**
Starts recording of an active group call. Requires groupCall.can_be_managed group call flag.
*/
    startGroupCallRecording(options: Omit<StartGroupCallRecording, '@type'>): Promise<Ok>;
    /**
Ends recording of an active group call. Requires groupCall.can_be_managed group call flag.
*/
    endGroupCallRecording(options: Omit<EndGroupCallRecording, '@type'>): Promise<Ok>;
    /**
Toggles whether current user's video is paused.
*/
    toggleGroupCallIsMyVideoPaused(options: Omit<ToggleGroupCallIsMyVideoPaused, '@type'>): Promise<Ok>;
    /**
Toggles whether current user's video is enabled.
*/
    toggleGroupCallIsMyVideoEnabled(options: Omit<ToggleGroupCallIsMyVideoEnabled, '@type'>): Promise<Ok>;
    /**
Informs TDLib that speaking state of a participant of an active group has changed.
*/
    setGroupCallParticipantIsSpeaking(options: Omit<SetGroupCallParticipantIsSpeaking, '@type'>): Promise<Ok>;
    /**
Toggles whether a participant of an active group call is muted, unmuted, or allowed to unmute themselves.
*/
    toggleGroupCallParticipantIsMuted(options: Omit<ToggleGroupCallParticipantIsMuted, '@type'>): Promise<Ok>;
    /**
Changes volume level of a participant of an active group call. If the current user can manage the group call, then the
participant's volume level will be changed for all users with the default volume level.
*/
    setGroupCallParticipantVolumeLevel(options: Omit<SetGroupCallParticipantVolumeLevel, '@type'>): Promise<Ok>;
    /**
Toggles whether a group call participant hand is rased.
*/
    toggleGroupCallParticipantIsHandRaised(options: Omit<ToggleGroupCallParticipantIsHandRaised, '@type'>): Promise<Ok>;
    /**
Loads more participants of a group call. The loaded participants will be received through updates. Use the field
groupCall.loaded_all_participants to check whether all participants have already been loaded.
*/
    loadGroupCallParticipants(options: Omit<LoadGroupCallParticipants, '@type'>): Promise<Ok>;
    /**
Leaves a group call.
*/
    leaveGroupCall(options: Omit<LeaveGroupCall, '@type'>): Promise<Ok>;
    /**
Ends a group call. Requires groupCall.can_be_managed.
*/
    endGroupCall(options: Omit<EndGroupCall, '@type'>): Promise<Ok>;
    /**
Returns information about available group call streams.
*/
    getGroupCallStreams(options: Omit<GetGroupCallStreams, '@type'>): Promise<GroupCallStreams>;
    /**
Returns a file with a segment of a group call stream in a modified OGG format for audio or MPEG-4 format for video.
*/
    getGroupCallStreamSegment(options: Omit<GetGroupCallStreamSegment, '@type'>): Promise<FilePart>;
    /**
Changes the block list of a message sender. Currently, only users and supergroup chats can be blocked.
*/
    setMessageSenderBlockList(options: Omit<SetMessageSenderBlockList, '@type'>): Promise<Ok>;
    /**
Blocks an original sender of a message in the Replies chat.
*/
    blockMessageSenderFromReplies(options: Omit<BlockMessageSenderFromReplies, '@type'>): Promise<Ok>;
    /**
Returns users and chats that were blocked by the current user.
*/
    getBlockedMessageSenders(options: Omit<GetBlockedMessageSenders, '@type'>): Promise<MessageSenders>;
    /**
Adds a user to the contact list or edits an existing contact by their user identifier.
*/
    addContact(options: Omit<AddContact, '@type'>): Promise<Ok>;
    /**
Adds new contacts or edits existing contacts by their phone numbers; contacts' user identifiers are ignored.
*/
    importContacts(options: Omit<ImportContacts, '@type'>): Promise<ImportedContacts>;
    /**
Returns all contacts of the user.
*/
    getContacts(): Promise<Users>;
    /**
Searches for the specified query in the first names, last names and usernames of the known user contacts.
*/
    searchContacts(options: Omit<SearchContacts, '@type'>): Promise<Users>;
    /**
Removes users from the contact list.
*/
    removeContacts(options: Omit<RemoveContacts, '@type'>): Promise<Ok>;
    /**
Returns the total number of imported contacts.
*/
    getImportedContactCount(): Promise<Count>;
    /**
Changes imported contacts using the list of contacts saved on the device. Imports newly added contacts and, if at least
the file database is enabled, deletes recently deleted contacts. Query result depends on the result of the previous
query, so only one query is possible at the same time.
*/
    changeImportedContacts(options: Omit<ChangeImportedContacts, '@type'>): Promise<ImportedContacts>;
    /**
Clears all imported contacts, contact list remains unchanged.
*/
    clearImportedContacts(): Promise<Ok>;
    /**
Changes the list of close friends of the current user.
*/
    setCloseFriends(options: Omit<SetCloseFriends, '@type'>): Promise<Ok>;
    /**
Returns all close friends of the current user.
*/
    getCloseFriends(): Promise<Users>;
    /**
Changes a personal profile photo of a contact user.
*/
    setUserPersonalProfilePhoto(options: Omit<SetUserPersonalProfilePhoto, '@type'>): Promise<Ok>;
    /**
Suggests a profile photo to another regular user with common messages and allowing non-paid messages.
*/
    suggestUserProfilePhoto(options: Omit<SuggestUserProfilePhoto, '@type'>): Promise<Ok>;
    /**
Toggles whether the bot can manage emoji status of the current user.
*/
    toggleBotCanManageEmojiStatus(options: Omit<ToggleBotCanManageEmojiStatus, '@type'>): Promise<Ok>;
    /**
Changes the emoji status of a user; for bots only.
*/
    setUserEmojiStatus(options: Omit<SetUserEmojiStatus, '@type'>): Promise<Ok>;
    /**
Searches a user by their phone number. Returns a 404 error if the user can't be found.
*/
    searchUserByPhoneNumber(options: Omit<SearchUserByPhoneNumber, '@type'>): Promise<User>;
    /**
Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on
chatActionBarSharePhoneNumber.
*/
    sharePhoneNumber(options: Omit<SharePhoneNumber, '@type'>): Promise<Ok>;
    /**
Returns the profile photos of a user. Personal and public photo aren't returned.
*/
    getUserProfilePhotos(options: Omit<GetUserProfilePhotos, '@type'>): Promise<ChatPhotos>;
    /**
Returns outline of a sticker; this is an offline request. Returns a 404 error if the outline isn't known.
*/
    getStickerOutline(options: Omit<GetStickerOutline, '@type'>): Promise<Outline>;
    /**
Returns stickers from the installed sticker sets that correspond to any of the given emoji or can be found by
sticker-specific keywords. If the query is non-empty, then favorite, recently used or trending stickers may also be
returned.
*/
    getStickers(options: Omit<GetStickers, '@type'>): Promise<Stickers>;
    /**
Returns unique emoji that correspond to stickers to be found by the getStickers(sticker_type, query, 1000000, chat_id).
*/
    getAllStickerEmojis(options: Omit<GetAllStickerEmojis, '@type'>): Promise<Emojis>;
    /**
Searches for stickers from public sticker sets that correspond to any of the given emoji.
*/
    searchStickers(options: Omit<SearchStickers, '@type'>): Promise<Stickers>;
    /**
Returns greeting stickers from regular sticker sets that can be used for the start page of other users.
*/
    getGreetingStickers(): Promise<Stickers>;
    /**
Returns premium stickers from regular sticker sets.
*/
    getPremiumStickers(options: Omit<GetPremiumStickers, '@type'>): Promise<Stickers>;
    /**
Returns a list of installed sticker sets.
*/
    getInstalledStickerSets(options: Omit<GetInstalledStickerSets, '@type'>): Promise<StickerSets>;
    /**
Returns a list of archived sticker sets.
*/
    getArchivedStickerSets(options: Omit<GetArchivedStickerSets, '@type'>): Promise<StickerSets>;
    /**
Returns a list of trending sticker sets. For optimal performance, the number of returned sticker sets is chosen by
TDLib.
*/
    getTrendingStickerSets(options: Omit<GetTrendingStickerSets, '@type'>): Promise<TrendingStickerSets>;
    /**
Returns a list of sticker sets attached to a file, including regular, mask, and emoji sticker sets. Currently, only
animations, photos, and videos can have attached sticker sets.
*/
    getAttachedStickerSets(options: Omit<GetAttachedStickerSets, '@type'>): Promise<StickerSets>;
    /**
Returns information about a sticker set by its identifier.
*/
    getStickerSet(options: Omit<GetStickerSet, '@type'>): Promise<StickerSet>;
    /**
Returns name of a sticker set by its identifier.
*/
    getStickerSetName(options: Omit<GetStickerSetName, '@type'>): Promise<Text>;
    /**
Searches for a sticker set by its name.
*/
    searchStickerSet(options: Omit<SearchStickerSet, '@type'>): Promise<StickerSet>;
    /**
Searches for installed sticker sets by looking for specified query in their title and name.
*/
    searchInstalledStickerSets(options: Omit<SearchInstalledStickerSets, '@type'>): Promise<StickerSets>;
    /**
Searches for sticker sets by looking for specified query in their title and name. Excludes installed sticker sets from
the results.
*/
    searchStickerSets(options: Omit<SearchStickerSets, '@type'>): Promise<StickerSets>;
    /**
Installs/uninstalls or activates/archives a sticker set.
*/
    changeStickerSet(options: Omit<ChangeStickerSet, '@type'>): Promise<Ok>;
    /**
Informs the server that some trending sticker sets have been viewed by the user.
*/
    viewTrendingStickerSets(options: Omit<ViewTrendingStickerSets, '@type'>): Promise<Ok>;
    /**
Changes the order of installed sticker sets.
*/
    reorderInstalledStickerSets(options: Omit<ReorderInstalledStickerSets, '@type'>): Promise<Ok>;
    /**
Returns a list of recently used stickers.
*/
    getRecentStickers(options: Omit<GetRecentStickers, '@type'>): Promise<Stickers>;
    /**
Manually adds a new sticker to the list of recently used stickers. The new sticker is added to the top of the list. If
the sticker was already in the list, it is removed from the list first. Only stickers belonging to a sticker set or in
WEBP or WEBM format can be added to this list. Emoji stickers can't be added to recent stickers.
*/
    addRecentSticker(options: Omit<AddRecentSticker, '@type'>): Promise<Stickers>;
    /**
Removes a sticker from the list of recently used stickers.
*/
    removeRecentSticker(options: Omit<RemoveRecentSticker, '@type'>): Promise<Ok>;
    /**
Clears the list of recently used stickers.
*/
    clearRecentStickers(options: Omit<ClearRecentStickers, '@type'>): Promise<Ok>;
    /**
Returns favorite stickers.
*/
    getFavoriteStickers(): Promise<Stickers>;
    /**
Adds a new sticker to the list of favorite stickers. The new sticker is added to the top of the list. If the sticker was
already in the list, it is removed from the list first. Only stickers belonging to a sticker set or in WEBP or WEBM
format can be added to this list. Emoji stickers can't be added to favorite stickers.
*/
    addFavoriteSticker(options: Omit<AddFavoriteSticker, '@type'>): Promise<Ok>;
    /**
Removes a sticker from the list of favorite stickers.
*/
    removeFavoriteSticker(options: Omit<RemoveFavoriteSticker, '@type'>): Promise<Ok>;
    /**
Returns emoji corresponding to a sticker. The list is only for informational purposes, because a sticker is always sent
with a fixed emoji from the corresponding Sticker object.
*/
    getStickerEmojis(options: Omit<GetStickerEmojis, '@type'>): Promise<Emojis>;
    /**
Searches for emojis by keywords. Supported only if the file database is enabled. Order of results is unspecified.
*/
    searchEmojis(options: Omit<SearchEmojis, '@type'>): Promise<EmojiKeywords>;
    /**
Return emojis matching the keyword. Supported only if the file database is enabled. Order of results is unspecified.
*/
    getKeywordEmojis(options: Omit<GetKeywordEmojis, '@type'>): Promise<Emojis>;
    /**
Returns available emoji categories.
*/
    getEmojiCategories(options: Omit<GetEmojiCategories, '@type'>): Promise<EmojiCategories>;
    /**
Returns an animated emoji corresponding to a given emoji. Returns a 404 error if the emoji has no animated emoji.
*/
    getAnimatedEmoji(options: Omit<GetAnimatedEmoji, '@type'>): Promise<AnimatedEmoji>;
    /**
Returns an HTTP URL which can be used to automatically log in to the translation platform and suggest new emoji
replacements. The URL will be valid for 30 seconds after generation.
*/
    getEmojiSuggestionsUrl(options: Omit<GetEmojiSuggestionsUrl, '@type'>): Promise<HttpUrl>;
    /**
Returns the list of custom emoji stickers by their identifiers. Stickers are returned in arbitrary order. Only found
stickers are returned.
*/
    getCustomEmojiStickers(options: Omit<GetCustomEmojiStickers, '@type'>): Promise<Stickers>;
    /**
Returns default list of custom emoji stickers for placing on a chat photo.
*/
    getDefaultChatPhotoCustomEmojiStickers(): Promise<Stickers>;
    /**
Returns default list of custom emoji stickers for placing on a profile photo.
*/
    getDefaultProfilePhotoCustomEmojiStickers(): Promise<Stickers>;
    /**
Returns default list of custom emoji stickers for reply background.
*/
    getDefaultBackgroundCustomEmojiStickers(): Promise<Stickers>;
    /**
Returns saved animations.
*/
    getSavedAnimations(): Promise<Animations>;
    /**
Manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list.
If the animation was already in the list, it is removed first. Only non-secret video animations with MIME type
"video/mp4" can be added to the list.
*/
    addSavedAnimation(options: Omit<AddSavedAnimation, '@type'>): Promise<Ok>;
    /**
Removes an animation from the list of saved animations.
*/
    removeSavedAnimation(options: Omit<RemoveSavedAnimation, '@type'>): Promise<Ok>;
    /**
Returns up to 20 recently used inline bots in the order of their last usage.
*/
    getRecentInlineBots(): Promise<Users>;
    /**
Returns the list of bots owned by the current user.
*/
    getOwnedBots(): Promise<Users>;
    /**
Searches for recently used hashtags by their prefix.
*/
    searchHashtags(options: Omit<SearchHashtags, '@type'>): Promise<Hashtags>;
    /**
Removes a hashtag from the list of recently used hashtags.
*/
    removeRecentHashtag(options: Omit<RemoveRecentHashtag, '@type'>): Promise<Ok>;
    /**
Returns a link preview by the text of a message. Do not call this function too often. Returns a 404 error if the text
has no link preview.
*/
    getLinkPreview(options: Omit<GetLinkPreview, '@type'>): Promise<LinkPreview>;
    /**
Returns an instant view version of a web page if available. This is an offline request if only_local is true. Returns a
404 error if the web page has no instant view page.
*/
    getWebPageInstantView(options: Omit<GetWebPageInstantView, '@type'>): Promise<WebPageInstantView>;
    /**
Changes a profile photo for the current user.
*/
    setProfilePhoto(options: Omit<SetProfilePhoto, '@type'>): Promise<Ok>;
    /**
Deletes a profile photo.
*/
    deleteProfilePhoto(options: Omit<DeleteProfilePhoto, '@type'>): Promise<Ok>;
    /**
Changes accent color and background custom emoji for the current user; for Telegram Premium users only.
*/
    setAccentColor(options: Omit<SetAccentColor, '@type'>): Promise<Ok>;
    /**
Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only.
*/
    setProfileAccentColor(options: Omit<SetProfileAccentColor, '@type'>): Promise<Ok>;
    /**
Changes the first and last name of the current user.
*/
    setName(options: Omit<SetName, '@type'>): Promise<Ok>;
    /**
Changes the bio of the current user.
*/
    setBio(options: Omit<SetBio, '@type'>): Promise<Ok>;
    /**
Changes the editable username of the current user.
*/
    setUsername(options: Omit<SetUsername, '@type'>): Promise<Ok>;
    /**
Changes active state for a username of the current user. The editable username can't be disabled. May return an error
with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached.
*/
    toggleUsernameIsActive(options: Omit<ToggleUsernameIsActive, '@type'>): Promise<Ok>;
    /**
Changes order of active usernames of the current user.
*/
    reorderActiveUsernames(options: Omit<ReorderActiveUsernames, '@type'>): Promise<Ok>;
    /**
Changes the birthdate of the current user.
*/
    setBirthdate(options: Omit<SetBirthdate, '@type'>): Promise<Ok>;
    /**
Changes the personal chat of the current user.
*/
    setPersonalChat(options: Omit<SetPersonalChat, '@type'>): Promise<Ok>;
    /**
Changes the emoji status of the current user; for Telegram Premium users only.
*/
    setEmojiStatus(options: Omit<SetEmojiStatus, '@type'>): Promise<Ok>;
    /**
Toggles whether the current user has sponsored messages enabled. The setting has no effect for users without Telegram
Premium for which sponsored messages are always enabled.
*/
    toggleHasSponsoredMessagesEnabled(options: Omit<ToggleHasSponsoredMessagesEnabled, '@type'>): Promise<Ok>;
    /**
Changes the business location of the current user. Requires Telegram Business subscription.
*/
    setBusinessLocation(options: Omit<SetBusinessLocation, '@type'>): Promise<Ok>;
    /**
Changes the business opening hours of the current user. Requires Telegram Business subscription.
*/
    setBusinessOpeningHours(options: Omit<SetBusinessOpeningHours, '@type'>): Promise<Ok>;
    /**
Changes the business greeting message settings of the current user. Requires Telegram Business subscription.
*/
    setBusinessGreetingMessageSettings(options: Omit<SetBusinessGreetingMessageSettings, '@type'>): Promise<Ok>;
    /**
Changes the business away message settings of the current user. Requires Telegram Business subscription.
*/
    setBusinessAwayMessageSettings(options: Omit<SetBusinessAwayMessageSettings, '@type'>): Promise<Ok>;
    /**
Changes the business start page of the current user. Requires Telegram Business subscription.
*/
    setBusinessStartPage(options: Omit<SetBusinessStartPage, '@type'>): Promise<Ok>;
    /**
Sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success,
returns information about the sent code.
*/
    sendPhoneNumberCode(options: Omit<SendPhoneNumberCode, '@type'>): Promise<AuthenticationCodeInfo>;
    /**
Sends Firebase Authentication SMS to the specified phone number. Works only when received a code of the type
authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos.
*/
    sendPhoneNumberFirebaseSms(options: Omit<SendPhoneNumberFirebaseSms, '@type'>): Promise<Ok>;
    /**
Reports that authentication code wasn't delivered via SMS to the specified phone number; for official mobile
applications only.
*/
    reportPhoneNumberCodeMissing(options: Omit<ReportPhoneNumberCodeMissing, '@type'>): Promise<Ok>;
    /**
Resends the authentication code sent to a phone number. Works only if the previously received authenticationCodeInfo
next_code_type was not null and the server-specified timeout has passed.
*/
    resendPhoneNumberCode(options: Omit<ResendPhoneNumberCode, '@type'>): Promise<AuthenticationCodeInfo>;
    /**
Check the authentication code and completes the request for which the code was sent if appropriate.
*/
    checkPhoneNumberCode(options: Omit<CheckPhoneNumberCode, '@type'>): Promise<Ok>;
    /**
Returns the business bot that is connected to the current user account. Returns a 404 error if there is no connected
bot.
*/
    getBusinessConnectedBot(): Promise<BusinessConnectedBot>;
    /**
Adds or changes business bot that is connected to the current user account.
*/
    setBusinessConnectedBot(options: Omit<SetBusinessConnectedBot, '@type'>): Promise<Ok>;
    /**
Deletes the business bot that is connected to the current user account.
*/
    deleteBusinessConnectedBot(options: Omit<DeleteBusinessConnectedBot, '@type'>): Promise<Ok>;
    /**
Pauses or resumes the connected business bot in a specific chat.
*/
    toggleBusinessConnectedBotChatIsPaused(options: Omit<ToggleBusinessConnectedBotChatIsPaused, '@type'>): Promise<Ok>;
    /**
Removes the connected business bot from a specific chat by adding the chat to businessRecipients.excluded_chat_ids.
*/
    removeBusinessConnectedBotFromChat(options: Omit<RemoveBusinessConnectedBotFromChat, '@type'>): Promise<Ok>;
    /**
Returns business chat links created for the current account.
*/
    getBusinessChatLinks(): Promise<BusinessChatLinks>;
    /**
Creates a business chat link for the current account. Requires Telegram Business subscription. There can be up to
getOption("business_chat_link_count_max") links created. Returns the created link.
*/
    createBusinessChatLink(options: Omit<CreateBusinessChatLink, '@type'>): Promise<BusinessChatLink>;
    /**
Edits a business chat link of the current account. Requires Telegram Business subscription. Returns the edited link.
*/
    editBusinessChatLink(options: Omit<EditBusinessChatLink, '@type'>): Promise<BusinessChatLink>;
    /**
Deletes a business chat link of the current account.
*/
    deleteBusinessChatLink(options: Omit<DeleteBusinessChatLink, '@type'>): Promise<Ok>;
    /**
Returns information about a business chat link.
*/
    getBusinessChatLinkInfo(options: Omit<GetBusinessChatLinkInfo, '@type'>): Promise<BusinessChatLinkInfo>;
    /**
Returns an HTTPS link, which can be used to get information about the current user.
*/
    getUserLink(): Promise<UserLink>;
    /**
Searches a user by a token from the user's link.
*/
    searchUserByToken(options: Omit<SearchUserByToken, '@type'>): Promise<User>;
    /**
Sets the list of commands supported by the bot for the given user scope and language; for bots only.
*/
    setCommands(options: Omit<SetCommands, '@type'>): Promise<Ok>;
    /**
Deletes commands supported by the bot for the given user scope and language; for bots only.
*/
    deleteCommands(options: Omit<DeleteCommands, '@type'>): Promise<Ok>;
    /**
Returns the list of commands supported by the bot for the given user scope and language; for bots only.
*/
    getCommands(options: Omit<GetCommands, '@type'>): Promise<BotCommands>;
    /**
Sets menu button for the given user or for all users; for bots only.
*/
    setMenuButton(options: Omit<SetMenuButton, '@type'>): Promise<Ok>;
    /**
Returns menu button set by the bot for the given user; for bots only.
*/
    getMenuButton(options: Omit<GetMenuButton, '@type'>): Promise<BotMenuButton>;
    /**
Sets default administrator rights for adding the bot to basic group and supergroup chats; for bots only.
*/
    setDefaultGroupAdministratorRights(options: Omit<SetDefaultGroupAdministratorRights, '@type'>): Promise<Ok>;
    /**
Sets default administrator rights for adding the bot to channel chats; for bots only.
*/
    setDefaultChannelAdministratorRights(options: Omit<SetDefaultChannelAdministratorRights, '@type'>): Promise<Ok>;
    /**
Checks whether the specified bot can send messages to the user. Returns a 404 error if can't and the access can be
granted by call to allowBotToSendMessages.
*/
    canBotSendMessages(options: Omit<CanBotSendMessages, '@type'>): Promise<Ok>;
    /**
Allows the specified bot to send messages to the user.
*/
    allowBotToSendMessages(options: Omit<AllowBotToSendMessages, '@type'>): Promise<Ok>;
    /**
Sends a custom request from a Web App.
*/
    sendWebAppCustomRequest(options: Omit<SendWebAppCustomRequest, '@type'>): Promise<CustomRequestResult>;
    /**
Returns the list of media previews of a bot.
*/
    getBotMediaPreviews(options: Omit<GetBotMediaPreviews, '@type'>): Promise<BotMediaPreviews>;
    /**
Returns the list of media previews for the given language and the list of languages for which the bot has dedicated
previews.
*/
    getBotMediaPreviewInfo(options: Omit<GetBotMediaPreviewInfo, '@type'>): Promise<BotMediaPreviewInfo>;
    /**
Adds a new media preview to the beginning of the list of media previews of a bot. Returns the added preview after
addition is completed server-side. The total number of previews must not exceed getOption("bot_media_preview_count_max")
for the given language.
*/
    addBotMediaPreview(options: Omit<AddBotMediaPreview, '@type'>): Promise<BotMediaPreview>;
    /**
Replaces media preview in the list of media previews of a bot. Returns the new preview after edit is completed
server-side.
*/
    editBotMediaPreview(options: Omit<EditBotMediaPreview, '@type'>): Promise<BotMediaPreview>;
    /**
Changes order of media previews in the list of media previews of a bot.
*/
    reorderBotMediaPreviews(options: Omit<ReorderBotMediaPreviews, '@type'>): Promise<Ok>;
    /**
Delete media previews from the list of media previews of a bot.
*/
    deleteBotMediaPreviews(options: Omit<DeleteBotMediaPreviews, '@type'>): Promise<Ok>;
    /**
Sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true.
*/
    setBotName(options: Omit<SetBotName, '@type'>): Promise<Ok>;
    /**
Returns the name of a bot in the given language. Can be called only if userTypeBot.can_be_edited == true.
*/
    getBotName(options: Omit<GetBotName, '@type'>): Promise<Text>;
    /**
Changes a profile photo for a bot.
*/
    setBotProfilePhoto(options: Omit<SetBotProfilePhoto, '@type'>): Promise<Ok>;
    /**
Changes active state for a username of a bot. The editable username can't be disabled. May return an error with a
message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached. Can be called only if
userTypeBot.can_be_edited == true.
*/
    toggleBotUsernameIsActive(options: Omit<ToggleBotUsernameIsActive, '@type'>): Promise<Ok>;
    /**
Changes order of active usernames of a bot. Can be called only if userTypeBot.can_be_edited == true.
*/
    reorderBotActiveUsernames(options: Omit<ReorderBotActiveUsernames, '@type'>): Promise<Ok>;
    /**
Sets the text shown in the chat with a bot if the chat is empty. Can be called only if userTypeBot.can_be_edited ==
true.
*/
    setBotInfoDescription(options: Omit<SetBotInfoDescription, '@type'>): Promise<Ok>;
    /**
Returns the text shown in the chat with a bot if the chat is empty in the given language. Can be called only if
userTypeBot.can_be_edited == true.
*/
    getBotInfoDescription(options: Omit<GetBotInfoDescription, '@type'>): Promise<Text>;
    /**
Sets the text shown on a bot's profile page and sent together with the link when users share the bot. Can be called only
if userTypeBot.can_be_edited == true.
*/
    setBotInfoShortDescription(options: Omit<SetBotInfoShortDescription, '@type'>): Promise<Ok>;
    /**
Returns the text shown on a bot's profile page and sent together with the link when users share the bot in the given
language. Can be called only if userTypeBot.can_be_edited == true.
*/
    getBotInfoShortDescription(options: Omit<GetBotInfoShortDescription, '@type'>): Promise<Text>;
    /**
Changes the verification status of a user or a chat by an owned bot.
*/
    setMessageSenderBotVerification(options: Omit<SetMessageSenderBotVerification, '@type'>): Promise<Ok>;
    /**
Removes the verification status of a user or a chat by an owned bot.
*/
    removeMessageSenderBotVerification(options: Omit<RemoveMessageSenderBotVerification, '@type'>): Promise<Ok>;
    /**
Returns all active sessions of the current user.
*/
    getActiveSessions(): Promise<Sessions>;
    /**
Terminates a session of the current user.
*/
    terminateSession(options: Omit<TerminateSession, '@type'>): Promise<Ok>;
    /**
Terminates all other sessions of the current user.
*/
    terminateAllOtherSessions(): Promise<Ok>;
    /**
Confirms an unconfirmed session of the current user from another device.
*/
    confirmSession(options: Omit<ConfirmSession, '@type'>): Promise<Ok>;
    /**
Toggles whether a session can accept incoming calls.
*/
    toggleSessionCanAcceptCalls(options: Omit<ToggleSessionCanAcceptCalls, '@type'>): Promise<Ok>;
    /**
Toggles whether a session can accept incoming secret chats.
*/
    toggleSessionCanAcceptSecretChats(options: Omit<ToggleSessionCanAcceptSecretChats, '@type'>): Promise<Ok>;
    /**
Changes the period of inactivity after which sessions will automatically be terminated.
*/
    setInactiveSessionTtl(options: Omit<SetInactiveSessionTtl, '@type'>): Promise<Ok>;
    /**
Returns all website where the current user used Telegram to log in.
*/
    getConnectedWebsites(): Promise<ConnectedWebsites>;
    /**
Disconnects website from the current user's Telegram account.
*/
    disconnectWebsite(options: Omit<DisconnectWebsite, '@type'>): Promise<Ok>;
    /**
Disconnects all websites from the current user's Telegram account.
*/
    disconnectAllWebsites(): Promise<Ok>;
    /**
Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel.
*/
    setSupergroupUsername(options: Omit<SetSupergroupUsername, '@type'>): Promise<Ok>;
    /**
Changes active state for a username of a supergroup or channel, requires owner privileges in the supergroup or channel.
The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum
number of active usernames has been reached.
*/
    toggleSupergroupUsernameIsActive(options: Omit<ToggleSupergroupUsernameIsActive, '@type'>): Promise<Ok>;
    /**
Disables all active non-editable usernames of a supergroup or channel, requires owner privileges in the supergroup or
channel.
*/
    disableAllSupergroupUsernames(options: Omit<DisableAllSupergroupUsernames, '@type'>): Promise<Ok>;
    /**
Changes order of active usernames of a supergroup or channel, requires owner privileges in the supergroup or channel.
*/
    reorderSupergroupActiveUsernames(options: Omit<ReorderSupergroupActiveUsernames, '@type'>): Promise<Ok>;
    /**
Changes the sticker set of a supergroup; requires can_change_info administrator right.
*/
    setSupergroupStickerSet(options: Omit<SetSupergroupStickerSet, '@type'>): Promise<Ok>;
    /**
Changes the custom emoji sticker set of a supergroup; requires can_change_info administrator right. The chat must have
at least chatBoostFeatures.min_custom_emoji_sticker_set_boost_level boost level to pass the corresponding color.
*/
    setSupergroupCustomEmojiStickerSet(options: Omit<SetSupergroupCustomEmojiStickerSet, '@type'>): Promise<Ok>;
    /**
Changes the number of times the supergroup must be boosted by a user to ignore slow mode and chat permission
restrictions; requires can_restrict_members administrator right.
*/
    setSupergroupUnrestrictBoostCount(options: Omit<SetSupergroupUnrestrictBoostCount, '@type'>): Promise<Ok>;
    /**
Toggles whether sender signature or link to the account is added to sent messages in a channel; requires can_change_info
member right.
*/
    toggleSupergroupSignMessages(options: Omit<ToggleSupergroupSignMessages, '@type'>): Promise<Ok>;
    /**
Toggles whether joining is mandatory to send messages to a discussion supergroup; requires can_restrict_members
administrator right.
*/
    toggleSupergroupJoinToSendMessages(options: Omit<ToggleSupergroupJoinToSendMessages, '@type'>): Promise<Ok>;
    /**
Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires
can_restrict_members administrator right.
*/
    toggleSupergroupJoinByRequest(options: Omit<ToggleSupergroupJoinByRequest, '@type'>): Promise<Ok>;
    /**
Toggles whether the message history of a supergroup is available to new members; requires can_change_info member right.
*/
    toggleSupergroupIsAllHistoryAvailable(options: Omit<ToggleSupergroupIsAllHistoryAvailable, '@type'>): Promise<Ok>;
    /**
Toggles whether sponsored messages are shown in the channel chat; requires owner privileges in the channel. The chat
must have at least chatBoostFeatures.min_sponsored_message_disable_boost_level boost level to disable sponsored
messages.
*/
    toggleSupergroupCanHaveSponsoredMessages(options: Omit<ToggleSupergroupCanHaveSponsoredMessages, '@type'>): Promise<Ok>;
    /**
Toggles whether non-administrators can receive only administrators and bots using getSupergroupMembers or
searchChatMembers. Can be called only if supergroupFullInfo.can_hide_members == true.
*/
    toggleSupergroupHasHiddenMembers(options: Omit<ToggleSupergroupHasHiddenMembers, '@type'>): Promise<Ok>;
    /**
Toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if
supergroupFullInfo.can_toggle_aggressive_anti_spam == true.
*/
    toggleSupergroupHasAggressiveAntiSpamEnabled(options: Omit<ToggleSupergroupHasAggressiveAntiSpamEnabled, '@type'>): Promise<Ok>;
    /**
Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be
converted to forums.
*/
    toggleSupergroupIsForum(options: Omit<ToggleSupergroupIsForum, '@type'>): Promise<Ok>;
    /**
Upgrades supergroup to a broadcast group; requires owner privileges in the supergroup.
*/
    toggleSupergroupIsBroadcastGroup(options: Omit<ToggleSupergroupIsBroadcastGroup, '@type'>): Promise<Ok>;
    /**
Reports messages in a supergroup as spam; requires administrator rights in the supergroup.
*/
    reportSupergroupSpam(options: Omit<ReportSupergroupSpam, '@type'>): Promise<Ok>;
    /**
Reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup.
Can be called only for messages from chatEventMessageDeleted with can_report_anti_spam_false_positive == true.
*/
    reportSupergroupAntiSpamFalsePositive(options: Omit<ReportSupergroupAntiSpamFalsePositive, '@type'>): Promise<Ok>;
    /**
Returns information about members or banned users in a supergroup or channel. Can be used only if
supergroupFullInfo.can_get_members == true; additionally, administrator privileges may be required for some filters.
*/
    getSupergroupMembers(options: Omit<GetSupergroupMembers, '@type'>): Promise<ChatMembers>;
    /**
Closes a secret chat, effectively transferring its state to secretChatStateClosed.
*/
    closeSecretChat(options: Omit<CloseSecretChat, '@type'>): Promise<Ok>;
    /**
Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only for
supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order
of decreasing event_id).
*/
    getChatEventLog(options: Omit<GetChatEventLog, '@type'>): Promise<ChatEvents>;
    /**
Returns the list of supported time zones.
*/
    getTimeZones(): Promise<TimeZones>;
    /**
Returns an invoice payment form. This method must be called when the user presses inline button of the type
inlineKeyboardButtonTypeBuy, or wants to buy access to media in a messagePaidMedia message.
*/
    getPaymentForm(options: Omit<GetPaymentForm, '@type'>): Promise<PaymentForm>;
    /**
Validates the order information provided by a user and returns the available shipping options for a flexible invoice.
*/
    validateOrderInfo(options: Omit<ValidateOrderInfo, '@type'>): Promise<ValidatedOrderInfo>;
    /**
Sends a filled-out payment form to the bot for final verification.
*/
    sendPaymentForm(options: Omit<SendPaymentForm, '@type'>): Promise<PaymentResult>;
    /**
Returns information about a successful payment.
*/
    getPaymentReceipt(options: Omit<GetPaymentReceipt, '@type'>): Promise<PaymentReceipt>;
    /**
Returns saved order information. Returns a 404 error if there is no saved order information.
*/
    getSavedOrderInfo(): Promise<OrderInfo>;
    /**
Deletes saved order information.
*/
    deleteSavedOrderInfo(): Promise<Ok>;
    /**
Deletes saved credentials for all payment provider bots.
*/
    deleteSavedCredentials(): Promise<Ok>;
    /**
Returns gifts that can be sent to other users and channel chats.
*/
    getAvailableGifts(): Promise<Gifts>;
    /**
Sends a gift to another user or channel chat. May return an error with a message "STARGIFT_USAGE_LIMITED" if the gift
was sold out.
*/
    sendGift(options: Omit<SendGift, '@type'>): Promise<Ok>;
    /**
Sells a gift for Telegram Stars.
*/
    sellGift(options: Omit<SellGift, '@type'>): Promise<Ok>;
    /**
Toggles whether a gift is shown on the current user's or the channel's profile page; requires can_post_messages
administrator right in the channel chat.
*/
    toggleGiftIsSaved(options: Omit<ToggleGiftIsSaved, '@type'>): Promise<Ok>;
    /**
Changes the list of pinned gifts on the current user's or the channel's profile page; requires can_post_messages
administrator right in the channel chat.
*/
    setPinnedGifts(options: Omit<SetPinnedGifts, '@type'>): Promise<Ok>;
    /**
Toggles whether notifications for new gifts received by a channel chat are sent to the current user; requires
can_post_messages administrator right in the chat.
*/
    toggleChatGiftNotifications(options: Omit<ToggleChatGiftNotifications, '@type'>): Promise<Ok>;
    /**
Returns examples of possible upgraded gifts for a regular gift.
*/
    getGiftUpgradePreview(options: Omit<GetGiftUpgradePreview, '@type'>): Promise<GiftUpgradePreview>;
    /**
Upgrades a regular gift.
*/
    upgradeGift(options: Omit<UpgradeGift, '@type'>): Promise<UpgradeGiftResult>;
    /**
Sends an upgraded gift to another user or a channel chat.
*/
    transferGift(options: Omit<TransferGift, '@type'>): Promise<Ok>;
    /**
Returns gifts received by the given user or chat.
*/
    getReceivedGifts(options: Omit<GetReceivedGifts, '@type'>): Promise<ReceivedGifts>;
    /**
Returns information about a received gift.
*/
    getReceivedGift(options: Omit<GetReceivedGift, '@type'>): Promise<ReceivedGift>;
    /**
Returns information about an upgraded gift by its name.
*/
    getUpgradedGift(options: Omit<GetUpgradedGift, '@type'>): Promise<UpgradedGift>;
    /**
Returns a URL for upgraded gift withdrawal in the TON blockchain as an NFT; requires owner privileges for gifts owned by
a chat.
*/
    getUpgradedGiftWithdrawalUrl(options: Omit<GetUpgradedGiftWithdrawalUrl, '@type'>): Promise<HttpUrl>;
    /**
Creates a link for the given invoice; for bots only.
*/
    createInvoiceLink(options: Omit<CreateInvoiceLink, '@type'>): Promise<HttpUrl>;
    /**
Refunds a previously done payment in Telegram Stars; for bots only.
*/
    refundStarPayment(options: Omit<RefundStarPayment, '@type'>): Promise<Ok>;
    /**
Returns a user that can be contacted to get support.
*/
    getSupportUser(): Promise<User>;
    /**
Constructs a persistent HTTP URL for a background.
*/
    getBackgroundUrl(options: Omit<GetBackgroundUrl, '@type'>): Promise<HttpUrl>;
    /**
Searches for a background by its name.
*/
    searchBackground(options: Omit<SearchBackground, '@type'>): Promise<Background>;
    /**
Sets default background for chats; adds the background to the list of installed backgrounds.
*/
    setDefaultBackground(options: Omit<SetDefaultBackground, '@type'>): Promise<Background>;
    /**
Deletes default background for chats.
*/
    deleteDefaultBackground(options: Omit<DeleteDefaultBackground, '@type'>): Promise<Ok>;
    /**
Returns backgrounds installed by the user.
*/
    getInstalledBackgrounds(options: Omit<GetInstalledBackgrounds, '@type'>): Promise<Backgrounds>;
    /**
Removes background from the list of installed backgrounds.
*/
    removeInstalledBackground(options: Omit<RemoveInstalledBackground, '@type'>): Promise<Ok>;
    /**
Resets list of installed backgrounds to its default value.
*/
    resetInstalledBackgrounds(): Promise<Ok>;
    /**
Returns information about the current localization target. This is an offline request if only_local is true. Can be
called before authorization.
*/
    getLocalizationTargetInfo(options: Omit<GetLocalizationTargetInfo, '@type'>): Promise<LocalizationTargetInfo>;
    /**
Returns information about a language pack. Returned language pack identifier may be different from a provided one. Can
be called before authorization.
*/
    getLanguagePackInfo(options: Omit<GetLanguagePackInfo, '@type'>): Promise<LanguagePackInfo>;
    /**
Returns strings from a language pack in the current localization target by their keys. Can be called before
authorization.
*/
    getLanguagePackStrings(options: Omit<GetLanguagePackStrings, '@type'>): Promise<LanguagePackStrings>;
    /**
Fetches the latest versions of all strings from a language pack in the current localization target from the server. This
method doesn't need to be called explicitly for the current used/base language packs. Can be called before
authorization.
*/
    synchronizeLanguagePack(options: Omit<SynchronizeLanguagePack, '@type'>): Promise<Ok>;
    /**
Adds a custom server language pack to the list of installed language packs in current localization target. Can be called
before authorization.
*/
    addCustomServerLanguagePack(options: Omit<AddCustomServerLanguagePack, '@type'>): Promise<Ok>;
    /**
Adds or changes a custom local language pack to the current localization target.
*/
    setCustomLanguagePack(options: Omit<SetCustomLanguagePack, '@type'>): Promise<Ok>;
    /**
Edits information about a custom local language pack in the current localization target. Can be called before
authorization.
*/
    editCustomLanguagePackInfo(options: Omit<EditCustomLanguagePackInfo, '@type'>): Promise<Ok>;
    /**
Adds, edits or deletes a string in a custom local language pack. Can be called before authorization.
*/
    setCustomLanguagePackString(options: Omit<SetCustomLanguagePackString, '@type'>): Promise<Ok>;
    /**
Deletes all information about a language pack in the current localization target. The language pack which is currently
in use (including base language pack) or is being synchronized can't be deleted. Can be called before authorization.
*/
    deleteLanguagePack(options: Omit<DeleteLanguagePack, '@type'>): Promise<Ok>;
    /**
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push
notification subscription.
*/
    registerDevice(options: Omit<RegisterDevice, '@type'>): Promise<PushReceiverId>;
    /**
Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the
server is required to fetch new data. Can be called before authorization.
*/
    processPushNotification(options: Omit<ProcessPushNotification, '@type'>): Promise<Ok>;
    /**
Returns a globally unique push notification subscription identifier for identification of an account, which has received
a push notification. Can be called synchronously.
*/
    getPushReceiverId(options: Omit<GetPushReceiverId, '@type'>): Promise<PushReceiverId>;
    /**
Returns t.me URLs recently visited by a newly registered user.
*/
    getRecentlyVisitedTMeUrls(options: Omit<GetRecentlyVisitedTMeUrls, '@type'>): Promise<TMeUrls>;
    /**
Changes user privacy settings.
*/
    setUserPrivacySettingRules(options: Omit<SetUserPrivacySettingRules, '@type'>): Promise<Ok>;
    /**
Returns the current privacy settings.
*/
    getUserPrivacySettingRules(options: Omit<GetUserPrivacySettingRules, '@type'>): Promise<UserPrivacySettingRules>;
    /**
Changes privacy settings for message read date.
*/
    setReadDatePrivacySettings(options: Omit<SetReadDatePrivacySettings, '@type'>): Promise<Ok>;
    /**
Returns privacy settings for message read date.
*/
    getReadDatePrivacySettings(): Promise<ReadDatePrivacySettings>;
    /**
Changes privacy settings for new chat creation; can be used only if getOption("can_set_new_chat_privacy_settings").
*/
    setNewChatPrivacySettings(options: Omit<SetNewChatPrivacySettings, '@type'>): Promise<Ok>;
    /**
Returns privacy settings for new chat creation.
*/
    getNewChatPrivacySettings(): Promise<NewChatPrivacySettings>;
    /**
Returns the total number of Telegram Stars received by the current user for paid messages from the given user.
*/
    getPaidMessageRevenue(options: Omit<GetPaidMessageRevenue, '@type'>): Promise<StarCount>;
    /**
Allows the specified user to send unpaid private messages to the current user by adding a rule to
userPrivacySettingAllowUnpaidMessages.
*/
    allowUnpaidMessagesFromUser(options: Omit<AllowUnpaidMessagesFromUser, '@type'>): Promise<Ok>;
    /**
Changes the amount of Telegram Stars that must be paid to send a message to a supergroup chat; requires
can_restrict_members administrator right and supergroupFullInfo.can_enable_paid_messages.
*/
    setChatPaidMessageStarCount(options: Omit<SetChatPaidMessageStarCount, '@type'>): Promise<Ok>;
    /**
Check whether the current user can message another user or try to create a chat with them.
*/
    canSendMessageToUser(options: Omit<CanSendMessageToUser, '@type'>): Promise<CanSendMessageToUserResult>;
    /**
Returns the value of an option by its name. (Check the list of available options on
https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options
"version" and "commit_hash".
*/
    getOption(options: Omit<GetOption, '@type'>): Promise<OptionValue>;
    /**
Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only
writable options can be set. Can be called before authorization.
*/
    setOption(options: Omit<SetOption, '@type'>): Promise<Ok>;
    /**
Changes the period of inactivity after which the account of the current user will automatically be deleted.
*/
    setAccountTtl(options: Omit<SetAccountTtl, '@type'>): Promise<Ok>;
    /**
Returns the period of inactivity after which the account of the current user will automatically be deleted.
*/
    getAccountTtl(): Promise<AccountTtl>;
    /**
Deletes the account of the current user, deleting all information associated with the user from the server. The phone
number of the account can be used to create a new account. Can be called before authorization when the current
authorization state is authorizationStateWaitPassword.
*/
    deleteAccount(options: Omit<DeleteAccount, '@type'>): Promise<Ok>;
    /**
Changes the default message auto-delete time for new chats.
*/
    setDefaultMessageAutoDeleteTime(options: Omit<SetDefaultMessageAutoDeleteTime, '@type'>): Promise<Ok>;
    /**
Returns default message auto-delete time setting for new chats.
*/
    getDefaultMessageAutoDeleteTime(): Promise<MessageAutoDeleteTime>;
    /**
Removes a chat action bar without any other action.
*/
    removeChatActionBar(options: Omit<RemoveChatActionBar, '@type'>): Promise<Ok>;
    /**
Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if
chat.can_be_reported.
*/
    reportChat(options: Omit<ReportChat, '@type'>): Promise<ReportChatResult>;
    /**
Reports a chat photo to the Telegram moderators. A chat photo can be reported only if chat.can_be_reported.
*/
    reportChatPhoto(options: Omit<ReportChatPhoto, '@type'>): Promise<Ok>;
    /**
Reports reactions set on a message to the Telegram moderators. Reactions on a message can be reported only if
messageProperties.can_report_reactions.
*/
    reportMessageReactions(options: Omit<ReportMessageReactions, '@type'>): Promise<Ok>;
    /**
Returns detailed revenue statistics about a chat. Currently, this method can be used only for channels if
supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics ==
true.
*/
    getChatRevenueStatistics(options: Omit<GetChatRevenueStatistics, '@type'>): Promise<ChatRevenueStatistics>;
    /**
Returns a URL for chat revenue withdrawal; requires owner privileges in the channel chat or the bot. Currently, this
method can be used only if getOption("can_withdraw_chat_revenue") for channels with
supergroupFullInfo.can_get_revenue_statistics == true or bots with userFullInfo.bot_info.can_get_revenue_statistics ==
true.
*/
    getChatRevenueWithdrawalUrl(options: Omit<GetChatRevenueWithdrawalUrl, '@type'>): Promise<HttpUrl>;
    /**
Returns the list of revenue transactions for a chat. Currently, this method can be used only for channels if
supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics ==
true.
*/
    getChatRevenueTransactions(options: Omit<GetChatRevenueTransactions, '@type'>): Promise<ChatRevenueTransactions>;
    /**
Returns detailed Telegram Star revenue statistics.
*/
    getStarRevenueStatistics(options: Omit<GetStarRevenueStatistics, '@type'>): Promise<StarRevenueStatistics>;
    /**
Returns a URL for Telegram Star withdrawal.
*/
    getStarWithdrawalUrl(options: Omit<GetStarWithdrawalUrl, '@type'>): Promise<HttpUrl>;
    /**
Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for the chat paid in the
owned Telegram Stars.
*/
    getStarAdAccountUrl(options: Omit<GetStarAdAccountUrl, '@type'>): Promise<HttpUrl>;
    /**
Returns detailed statistics about a chat. Currently, this method can be used only for supergroups and channels. Can be
used only if supergroupFullInfo.can_get_statistics == true.
*/
    getChatStatistics(options: Omit<GetChatStatistics, '@type'>): Promise<ChatStatistics>;
    /**
Returns detailed statistics about a message. Can be used only if messageProperties.can_get_statistics == true.
*/
    getMessageStatistics(options: Omit<GetMessageStatistics, '@type'>): Promise<MessageStatistics>;
    /**
Returns forwarded copies of a channel message to different public channels and public reposts as a story. Can be used
only if messageProperties.can_get_statistics == true. For optimal performance, the number of returned messages and
stories is chosen by TDLib.
*/
    getMessagePublicForwards(options: Omit<GetMessagePublicForwards, '@type'>): Promise<PublicForwards>;
    /**
Returns detailed statistics about a story. Can be used only if story.can_get_statistics == true.
*/
    getStoryStatistics(options: Omit<GetStoryStatistics, '@type'>): Promise<StoryStatistics>;
    /**
Loads an asynchronous or a zoomed in statistical graph.
*/
    getStatisticalGraph(options: Omit<GetStatisticalGraph, '@type'>): Promise<StatisticalGraph>;
    /**
Returns storage usage statistics. Can be called before authorization.
*/
    getStorageStatistics(options: Omit<GetStorageStatistics, '@type'>): Promise<StorageStatistics>;
    /**
Quickly returns approximate storage usage statistics. Can be called before authorization.
*/
    getStorageStatisticsFast(): Promise<StorageStatisticsFast>;
    /**
Returns database statistics.
*/
    getDatabaseStatistics(): Promise<DatabaseStatistics>;
    /**
Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be
deleted.
*/
    optimizeStorage(options: Omit<OptimizeStorage, '@type'>): Promise<StorageStatistics>;
    /**
Sets the current network type. Can be called before authorization. Calling this method forces all network connections to
reopen, mitigating the delay in switching between different networks, so it must be called whenever the network is
changed, even if the network type remains the same. Network type is used to check whether the library can use the
network at all and also for collecting detailed network data usage statistics.
*/
    setNetworkType(options: Omit<SetNetworkType, '@type'>): Promise<Ok>;
    /**
Returns network data usage statistics. Can be called before authorization.
*/
    getNetworkStatistics(options: Omit<GetNetworkStatistics, '@type'>): Promise<NetworkStatistics>;
    /**
Adds the specified data to data usage statistics. Can be called before authorization.
*/
    addNetworkStatistics(options: Omit<AddNetworkStatistics, '@type'>): Promise<Ok>;
    /**
Resets all network data usage statistics to zero. Can be called before authorization.
*/
    resetNetworkStatistics(): Promise<Ok>;
    /**
Returns auto-download settings presets for the current user.
*/
    getAutoDownloadSettingsPresets(): Promise<AutoDownloadSettingsPresets>;
    /**
Sets auto-download settings.
*/
    setAutoDownloadSettings(options: Omit<SetAutoDownloadSettings, '@type'>): Promise<Ok>;
    /**
Returns autosave settings for the current user.
*/
    getAutosaveSettings(): Promise<AutosaveSettings>;
    /**
Sets autosave settings for the given scope. The method is guaranteed to work only after at least one call to
getAutosaveSettings.
*/
    setAutosaveSettings(options: Omit<SetAutosaveSettings, '@type'>): Promise<Ok>;
    /**
Clears the list of all autosave settings exceptions. The method is guaranteed to work only after at least one call to
getAutosaveSettings.
*/
    clearAutosaveSettingsExceptions(): Promise<Ok>;
    /**
Returns information about a bank card.
*/
    getBankCardInfo(options: Omit<GetBankCardInfo, '@type'>): Promise<BankCardInfo>;
    /**
Returns one of the available Telegram Passport elements.
*/
    getPassportElement(options: Omit<GetPassportElement, '@type'>): Promise<PassportElement>;
    /**
Returns all available Telegram Passport elements.
*/
    getAllPassportElements(options: Omit<GetAllPassportElements, '@type'>): Promise<PassportElements>;
    /**
Adds an element to the user's Telegram Passport. May return an error with a message "PHONE_VERIFICATION_NEEDED" or
"EMAIL_VERIFICATION_NEEDED" if the chosen phone number or the chosen email address must be verified first.
*/
    setPassportElement(options: Omit<SetPassportElement, '@type'>): Promise<PassportElement>;
    /**
Deletes a Telegram Passport element.
*/
    deletePassportElement(options: Omit<DeletePassportElement, '@type'>): Promise<Ok>;
    /**
Informs the user that some of the elements in their Telegram Passport contain errors; for bots only. The user will not
be able to resend the elements, until the errors are fixed.
*/
    setPassportElementErrors(options: Omit<SetPassportElementErrors, '@type'>): Promise<Ok>;
    /**
Returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in
Telegram Passport personal details. Returns a 404 error if unknown.
*/
    getPreferredCountryLanguage(options: Omit<GetPreferredCountryLanguage, '@type'>): Promise<Text>;
    /**
Sends a code to verify an email address to be added to a user's Telegram Passport.
*/
    sendEmailAddressVerificationCode(options: Omit<SendEmailAddressVerificationCode, '@type'>): Promise<EmailAddressAuthenticationCodeInfo>;
    /**
Resends the code to verify an email address to be added to a user's Telegram Passport.
*/
    resendEmailAddressVerificationCode(): Promise<EmailAddressAuthenticationCodeInfo>;
    /**
Checks the email address verification code for Telegram Passport.
*/
    checkEmailAddressVerificationCode(options: Omit<CheckEmailAddressVerificationCode, '@type'>): Promise<Ok>;
    /**
Returns a Telegram Passport authorization form for sharing data with a service.
*/
    getPassportAuthorizationForm(options: Omit<GetPassportAuthorizationForm, '@type'>): Promise<PassportAuthorizationForm>;
    /**
Returns already available Telegram Passport elements suitable for completing a Telegram Passport authorization form.
Result can be received only once for each authorization form.
*/
    getPassportAuthorizationFormAvailableElements(options: Omit<GetPassportAuthorizationFormAvailableElements, '@type'>): Promise<PassportElementsWithErrors>;
    /**
Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called
after getPassportAuthorizationFormAvailableElements if some previously available elements are going to be reused.
*/
    sendPassportAuthorizationForm(options: Omit<SendPassportAuthorizationForm, '@type'>): Promise<Ok>;
    /**
Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots
only.
*/
    setBotUpdatesStatus(options: Omit<SetBotUpdatesStatus, '@type'>): Promise<Ok>;
    /**
Uploads a file with a sticker; returns the uploaded file.
*/
    uploadStickerFile(options: Omit<UploadStickerFile, '@type'>): Promise<File>;
    /**
Returns a suggested name for a new sticker set with a given title.
*/
    getSuggestedStickerSetName(options: Omit<GetSuggestedStickerSetName, '@type'>): Promise<Text>;
    /**
Checks whether a name can be used for a new sticker set.
*/
    checkStickerSetName(options: Omit<CheckStickerSetName, '@type'>): Promise<CheckStickerSetNameResult>;
    /**
Creates a new sticker set. Returns the newly created sticker set.
*/
    createNewStickerSet(options: Omit<CreateNewStickerSet, '@type'>): Promise<StickerSet>;
    /**
Adds a new sticker to a set.
*/
    addStickerToSet(options: Omit<AddStickerToSet, '@type'>): Promise<Ok>;
    /**
Replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then
setStickerPositionInSet.
*/
    replaceStickerInSet(options: Omit<ReplaceStickerInSet, '@type'>): Promise<Ok>;
    /**
Sets a sticker set thumbnail.
*/
    setStickerSetThumbnail(options: Omit<SetStickerSetThumbnail, '@type'>): Promise<Ok>;
    /**
Sets a custom emoji sticker set thumbnail.
*/
    setCustomEmojiStickerSetThumbnail(options: Omit<SetCustomEmojiStickerSetThumbnail, '@type'>): Promise<Ok>;
    /**
Sets a sticker set title.
*/
    setStickerSetTitle(options: Omit<SetStickerSetTitle, '@type'>): Promise<Ok>;
    /**
Completely deletes a sticker set.
*/
    deleteStickerSet(options: Omit<DeleteStickerSet, '@type'>): Promise<Ok>;
    /**
Changes the position of a sticker in the set to which it belongs. The sticker set must be owned by the current user.
*/
    setStickerPositionInSet(options: Omit<SetStickerPositionInSet, '@type'>): Promise<Ok>;
    /**
Removes a sticker from the set to which it belongs. The sticker set must be owned by the current user.
*/
    removeStickerFromSet(options: Omit<RemoveStickerFromSet, '@type'>): Promise<Ok>;
    /**
Changes the list of emojis corresponding to a sticker. The sticker must belong to a regular or custom emoji sticker set
that is owned by the current user.
*/
    setStickerEmojis(options: Omit<SetStickerEmojis, '@type'>): Promise<Ok>;
    /**
Changes the list of keywords of a sticker. The sticker must belong to a regular or custom emoji sticker set that is
owned by the current user.
*/
    setStickerKeywords(options: Omit<SetStickerKeywords, '@type'>): Promise<Ok>;
    /**
Changes the mask position of a mask sticker. The sticker must belong to a mask sticker set that is owned by the current
user.
*/
    setStickerMaskPosition(options: Omit<SetStickerMaskPosition, '@type'>): Promise<Ok>;
    /**
Returns sticker sets owned by the current user.
*/
    getOwnedStickerSets(options: Omit<GetOwnedStickerSets, '@type'>): Promise<StickerSets>;
    /**
Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB
can be downloaded.
*/
    getMapThumbnailFile(options: Omit<GetMapThumbnailFile, '@type'>): Promise<File>;
    /**
Returns information about a limit, increased for Premium users. Returns a 404 error if the limit is unknown.
*/
    getPremiumLimit(options: Omit<GetPremiumLimit, '@type'>): Promise<PremiumLimit>;
    /**
Returns information about features, available to Premium users.
*/
    getPremiumFeatures(options: Omit<GetPremiumFeatures, '@type'>): Promise<PremiumFeatures>;
    /**
Returns examples of premium stickers for demonstration purposes.
*/
    getPremiumStickerExamples(): Promise<Stickers>;
    /**
Returns the sticker to be used as representation of the Telegram Premium subscription.
*/
    getPremiumInfoSticker(options: Omit<GetPremiumInfoSticker, '@type'>): Promise<Sticker>;
    /**
Informs TDLib that the user viewed detailed information about a Premium feature on the Premium features screen.
*/
    viewPremiumFeature(options: Omit<ViewPremiumFeature, '@type'>): Promise<Ok>;
    /**
Informs TDLib that the user clicked Premium subscription button on the Premium features screen.
*/
    clickPremiumSubscriptionButton(): Promise<Ok>;
    /**
Returns state of Telegram Premium subscription and promotion videos for Premium features.
*/
    getPremiumState(): Promise<PremiumState>;
    /**
Returns available options for gifting Telegram Premium to a user.
*/
    getPremiumGiftPaymentOptions(): Promise<PremiumGiftPaymentOptions>;
    /**
Returns available options for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among
chat members.
*/
    getPremiumGiveawayPaymentOptions(options: Omit<GetPremiumGiveawayPaymentOptions, '@type'>): Promise<PremiumGiveawayPaymentOptions>;
    /**
Return information about a Telegram Premium gift code.
*/
    checkPremiumGiftCode(options: Omit<CheckPremiumGiftCode, '@type'>): Promise<PremiumGiftCodeInfo>;
    /**
Applies a Telegram Premium gift code.
*/
    applyPremiumGiftCode(options: Omit<ApplyPremiumGiftCode, '@type'>): Promise<Ok>;
    /**
Launches a prepaid giveaway.
*/
    launchPrepaidGiveaway(options: Omit<LaunchPrepaidGiveaway, '@type'>): Promise<Ok>;
    /**
Returns information about a giveaway.
*/
    getGiveawayInfo(options: Omit<GetGiveawayInfo, '@type'>): Promise<GiveawayInfo>;
    /**
Returns available options for Telegram Stars purchase.
*/
    getStarPaymentOptions(): Promise<StarPaymentOptions>;
    /**
Returns available options for Telegram Stars gifting.
*/
    getStarGiftPaymentOptions(options: Omit<GetStarGiftPaymentOptions, '@type'>): Promise<StarPaymentOptions>;
    /**
Returns available options for Telegram Star giveaway creation.
*/
    getStarGiveawayPaymentOptions(): Promise<StarGiveawayPaymentOptions>;
    /**
Returns the list of Telegram Star transactions for the specified owner.
*/
    getStarTransactions(options: Omit<GetStarTransactions, '@type'>): Promise<StarTransactions>;
    /**
Returns the list of Telegram Star subscriptions for the current user.
*/
    getStarSubscriptions(options: Omit<GetStarSubscriptions, '@type'>): Promise<StarSubscriptions>;
    /**
Checks whether an in-store purchase is possible. Must be called before any in-store purchase.
*/
    canPurchaseFromStore(options: Omit<CanPurchaseFromStore, '@type'>): Promise<Ok>;
    /**
Informs server about a purchase through App Store. For official applications only.
*/
    assignAppStoreTransaction(options: Omit<AssignAppStoreTransaction, '@type'>): Promise<Ok>;
    /**
Informs server about a purchase through Google Play. For official applications only.
*/
    assignGooglePlayTransaction(options: Omit<AssignGooglePlayTransaction, '@type'>): Promise<Ok>;
    /**
Cancels or re-enables Telegram Star subscription.
*/
    editStarSubscription(options: Omit<EditStarSubscription, '@type'>): Promise<Ok>;
    /**
Cancels or re-enables Telegram Star subscription for a user; for bots only.
*/
    editUserStarSubscription(options: Omit<EditUserStarSubscription, '@type'>): Promise<Ok>;
    /**
Reuses an active Telegram Star subscription to a channel chat and joins the chat again.
*/
    reuseStarSubscription(options: Omit<ReuseStarSubscription, '@type'>): Promise<Ok>;
    /**
Changes affiliate program for a bot.
*/
    setChatAffiliateProgram(options: Omit<SetChatAffiliateProgram, '@type'>): Promise<Ok>;
    /**
Searches a chat with an affiliate program. Returns the chat if found and the program is active.
*/
    searchChatAffiliateProgram(options: Omit<SearchChatAffiliateProgram, '@type'>): Promise<Chat>;
    /**
Searches affiliate programs that can be connected to the given affiliate.
*/
    searchAffiliatePrograms(options: Omit<SearchAffiliatePrograms, '@type'>): Promise<FoundAffiliatePrograms>;
    /**
Connects an affiliate program to the given affiliate. Returns information about the connected affiliate program.
*/
    connectAffiliateProgram(options: Omit<ConnectAffiliateProgram, '@type'>): Promise<ConnectedAffiliateProgram>;
    /**
Disconnects an affiliate program from the given affiliate and immediately deactivates its referral link. Returns updated
information about the disconnected affiliate program.
*/
    disconnectAffiliateProgram(options: Omit<DisconnectAffiliateProgram, '@type'>): Promise<ConnectedAffiliateProgram>;
    /**
Returns an affiliate program that were connected to the given affiliate by identifier of the bot that created the
program.
*/
    getConnectedAffiliateProgram(options: Omit<GetConnectedAffiliateProgram, '@type'>): Promise<ConnectedAffiliateProgram>;
    /**
Returns affiliate programs that were connected to the given affiliate.
*/
    getConnectedAffiliatePrograms(options: Omit<GetConnectedAffiliatePrograms, '@type'>): Promise<ConnectedAffiliatePrograms>;
    /**
Returns information about features, available to Business users.
*/
    getBusinessFeatures(options: Omit<GetBusinessFeatures, '@type'>): Promise<BusinessFeatures>;
    /**
Accepts Telegram terms of services.
*/
    acceptTermsOfService(options: Omit<AcceptTermsOfService, '@type'>): Promise<Ok>;
    /**
Searches specified query by word prefixes in the provided strings. Returns 0-based positions of strings that matched.
Can be called synchronously.
*/
    searchStringsByPrefix(options: Omit<SearchStringsByPrefix, '@type'>): Promise<FoundPositions>;
    /**
Sends a custom request; for bots only.
*/
    sendCustomRequest(options: Omit<SendCustomRequest, '@type'>): Promise<CustomRequestResult>;
    /**
Answers a custom query; for bots only.
*/
    answerCustomQuery(options: Omit<AnswerCustomQuery, '@type'>): Promise<Ok>;
    /**
Succeeds after a specified amount of time has passed. Can be called before initialization.
*/
    setAlarm(options: Omit<SetAlarm, '@type'>): Promise<Ok>;
    /**
Returns information about existing countries. Can be called before authorization.
*/
    getCountries(): Promise<Countries>;
    /**
Uses the current IP address to find the current country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be
called before authorization.
*/
    getCountryCode(): Promise<Text>;
    /**
Returns information about a phone number by its prefix. Can be called before authorization.
*/
    getPhoneNumberInfo(options: Omit<GetPhoneNumberInfo, '@type'>): Promise<PhoneNumberInfo>;
    /**
Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after
changing localization to the specified language if properly localized country information is expected. Can be called
synchronously.
*/
    getPhoneNumberInfoSync(options: Omit<GetPhoneNumberInfoSync, '@type'>): Promise<PhoneNumberInfo>;
    /**
Returns information about a given collectible item that was purchased at https://fragment.com.
*/
    getCollectibleItemInfo(options: Omit<GetCollectibleItemInfo, '@type'>): Promise<CollectibleItemInfo>;
    /**
Returns information about a tg:// deep link. Use "tg://need_update_for_some_feature" or "tg:some_unsupported_feature"
for testing. Returns a 404 error for unknown links. Can be called before authorization.
*/
    getDeepLinkInfo(options: Omit<GetDeepLinkInfo, '@type'>): Promise<DeepLinkInfo>;
    /**
Returns application config, provided by the server. Can be called before authorization.
*/
    getApplicationConfig(): Promise<JsonValue>;
    /**
Saves application log event on the server. Can be called before authorization.
*/
    saveApplicationLogEvent(options: Omit<SaveAppLogEvent, '@type'>): Promise<Ok>;
    /**
Returns the link for downloading official Telegram application to be used when the current user invites friends to
Telegram.
*/
    getApplicationDownloadLink(): Promise<HttpUrl>;
    /**
Adds a proxy server for network requests. Can be called before authorization.
*/
    addProxy(options: Omit<AddProxy, '@type'>): Promise<Proxy>;
    /**
Edits an existing proxy server for network requests. Can be called before authorization.
*/
    editProxy(options: Omit<EditProxy, '@type'>): Promise<Proxy>;
    /**
Enables a proxy. Only one proxy can be enabled at a time. Can be called before authorization.
*/
    enableProxy(options: Omit<EnableProxy, '@type'>): Promise<Ok>;
    /**
Disables the currently enabled proxy. Can be called before authorization.
*/
    disableProxy(): Promise<Ok>;
    /**
Removes a proxy server. Can be called before authorization.
*/
    removeProxy(options: Omit<RemoveProxy, '@type'>): Promise<Ok>;
    /**
Returns the list of proxies that are currently set up. Can be called before authorization.
*/
    getProxies(): Promise<Proxies>;
    /**
Returns an HTTPS link, which can be used to add a proxy. Available only for SOCKS5 and MTProto proxies. Can be called
before authorization.
*/
    getProxyLink(options: Omit<GetProxyLink, '@type'>): Promise<HttpUrl>;
    /**
Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.
*/
    pingProxy(options: Omit<PingProxy, '@type'>): Promise<Seconds>;
    /**
Sets new log stream for internal logging of TDLib. Can be called synchronously.
*/
    setLogStream(options: Omit<SetLogStream, '@type'>): Promise<Ok>;
    /**
Returns information about currently used log stream for internal logging of TDLib. Can be called synchronously.
*/
    getLogStream(): Promise<LogStream>;
    /**
Sets the verbosity level of the internal logging of TDLib. Can be called synchronously.
*/
    setLogVerbosityLevel(options: Omit<SetLogVerbosityLevel, '@type'>): Promise<Ok>;
    /**
Returns current verbosity level of the internal logging of TDLib. Can be called synchronously.
*/
    getLogVerbosityLevel(): Promise<LogVerbosityLevel>;
    /**
Returns the list of available TDLib internal log tags, for example, ["actor", "binlog", "connections", "notifications",
"proxy"]. Can be called synchronously.
*/
    getLogTags(): Promise<LogTags>;
    /**
Sets the verbosity level for a specified TDLib internal log tag. Can be called synchronously.
*/
    setLogTagVerbosityLevel(options: Omit<SetLogTagVerbosityLevel, '@type'>): Promise<Ok>;
    /**
Returns current verbosity level for a specified TDLib internal log tag. Can be called synchronously.
*/
    getLogTagVerbosityLevel(options: Omit<GetLogTagVerbosityLevel, '@type'>): Promise<LogVerbosityLevel>;
    /**
Adds a message to TDLib internal log. Can be called synchronously.
*/
    addLogMessage(options: Omit<AddLogMessage, '@type'>): Promise<Ok>;
    /**
Returns support information for the given user; for Telegram support only.
*/
    getUserSupportInfo(options: Omit<GetUserSupportInfo, '@type'>): Promise<UserSupportInfo>;
    /**
Sets support information for the given user; for Telegram support only.
*/
    setUserSupportInfo(options: Omit<SetUserSupportInfo, '@type'>): Promise<UserSupportInfo>;
    /**
Returns localized name of the Telegram support user; for Telegram support only.
*/
    getSupportName(): Promise<Text>;
    /**
Does nothing; for testing only. This is an offline method. Can be called before authorization.
*/
    testCallEmpty(): Promise<Ok>;
    /**
Returns the received string; for testing only. This is an offline method. Can be called before authorization.
*/
    testCallString(options: Omit<TestCallString, '@type'>): Promise<TestString>;
    /**
Returns the received bytes; for testing only. This is an offline method. Can be called before authorization.
*/
    testCallBytes(options: Omit<TestCallBytes, '@type'>): Promise<TestBytes>;
    /**
Returns the received vector of numbers; for testing only. This is an offline method. Can be called before authorization.
*/
    testCallVectorInt(options: Omit<TestCallVectorInt, '@type'>): Promise<TestVectorInt>;
    /**
Returns the received vector of objects containing a number; for testing only. This is an offline method. Can be called
before authorization.
*/
    testCallVectorIntObject(options: Omit<TestCallVectorIntObject, '@type'>): Promise<TestVectorIntObject>;
    /**
Returns the received vector of strings; for testing only. This is an offline method. Can be called before authorization.
*/
    testCallVectorString(options: Omit<TestCallVectorString, '@type'>): Promise<TestVectorString>;
    /**
Returns the received vector of objects containing a string; for testing only. This is an offline method. Can be called
before authorization.
*/
    testCallVectorStringObject(options: Omit<TestCallVectorStringObject, '@type'>): Promise<TestVectorStringObject>;
    /**
Returns the squared received number; for testing only. This is an offline method. Can be called before authorization.
*/
    testSquareInt(options: Omit<TestSquareInt, '@type'>): Promise<TestInt>;
    /**
Sends a simple network request to the Telegram servers; for testing only. Can be called before authorization.
*/
    testNetwork(): Promise<Ok>;
    /**
Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization.
*/
    testProxy(options: Omit<TestProxy, '@type'>): Promise<Ok>;
    /**
Forces an updates.getDifference call to the Telegram servers; for testing only.
*/
    testGetDifference(): Promise<Ok>;
    /**
Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called
before authorization.
*/
    testUseUpdate(): Promise<Update>;
    /**
Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously.
*/
    testReturnError(options: Omit<TestReturnError, '@type'>): Promise<Error>;
    /**
    Send a request to the actual libtdjson.so here. Do not forget to handle {@link Error} responses and timeouts.
    */
    protected abstract _request<R extends Request>(message: R): Promise<any>;
}
