go-tdlib/data/td_api.json

39603 lines
1.5 MiB
JSON
Raw Permalink Normal View History

2021-10-22 16:24:12 +02:00
{
"types": [
{
"name": "double",
"description": "",
"class": "Double",
"properties": []
},
{
"name": "string",
"description": "",
"class": "String",
"properties": []
},
{
"name": "int32",
"description": "",
"class": "Int32",
"properties": []
},
{
"name": "int53",
"description": "",
"class": "Int53",
"properties": []
},
{
"name": "int64",
"description": "",
"class": "Int64",
"properties": []
},
{
"name": "bytes",
"description": "",
"class": "Bytes",
"properties": []
},
{
"name": "boolFalse",
"description": "",
"class": "Bool",
"properties": []
},
{
"name": "boolTrue",
"description": "",
"class": "Bool",
"properties": []
},
{
"name": "vector\u003ct\u003e",
"description": "",
"class": "Vector\u003cT\u003e",
"properties": []
},
{
"name": "error",
"description": "An object of this type can be returned on every function call, in case of an error",
"class": "Error",
"properties": [
{
"name": "code",
"type": "int32",
"description": "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"
},
{
"name": "message",
"type": "string",
"description": "Error message; subject to future changes"
}
]
},
{
"name": "ok",
"description": "An object of this type is returned on a successful function call for certain functions",
"class": "Ok",
"properties": []
},
{
"name": "authenticationCodeTypeTelegramMessage",
"description": "An authentication code is delivered via a private Telegram message, which can be viewed from another active session",
"class": "AuthenticationCodeType",
"properties": [
{
"name": "length",
"type": "int32",
"description": "Length of the code"
}
]
},
{
"name": "authenticationCodeTypeSms",
2024-10-06 19:09:53 +02:00
"description": "An authentication code is delivered via an SMS message to the specified phone number; applications may not receive this type of code",
2021-10-22 16:24:12 +02:00
"class": "AuthenticationCodeType",
"properties": [
{
"name": "length",
"type": "int32",
"description": "Length of the code"
}
]
},
{
"name": "authenticationCodeTypeCall",
"description": "An authentication code is delivered via a phone call to the specified phone number",
"class": "AuthenticationCodeType",
"properties": [
{
"name": "length",
"type": "int32",
"description": "Length of the code"
}
]
},
{
"name": "authenticationCodeTypeFlashCall",
2022-04-18 22:45:01 +02:00
"description": "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",
2021-10-22 16:24:12 +02:00
"class": "AuthenticationCodeType",
"properties": [
{
"name": "pattern",
"type": "string",
"description": "Pattern of the phone number from which the call will be made"
}
]
},
2021-12-08 10:23:00 +01:00
{
"name": "authenticationCodeTypeMissedCall",
2022-04-18 22:45:01 +02:00
"description": "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",
2021-12-08 10:23:00 +01:00
"class": "AuthenticationCodeType",
"properties": [
{
"name": "phone_number_prefix",
"type": "string",
"description": "Prefix of the phone number from which the call will be made"
},
{
"name": "length",
"type": "int32",
"description": "Number of digits in the code, excluding the prefix"
}
]
},
2023-06-04 22:58:07 +02:00
{
"name": "authenticationCodeTypeFragment",
"description": "An authentication code is delivered to https://fragment.com. The user must be logged in there via a wallet owning the phone number's NFT",
"class": "AuthenticationCodeType",
"properties": [
{
"name": "url",
"type": "string",
"description": "URL to open to receive the code"
},
{
"name": "length",
"type": "int32",
"description": "Length of the code"
}
]
},
2024-10-06 19:09:53 +02:00
{
"name": "authenticationCodeTypeFirebaseAndroid",
"description": "An authentication code is delivered via Firebase Authentication to the official Android application",
"class": "AuthenticationCodeType",
"properties": [
{
"name": "nonce",
"type": "bytes",
"description": "Nonce to pass to the SafetyNet Attestation API"
},
{
"name": "length",
"type": "int32",
"description": "Length of the code"
}
]
},
{
"name": "authenticationCodeTypeFirebaseIos",
"description": "An authentication code is delivered via Firebase Authentication to the official iOS application",
"class": "AuthenticationCodeType",
"properties": [
{
"name": "receipt",
"type": "string",
"description": "Receipt of successful application token validation to compare with receipt from push notification"
},
{
"name": "push_timeout",
"type": "int32",
"description": "Time after the next authentication method is supposed to be used if verification push notification isn't received, in seconds"
},
{
"name": "length",
"type": "int32",
"description": "Length of the code"
}
]
},
2021-10-22 16:24:12 +02:00
{
"name": "authenticationCodeInfo",
"description": "Information about the authentication code that was sent",
"class": "AuthenticationCodeInfo",
"properties": [
{
"name": "phone_number",
"type": "string",
"description": "A phone number that is being authenticated"
},
{
"name": "type",
"type": "AuthenticationCodeType",
2021-12-08 10:23:00 +01:00
"description": "The way the code was sent to the user"
2021-10-22 16:24:12 +02:00
},
{
"name": "next_type",
"type": "AuthenticationCodeType",
2021-12-08 10:23:00 +01:00
"description": "The way the next code will be sent to the user; may be null"
2021-10-22 16:24:12 +02:00
},
{
"name": "timeout",
"type": "int32",
2021-12-08 10:23:00 +01:00
"description": "Timeout before the code can be re-sent, in seconds"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "emailAddressAuthenticationCodeInfo",
"description": "Information about the email address authentication code that was sent",
"class": "EmailAddressAuthenticationCodeInfo",
"properties": [
{
"name": "email_address_pattern",
"type": "string",
"description": "Pattern of the email address to which an authentication code was sent"
},
{
"name": "length",
"type": "int32",
"description": "Length of the code; 0 if unknown"
}
]
},
2023-06-04 22:58:07 +02:00
{
"name": "emailAddressAuthenticationCode",
"description": "An authentication code delivered to a user's email address",
"class": "EmailAddressAuthentication",
"properties": [
{
"name": "code",
"type": "string",
"description": "The code"
}
]
},
{
"name": "emailAddressAuthenticationAppleId",
"description": "An authentication token received through Apple ID",
"class": "EmailAddressAuthentication",
"properties": [
{
"name": "token",
"type": "string",
"description": "The token"
}
]
},
{
"name": "emailAddressAuthenticationGoogleId",
"description": "An authentication token received through Google ID",
"class": "EmailAddressAuthentication",
"properties": [
{
"name": "token",
"type": "string",
"description": "The token"
}
]
},
2024-10-06 19:09:53 +02:00
{
"name": "emailAddressResetStateAvailable",
"description": "Email address can be reset after the given period. Call resetAuthenticationEmailAddress to reset it and allow the user to authorize with a code sent to the user's phone number",
"class": "EmailAddressResetState",
"properties": [
{
"name": "wait_period",
"type": "int32",
"description": "Time required to wait before the email address can be reset; 0 if the user is subscribed to Telegram Premium"
}
]
},
{
"name": "emailAddressResetStatePending",
"description": "Email address reset has already been requested. Call resetAuthenticationEmailAddress to check whether immediate reset is possible",
"class": "EmailAddressResetState",
"properties": [
{
"name": "reset_in",
"type": "int32",
"description": "Left time before the email address will be reset, in seconds. updateAuthorizationState is not sent when this field changes"
}
]
},
2021-10-22 16:24:12 +02:00
{
"name": "textEntity",
"description": "Represents a part of the text that needs to be formatted in some unusual way",
"class": "TextEntity",
"properties": [
{
"name": "offset",
"type": "int32",
"description": "Offset of the entity, in UTF-16 code units"
},
{
"name": "length",
"type": "int32",
"description": "Length of the entity, in UTF-16 code units"
},
{
"name": "type",
"type": "TextEntityType",
"description": "Type of the entity"
}
]
},
{
"name": "textEntities",
"description": "Contains a list of text entities",
"class": "TextEntities",
"properties": [
{
"name": "entities",
"type": "vector\u003ctextEntity\u003e",
"description": "List of text entities"
}
]
},
{
"name": "formattedText",
"description": "A text with some entities",
"class": "FormattedText",
"properties": [
{
"name": "text",
"type": "string",
"description": "The text"
},
{
"name": "entities",
"type": "vector\u003ctextEntity\u003e",
2024-10-06 19:09:53 +02:00
"description": "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"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "termsOfService",
"description": "Contains Telegram terms of service",
"class": "TermsOfService",
"properties": [
{
"name": "text",
"type": "formattedText",
"description": "Text of the terms of service"
},
{
"name": "min_user_age",
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "The minimum age of a user to be able to accept the terms; 0 if age isn't restricted"
2021-10-22 16:24:12 +02:00
},
{
"name": "show_popup",
"type": "Bool",
"description": "True, if a blocking popup with terms of service must be shown to the user"
}
]
},
{
"name": "authorizationStateWaitTdlibParameters",
2024-10-06 19:09:53 +02:00
"description": "Initialization parameters are needed. Call setTdlibParameters to provide them",
2023-06-04 22:58:07 +02:00
"class": "AuthorizationState",
"properties": []
},
{
"name": "authorizationStateWaitPhoneNumber",
"description": "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",
2021-10-22 16:24:12 +02:00
"class": "AuthorizationState",
"properties": []
},
{
2023-06-04 22:58:07 +02:00
"name": "authorizationStateWaitEmailAddress",
"description": "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",
2021-10-22 16:24:12 +02:00
"class": "AuthorizationState",
"properties": [
{
2023-06-04 22:58:07 +02:00
"name": "allow_apple_id",
"type": "Bool",
"description": "True, if authorization through Apple ID is allowed"
},
{
"name": "allow_google_id",
2021-10-22 16:24:12 +02:00
"type": "Bool",
2023-06-04 22:58:07 +02:00
"description": "True, if authorization through Google ID is allowed"
2021-10-22 16:24:12 +02:00
}
]
},
{
2023-06-04 22:58:07 +02:00
"name": "authorizationStateWaitEmailCode",
"description": "TDLib needs the user's authentication code sent to an email address to authorize. Call checkAuthenticationEmailCode to provide the code",
2021-10-22 16:24:12 +02:00
"class": "AuthorizationState",
2023-06-04 22:58:07 +02:00
"properties": [
{
"name": "allow_apple_id",
"type": "Bool",
"description": "True, if authorization through Apple ID is allowed"
},
{
"name": "allow_google_id",
"type": "Bool",
"description": "True, if authorization through Google ID is allowed"
},
{
"name": "code_info",
"type": "emailAddressAuthenticationCodeInfo",
"description": "Information about the sent authentication code"
},
{
2024-10-06 19:09:53 +02:00
"name": "email_address_reset_state",
"type": "EmailAddressResetState",
"description": "Reset state of the email address; may be null if the email address can't be reset"
2023-06-04 22:58:07 +02:00
}
]
2021-10-22 16:24:12 +02:00
},
{
"name": "authorizationStateWaitCode",
2023-06-04 22:58:07 +02:00
"description": "TDLib needs the user's authentication code to authorize. Call checkAuthenticationCode to check the code",
2021-10-22 16:24:12 +02:00
"class": "AuthorizationState",
"properties": [
{
"name": "code_info",
"type": "authenticationCodeInfo",
"description": "Information about the authorization code that was sent"
}
]
},
{
"name": "authorizationStateWaitOtherDeviceConfirmation",
"description": "The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link",
"class": "AuthorizationState",
"properties": [
{
"name": "link",
"type": "string",
"description": "A tg:// URL for the QR code. The link will be updated frequently"
}
]
},
{
"name": "authorizationStateWaitRegistration",
2023-06-04 22:58:07 +02:00
"description": "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",
2021-10-22 16:24:12 +02:00
"class": "AuthorizationState",
"properties": [
{
"name": "terms_of_service",
"type": "termsOfService",
"description": "Telegram terms of service"
}
]
},
{
"name": "authorizationStateWaitPassword",
2023-06-04 22:58:07 +02:00
"description": "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",
2021-10-22 16:24:12 +02:00
"class": "AuthorizationState",
"properties": [
{
"name": "password_hint",
"type": "string",
"description": "Hint for the password; may be empty"
},
{
"name": "has_recovery_email_address",
"type": "Bool",
"description": "True, if a recovery email address has been set up"
},
2024-10-06 19:09:53 +02:00
{
"name": "has_passport_data",
"type": "Bool",
"description": "True, if some Telegram Passport elements were saved"
},
2021-10-22 16:24:12 +02:00
{
"name": "recovery_email_address_pattern",
"type": "string",
"description": "Pattern of the email address to which the recovery email was sent; empty until a recovery email has been sent"
}
]
},
{
"name": "authorizationStateReady",
2023-06-04 22:58:07 +02:00
"description": "The user has been successfully authorized. TDLib is now ready to answer general requests",
2021-10-22 16:24:12 +02:00
"class": "AuthorizationState",
"properties": []
},
{
"name": "authorizationStateLoggingOut",
"description": "The user is currently logging out",
"class": "AuthorizationState",
"properties": []
},
{
"name": "authorizationStateClosing",
"description": "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",
"class": "AuthorizationState",
"properties": []
},
{
"name": "authorizationStateClosed",
2021-12-08 10:23:00 +01:00
"description": "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",
2021-10-22 16:24:12 +02:00
"class": "AuthorizationState",
"properties": []
},
{
"name": "passwordState",
"description": "Represents the current state of 2-step verification",
"class": "PasswordState",
"properties": [
{
"name": "has_password",
"type": "Bool",
"description": "True, if a 2-step verification password is set"
},
{
"name": "password_hint",
"type": "string",
"description": "Hint for the password; may be empty"
},
{
"name": "has_recovery_email_address",
"type": "Bool",
"description": "True, if a recovery email is set"
},
{
"name": "has_passport_data",
"type": "Bool",
"description": "True, if some Telegram Passport elements were saved"
},
{
"name": "recovery_email_address_code_info",
"type": "emailAddressAuthenticationCodeInfo",
"description": "Information about the recovery email address to which the confirmation email was sent; may be null"
2021-12-08 10:23:00 +01:00
},
2023-06-04 22:58:07 +02:00
{
"name": "login_email_address_pattern",
"type": "string",
"description": "Pattern of the email address set up for logging in"
},
2021-12-08 10:23:00 +01:00
{
"name": "pending_reset_date",
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "recoveryEmailAddress",
"description": "Contains information about the current recovery email address",
"class": "RecoveryEmailAddress",
"properties": [
{
"name": "recovery_email_address",
"type": "string",
"description": "Recovery email address"
}
]
},
{
"name": "temporaryPasswordState",
"description": "Returns information about the availability of a temporary password, which can be used for payments",
"class": "TemporaryPasswordState",
"properties": [
{
"name": "has_password",
"type": "Bool",
"description": "True, if a temporary password is available"
},
{
"name": "valid_for",
"type": "int32",
"description": "Time left before the temporary password expires, in seconds"
}
]
},
{
"name": "localFile",
"description": "Represents a local file",
"class": "LocalFile",
"properties": [
{
"name": "path",
"type": "string",
"description": "Local path to the locally available file part; may be empty"
},
{
"name": "can_be_downloaded",
"type": "Bool",
2022-04-18 22:45:01 +02:00
"description": "True, if it is possible to download or generate the file"
2021-10-22 16:24:12 +02:00
},
{
"name": "can_be_deleted",
"type": "Bool",
"description": "True, if the file can be deleted"
},
{
"name": "is_downloading_active",
"type": "Bool",
"description": "True, if the file is currently being downloaded (or a local copy is being generated by some other means)"
},
{
"name": "is_downloading_completed",
"type": "Bool",
"description": "True, if the local copy is fully available"
},
{
"name": "download_offset",
2023-06-04 22:58:07 +02:00
"type": "int53",
2021-10-22 16:24:12 +02:00
"description": "Download will be started from this offset. downloaded_prefix_size is calculated from this offset"
},
{
"name": "downloaded_prefix_size",
2023-06-04 22:58:07 +02:00
"type": "int53",
2021-12-08 10:23:00 +01:00
"description": "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"
2021-10-22 16:24:12 +02:00
},
{
"name": "downloaded_size",
2023-06-04 22:58:07 +02:00
"type": "int53",
2021-12-08 10:23:00 +01:00
"description": "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"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "remoteFile",
"description": "Represents a remote file",
"class": "RemoteFile",
"properties": [
{
"name": "id",
"type": "string",
2024-10-06 19:09:53 +02:00
"description": "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"
2021-10-22 16:24:12 +02:00
},
{
"name": "unique_id",
"type": "string",
"description": "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"
},
{
"name": "is_uploading_active",
"type": "Bool",
"description": "True, if the file is currently being uploaded (or a remote copy is being generated by some other means)"
},
{
"name": "is_uploading_completed",
"type": "Bool",
"description": "True, if a remote copy is fully available"
},
{
"name": "uploaded_size",
2023-06-04 22:58:07 +02:00
"type": "int53",
2021-12-08 10:23:00 +01:00
"description": "Size of the remote available part of the file, in bytes; 0 if unknown"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "file",
"description": "Represents a file",
"class": "File",
"properties": [
{
"name": "id",
"type": "int32",
"description": "Unique file identifier"
},
{
"name": "size",
2023-06-04 22:58:07 +02:00
"type": "int53",
2021-12-08 10:23:00 +01:00
"description": "File size, in bytes; 0 if unknown"
2021-10-22 16:24:12 +02:00
},
{
"name": "expected_size",
2023-06-04 22:58:07 +02:00
"type": "int53",
2021-12-08 10:23:00 +01:00
"description": "Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress"
2021-10-22 16:24:12 +02:00
},
{
"name": "local",
"type": "localFile",
"description": "Information about the local copy of the file"
},
{
"name": "remote",
"type": "remoteFile",
"description": "Information about the remote copy of the file"
}
]
},
{
"name": "inputFileId",
2024-10-06 19:09:53 +02:00
"description": "A file defined by its unique identifier",
2021-10-22 16:24:12 +02:00
"class": "InputFile",
"properties": [
{
"name": "id",
"type": "int32",
"description": "Unique file identifier"
}
]
},
{
"name": "inputFileRemote",
2024-10-06 19:09:53 +02:00
"description": "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",
2021-10-22 16:24:12 +02:00
"class": "InputFile",
"properties": [
{
"name": "id",
"type": "string",
"description": "Remote file identifier"
}
]
},
{
"name": "inputFileLocal",
"description": "A file defined by a local path",
"class": "InputFile",
"properties": [
{
"name": "path",
"type": "string",
"description": "Local path to the file"
}
]
},
{
"name": "inputFileGenerated",
"description": "A file generated by the application",
"class": "InputFile",
"properties": [
{
"name": "original_path",
"type": "string",
"description": "Local path to a file from which the file is generated; may be empty if there is no such file"
},
{
"name": "conversion",
"type": "string",
2021-12-08 10:23:00 +01:00
"description": "String specifying the conversion applied to the original file; must be persistent across application restarts. Conversions beginning with '#' are reserved for internal TDLib usage"
2021-10-22 16:24:12 +02:00
},
{
"name": "expected_size",
2023-06-04 22:58:07 +02:00
"type": "int53",
2021-12-08 10:23:00 +01:00
"description": "Expected size of the generated file, in bytes; 0 if unknown"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "photoSize",
"description": "Describes an image in JPEG format",
"class": "PhotoSize",
"properties": [
{
"name": "type",
"type": "string",
"description": "Image type (see https://core.telegram.org/constructor/photoSize)"
},
{
"name": "photo",
"type": "file",
"description": "Information about the image file"
},
{
"name": "width",
"type": "int32",
"description": "Image width"
},
{
"name": "height",
"type": "int32",
"description": "Image height"
},
{
"name": "progressive_sizes",
"type": "vector\u003cint32\u003e",
2021-12-08 10:23:00 +01:00
"description": "Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image; in bytes"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "minithumbnail",
"description": "Thumbnail image of a very poor quality and low resolution",
"class": "Minithumbnail",
"properties": [
{
"name": "width",
"type": "int32",
"description": "Thumbnail width, usually doesn't exceed 40"
},
{
"name": "height",
"type": "int32",
"description": "Thumbnail height, usually doesn't exceed 40"
},
{
"name": "data",
"type": "bytes",
"description": "The thumbnail in JPEG format"
}
]
},
{
"name": "thumbnailFormatJpeg",
"description": "The thumbnail is in JPEG format",
"class": "ThumbnailFormat",
"properties": []
},
{
2023-06-04 22:58:07 +02:00
"name": "thumbnailFormatGif",
2024-10-06 19:09:53 +02:00
"description": "The thumbnail is in static GIF format. It will be used only for some bot inline query results",
2021-10-22 16:24:12 +02:00
"class": "ThumbnailFormat",
"properties": []
},
{
2023-06-04 22:58:07 +02:00
"name": "thumbnailFormatMpeg4",
"description": "The thumbnail is in MPEG4 format. It will be used only for some animations and videos",
2021-10-22 16:24:12 +02:00
"class": "ThumbnailFormat",
"properties": []
},
{
2023-06-04 22:58:07 +02:00
"name": "thumbnailFormatPng",
"description": "The thumbnail is in PNG format. It will be used only for background patterns",
2021-10-22 16:24:12 +02:00
"class": "ThumbnailFormat",
"properties": []
},
{
"name": "thumbnailFormatTgs",
2024-10-06 19:09:53 +02:00
"description": "The thumbnail is in TGS format. It will be used only for sticker sets",
2022-04-18 22:45:01 +02:00
"class": "ThumbnailFormat",
"properties": []
},
{
2023-06-04 22:58:07 +02:00
"name": "thumbnailFormatWebm",
2024-10-06 19:09:53 +02:00
"description": "The thumbnail is in WEBM format. It will be used only for sticker sets",
2023-06-04 22:58:07 +02:00
"class": "ThumbnailFormat",
"properties": []
},
{
"name": "thumbnailFormatWebp",
2024-10-06 19:09:53 +02:00
"description": "The thumbnail is in WEBP format. It will be used only for some stickers and sticker sets",
2021-10-22 16:24:12 +02:00
"class": "ThumbnailFormat",
"properties": []
},
{
"name": "thumbnail",
"description": "Represents a thumbnail",
"class": "Thumbnail",
"properties": [
{
"name": "format",
"type": "ThumbnailFormat",
"description": "Thumbnail format"
},
{
"name": "width",
"type": "int32",
"description": "Thumbnail width"
},
{
"name": "height",
"type": "int32",
"description": "Thumbnail height"
},
{
"name": "file",
"type": "file",
"description": "The thumbnail"
}
]
},
{
"name": "maskPointForehead",
2021-12-08 10:23:00 +01:00
"description": "The mask is placed relatively to the forehead",
2021-10-22 16:24:12 +02:00
"class": "MaskPoint",
"properties": []
},
{
"name": "maskPointEyes",
2021-12-08 10:23:00 +01:00
"description": "The mask is placed relatively to the eyes",
2021-10-22 16:24:12 +02:00
"class": "MaskPoint",
"properties": []
},
{
"name": "maskPointMouth",
2021-12-08 10:23:00 +01:00
"description": "The mask is placed relatively to the mouth",
2021-10-22 16:24:12 +02:00
"class": "MaskPoint",
"properties": []
},
{
"name": "maskPointChin",
2021-12-08 10:23:00 +01:00
"description": "The mask is placed relatively to the chin",
2021-10-22 16:24:12 +02:00
"class": "MaskPoint",
"properties": []
},
{
"name": "maskPosition",
2021-12-08 10:23:00 +01:00
"description": "Position on a photo where a mask is placed",
2021-10-22 16:24:12 +02:00
"class": "MaskPosition",
"properties": [
{
"name": "point",
"type": "MaskPoint",
2021-12-08 10:23:00 +01:00
"description": "Part of the face, relative to which the mask is placed"
2021-10-22 16:24:12 +02:00
},
{
"name": "x_shift",
"type": "double",
"description": "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)"
},
{
"name": "y_shift",
"type": "double",
"description": "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)"
},
{
"name": "scale",
"type": "double",
"description": "Mask scaling coefficient. (For example, 2.0 means a doubled size)"
}
]
},
2023-06-04 22:58:07 +02:00
{
"name": "stickerFormatWebp",
"description": "The sticker is an image in WEBP format",
"class": "StickerFormat",
"properties": []
},
{
"name": "stickerFormatTgs",
"description": "The sticker is an animation in TGS format",
"class": "StickerFormat",
"properties": []
},
{
"name": "stickerFormatWebm",
"description": "The sticker is a video in WEBM format",
"class": "StickerFormat",
"properties": []
},
{
"name": "stickerTypeRegular",
"description": "The sticker is a regular sticker",
"class": "StickerType",
"properties": []
},
{
"name": "stickerTypeMask",
"description": "The sticker is a mask in WEBP format to be placed on photos or videos",
"class": "StickerType",
"properties": []
},
{
"name": "stickerTypeCustomEmoji",
"description": "The sticker is a custom emoji to be used inside message text and caption",
"class": "StickerType",
"properties": []
},
{
"name": "stickerFullTypeRegular",
"description": "The sticker is a regular sticker",
"class": "StickerFullType",
"properties": [
{
"name": "premium_animation",
"type": "file",
"description": "Premium animation of the sticker; may be null. If present, only Telegram Premium users can use the sticker"
}
]
},
{
"name": "stickerFullTypeMask",
"description": "The sticker is a mask in WEBP format to be placed on photos or videos",
"class": "StickerFullType",
"properties": [
{
"name": "mask_position",
"type": "maskPosition",
"description": "Position where the mask is placed; may be null"
}
]
},
{
"name": "stickerFullTypeCustomEmoji",
"description": "The sticker is a custom emoji to be used inside message text and caption. Currently, only Telegram Premium users can use custom emoji",
"class": "StickerFullType",
"properties": [
{
"name": "custom_emoji_id",
"type": "int64",
"description": "Identifier of the custom emoji"
},
{
"name": "needs_repainting",
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "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"
2023-06-04 22:58:07 +02:00
}
]
},
2021-12-08 10:23:00 +01:00
{
"name": "closedVectorPath",
"description": "Represents a closed vector path. The path begins at the end point of the last command",
"class": "ClosedVectorPath",
"properties": [
{
"name": "commands",
"type": "vector\u003cVectorPathCommand\u003e",
"description": "List of vector path commands"
}
]
},
2021-10-22 16:24:12 +02:00
{
"name": "pollOption",
"description": "Describes one answer option of a poll",
"class": "PollOption",
"properties": [
{
"name": "text",
"type": "string",
2021-12-08 10:23:00 +01:00
"description": "Option text; 1-100 characters"
2021-10-22 16:24:12 +02:00
},
{
"name": "voter_count",
"type": "int32",
"description": "Number of voters for this option, available only for closed or voted polls"
},
{
"name": "vote_percentage",
"type": "int32",
2021-12-08 10:23:00 +01:00
"description": "The percentage of votes for this option; 0-100"
2021-10-22 16:24:12 +02:00
},
{
"name": "is_chosen",
"type": "Bool",
"description": "True, if the option was chosen by the user"
},
{
"name": "is_being_chosen",
"type": "Bool",
"description": "True, if the option is being chosen by a pending setPollAnswer request"
}
]
},
{
"name": "pollTypeRegular",
"description": "A regular poll",
"class": "PollType",
"properties": [
{
"name": "allow_multiple_answers",
"type": "Bool",
"description": "True, if multiple answer options can be chosen simultaneously"
}
]
},
{
"name": "pollTypeQuiz",
"description": "A poll in quiz mode, which has exactly one correct answer option and can be answered only once",
"class": "PollType",
"properties": [
{
"name": "correct_option_id",
"type": "int32",
"description": "0-based identifier of the correct answer option; -1 for a yet unanswered poll"
},
{
"name": "explanation",
"type": "formattedText",
2021-12-08 10:23:00 +01:00
"description": "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"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "animation",
"description": "Describes an animation file. The animation must be encoded in GIF or MPEG4 format",
"class": "Animation",
"properties": [
{
"name": "duration",
"type": "int32",
"description": "Duration of the animation, in seconds; as defined by the sender"
},
{
"name": "width",
"type": "int32",
"description": "Width of the animation"
},
{
"name": "height",
"type": "int32",
"description": "Height of the animation"
},
{
"name": "file_name",
"type": "string",
"description": "Original name of the file; as defined by the sender"
},
{
"name": "mime_type",
"type": "string",
"description": "MIME type of the file, usually \"image/gif\" or \"video/mp4\""
},
{
"name": "has_stickers",
"type": "Bool",
"description": "True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets"
},
{
"name": "minithumbnail",
"type": "minithumbnail",
"description": "Animation minithumbnail; may be null"
},
{
"name": "thumbnail",
"type": "thumbnail",
"description": "Animation thumbnail in JPEG or MPEG4 format; may be null"
},
{
"name": "animation",
"type": "file",
"description": "File containing the animation"
}
]
},
{
"name": "audio",
"description": "Describes an audio file. Audio is usually in MP3 or M4A format",
"class": "Audio",
"properties": [
{
"name": "duration",
"type": "int32",
"description": "Duration of the audio, in seconds; as defined by the sender"
},
{
"name": "title",
"type": "string",
"description": "Title of the audio; as defined by the sender"
},
{
"name": "performer",
"type": "string",
"description": "Performer of the audio; as defined by the sender"
},
{
"name": "file_name",
"type": "string",
"description": "Original name of the file; as defined by the sender"
},
{
"name": "mime_type",
"type": "string",
"description": "The MIME type of the file; as defined by the sender"
},
{
"name": "album_cover_minithumbnail",
"type": "minithumbnail",
"description": "The minithumbnail of the album cover; may be null"
},
{
"name": "album_cover_thumbnail",
"type": "thumbnail",
2023-06-04 22:58:07 +02:00
"description": "The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is supposed to be extracted from the downloaded audio file; may be null"
},
{
"name": "external_album_covers",
"type": "vector\u003cthumbnail\u003e",
"description": "Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate"
2021-10-22 16:24:12 +02:00
},
{
"name": "audio",
"type": "file",
"description": "File containing the audio"
}
]
},
{
"name": "document",
"description": "Describes a document of any type",
"class": "Document",
"properties": [
{
"name": "file_name",
"type": "string",
"description": "Original name of the file; as defined by the sender"
},
{
"name": "mime_type",
"type": "string",
"description": "MIME type of the file; as defined by the sender"
},
{
"name": "minithumbnail",
"type": "minithumbnail",
"description": "Document minithumbnail; may be null"
},
{
"name": "thumbnail",
"type": "thumbnail",
"description": "Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null"
},
{
"name": "document",
"type": "file",
"description": "File containing the document"
}
]
},
{
"name": "photo",
"description": "Describes a photo",
"class": "Photo",
"properties": [
{
"name": "has_stickers",
"type": "Bool",
"description": "True, if stickers were added to the photo. The list of corresponding sticker sets can be received using getAttachedStickerSets"
},
{
"name": "minithumbnail",
"type": "minithumbnail",
"description": "Photo minithumbnail; may be null"
},
{
"name": "sizes",
"type": "vector\u003cphotoSize\u003e",
"description": "Available variants of the photo, in different sizes"
}
]
},
{
"name": "sticker",
"description": "Describes a sticker",
"class": "Sticker",
"properties": [
2024-10-06 19:09:53 +02:00
{
"name": "id",
"type": "int64",
"description": "Unique sticker identifier within the set; 0 if none"
},
2021-10-22 16:24:12 +02:00
{
"name": "set_id",
"type": "int64",
2024-10-06 19:09:53 +02:00
"description": "Identifier of the sticker set to which the sticker belongs; 0 if none"
2021-10-22 16:24:12 +02:00
},
{
"name": "width",
"type": "int32",
"description": "Sticker width; as defined by the sender"
},
{
"name": "height",
"type": "int32",
"description": "Sticker height; as defined by the sender"
},
{
"name": "emoji",
"type": "string",
"description": "Emoji corresponding to the sticker"
},
{
2023-06-04 22:58:07 +02:00
"name": "format",
"type": "StickerFormat",
"description": "Sticker format"
2023-06-04 22:53:18 +02:00
},
{
2023-06-04 22:58:07 +02:00
"name": "full_type",
"type": "StickerFullType",
"description": "Sticker's full type"
2021-12-08 10:23:00 +01:00
},
{
"name": "outline",
"type": "vector\u003cclosedVectorPath\u003e",
"description": "Sticker's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner"
2021-10-22 16:24:12 +02:00
},
{
"name": "thumbnail",
"type": "thumbnail",
"description": "Sticker thumbnail in WEBP or JPEG format; may be null"
},
{
"name": "sticker",
"type": "file",
"description": "File containing the sticker"
}
]
},
{
"name": "video",
"description": "Describes a video file",
"class": "Video",
"properties": [
{
"name": "duration",
"type": "int32",
"description": "Duration of the video, in seconds; as defined by the sender"
},
{
"name": "width",
"type": "int32",
"description": "Video width; as defined by the sender"
},
{
"name": "height",
"type": "int32",
"description": "Video height; as defined by the sender"
},
{
"name": "file_name",
"type": "string",
"description": "Original name of the file; as defined by the sender"
},
{
"name": "mime_type",
"type": "string",
"description": "MIME type of the file; as defined by the sender"
},
{
"name": "has_stickers",
"type": "Bool",
"description": "True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets"
},
{
"name": "supports_streaming",
"type": "Bool",
2021-12-08 10:23:00 +01:00
"description": "True, if the video is supposed to be streamed"
2021-10-22 16:24:12 +02:00
},
{
"name": "minithumbnail",
"type": "minithumbnail",
"description": "Video minithumbnail; may be null"
},
{
"name": "thumbnail",
"type": "thumbnail",
"description": "Video thumbnail in JPEG or MPEG4 format; as defined by the sender; may be null"
},
{
"name": "video",
"type": "file",
"description": "File containing the video"
}
]
},
{
"name": "videoNote",
"description": "Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format",
"class": "VideoNote",
"properties": [
{
"name": "duration",
"type": "int32",
"description": "Duration of the video, in seconds; as defined by the sender"
},
2023-06-04 22:58:07 +02:00
{
"name": "waveform",
"type": "bytes",
"description": "A waveform representation of the video note's audio in 5-bit format; may be empty if unknown"
},
2021-10-22 16:24:12 +02:00
{
"name": "length",
"type": "int32",
"description": "Video width and height; as defined by the sender"
},
{
"name": "minithumbnail",
"type": "minithumbnail",
"description": "Video minithumbnail; may be null"
},
{
"name": "thumbnail",
"type": "thumbnail",
"description": "Video thumbnail in JPEG format; as defined by the sender; may be null"
},
2023-06-04 22:58:07 +02:00
{
"name": "speech_recognition_result",
"type": "SpeechRecognitionResult",
"description": "Result of speech recognition in the video note; may be null"
},
2021-10-22 16:24:12 +02:00
{
"name": "video",
"type": "file",
"description": "File containing the video"
}
]
},
{
"name": "voiceNote",
"description": "Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel",
"class": "VoiceNote",
"properties": [
{
"name": "duration",
"type": "int32",
"description": "Duration of the voice note, in seconds; as defined by the sender"
},
{
"name": "waveform",
"type": "bytes",
"description": "A waveform representation of the voice note in 5-bit format"
},
{
"name": "mime_type",
"type": "string",
"description": "MIME type of the file; as defined by the sender"
},
2023-06-04 22:58:07 +02:00
{
"name": "speech_recognition_result",
"type": "SpeechRecognitionResult",
"description": "Result of speech recognition in the voice note; may be null"
},
2021-10-22 16:24:12 +02:00
{
"name": "voice",
"type": "file",
"description": "File containing the voice note"
}
]
},
2021-12-08 10:23:00 +01:00
{
"name": "animatedEmoji",
2023-06-04 22:58:07 +02:00
"description": "Describes an animated or custom representation of an emoji",
2021-12-08 10:23:00 +01:00
"class": "AnimatedEmoji",
"properties": [
{
"name": "sticker",
"type": "sticker",
2024-10-06 19:09:53 +02:00
"description": "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"
2023-06-04 22:58:07 +02:00
},
{
"name": "sticker_width",
"type": "int32",
"description": "Expected width of the sticker, which can be used if the sticker is null"
},
{
"name": "sticker_height",
"type": "int32",
"description": "Expected height of the sticker, which can be used if the sticker is null"
2021-12-08 10:23:00 +01:00
},
{
"name": "fitzpatrick_type",
"type": "int32",
"description": "Emoji modifier fitzpatrick type; 0-6; 0 if none"
},
{
"name": "sound",
"type": "file",
2023-06-04 22:58:07 +02:00
"description": "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"
2021-12-08 10:23:00 +01:00
}
]
},
2021-10-22 16:24:12 +02:00
{
"name": "contact",
"description": "Describes a user contact",
"class": "Contact",
"properties": [
{
"name": "phone_number",
"type": "string",
"description": "Phone number of the user"
},
{
"name": "first_name",
"type": "string",
"description": "First name of the user; 1-255 characters in length"
},
{
"name": "last_name",
"type": "string",
"description": "Last name of the user"
},
{
"name": "vcard",
"type": "string",
"description": "Additional data about the user in a form of vCard; 0-2048 bytes in length"
},
{
"name": "user_id",
2021-12-08 10:23:00 +01:00
"type": "int53",
2024-10-06 19:09:53 +02:00
"description": "Identifier of the user, if known; 0 otherwise"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "location",
"description": "Describes a location on planet Earth",
"class": "Location",
"properties": [
{
"name": "latitude",
"type": "double",
"description": "Latitude of the location in degrees; as defined by the sender"
},
{
"name": "longitude",
"type": "double",
"description": "Longitude of the location, in degrees; as defined by the sender"
},
{
"name": "horizontal_accuracy",
"type": "double",
"description": "The estimated horizontal accuracy of the location, in meters; as defined by the sender. 0 if unknown"
}
]
},
{
"name": "venue",
"description": "Describes a venue",
"class": "Venue",
"properties": [
{
"name": "location",
"type": "location",
"description": "Venue location; as defined by the sender"
},
{
"name": "title",
"type": "string",
"description": "Venue name; as defined by the sender"
},
{
"name": "address",
"type": "string",
"description": "Venue address; as defined by the sender"
},
{
"name": "provider",
"type": "string",
2022-04-18 22:45:01 +02:00
"description": "Provider of the venue database; as defined by the sender. Currently, only \"foursquare\" and \"gplaces\" (Google Places) need to be supported"
2021-10-22 16:24:12 +02:00
},
{
"name": "id",
"type": "string",
"description": "Identifier of the venue in the provider database; as defined by the sender"
},
{
"name": "type",
"type": "string",
"description": "Type of the venue in the provider database; as defined by the sender"
}
]
},
{
"name": "game",
2024-10-06 19:09:53 +02:00
"description": "Describes a game. Use getInternalLink with internalLinkTypeGame to share the game",
2021-10-22 16:24:12 +02:00
"class": "Game",
"properties": [
{
"name": "id",
"type": "int64",
2023-06-04 22:58:07 +02:00
"description": "Unique game identifier"
2021-10-22 16:24:12 +02:00
},
{
"name": "short_name",
"type": "string",
2024-10-06 19:09:53 +02:00
"description": "Game short name"
2021-10-22 16:24:12 +02:00
},
{
"name": "title",
"type": "string",
"description": "Game title"
},
{
"name": "text",
"type": "formattedText",
"description": "Game text, usually containing scoreboards for a game"
},
{
"name": "description",
"type": "string",
"description": "Game description"
},
{
"name": "photo",
"type": "photo",
"description": "Game photo"
},
{
"name": "animation",
"type": "animation",
"description": "Game animation; may be null"
}
]
},
2024-10-06 19:09:53 +02:00
{
"name": "webApp",
"description": "Describes a Web App. Use getInternalLink with internalLinkTypeWebApp to share the Web App",
"class": "WebApp",
"properties": [
{
"name": "short_name",
"type": "string",
"description": "Web App short name"
},
{
"name": "title",
"type": "string",
"description": "Web App title"
},
{
"name": "description",
"type": "string",
"description": "Web App description"
},
{
"name": "photo",
"type": "photo",
"description": "Web App photo"
},
{
"name": "animation",
"type": "animation",
"description": "Web App animation; may be null"
}
]
},
2021-10-22 16:24:12 +02:00
{
"name": "poll",
"description": "Describes a poll",
"class": "Poll",
"properties": [
{
"name": "id",
"type": "int64",
"description": "Unique poll identifier"
},
{
"name": "question",
"type": "string",
2021-12-08 10:23:00 +01:00
"description": "Poll question; 1-300 characters"
2021-10-22 16:24:12 +02:00
},
{
"name": "options",
"type": "vector\u003cpollOption\u003e",
"description": "List of poll answer options"
},
{
"name": "total_voter_count",
"type": "int32",
"description": "Total number of voters, participating in the poll"
},
{
2024-10-06 19:09:53 +02:00
"name": "recent_voter_ids",
"type": "vector\u003cMessageSender\u003e",
"description": "Identifiers of recent voters, if the poll is non-anonymous"
2021-10-22 16:24:12 +02:00
},
{
"name": "is_anonymous",
"type": "Bool",
"description": "True, if the poll is anonymous"
},
{
"name": "type",
"type": "PollType",
"description": "Type of the poll"
},
{
"name": "open_period",
"type": "int32",
"description": "Amount of time the poll will be active after creation, in seconds"
},
{
"name": "close_date",
"type": "int32",
2021-12-08 10:23:00 +01:00
"description": "Point in time (Unix timestamp) when the poll will automatically be closed"
2021-10-22 16:24:12 +02:00
},
{
"name": "is_closed",
"type": "Bool",
"description": "True, if the poll is closed"
}
]
},
2024-10-06 19:09:53 +02:00
{
"name": "background",
"description": "Describes a chat background",
"class": "Background",
"properties": [
{
"name": "id",
"type": "int64",
"description": "Unique background identifier"
},
{
"name": "is_default",
"type": "Bool",
"description": "True, if this is one of default backgrounds"
},
{
"name": "is_dark",
"type": "Bool",
"description": "True, if the background is dark and is recommended to be used with dark theme"
},
{
"name": "name",
"type": "string",
"description": "Unique background name"
},
{
"name": "document",
"type": "document",
"description": "Document with the background; may be null. Null only for filled and chat theme backgrounds"
},
{
"name": "type",
"type": "BackgroundType",
"description": "Type of the background"
}
]
},
{
"name": "backgrounds",
"description": "Contains a list of backgrounds",
"class": "Backgrounds",
"properties": [
{
"name": "backgrounds",
"type": "vector\u003cbackground\u003e",
"description": "A list of backgrounds"
}
]
},
{
"name": "chatBackground",
"description": "Describes a background set for a specific chat",
"class": "ChatBackground",
"properties": [
{
"name": "background",
"type": "background",
"description": "The background"
},
{
"name": "dark_theme_dimming",
"type": "int32",
"description": "Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of background"
}
]
},
2021-10-22 16:24:12 +02:00
{
"name": "profilePhoto",
"description": "Describes a user profile photo",
"class": "ProfilePhoto",
"properties": [
{
"name": "id",
"type": "int64",
"description": "Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos"
},
{
"name": "small",
"type": "file",
"description": "A small (160x160) user profile photo. The file can be downloaded only before the photo is changed"
},
{
"name": "big",
"type": "file",
"description": "A big (640x640) user profile photo. The file can be downloaded only before the photo is changed"
},
2021-12-08 10:23:00 +01:00
{
"name": "minithumbnail",
"type": "minithumbnail",
"description": "User profile photo minithumbnail; may be null"
},
2021-10-22 16:24:12 +02:00
{
"name": "has_animation",
"type": "Bool",
"description": "True, if the photo has animated variant"
2023-06-04 22:58:07 +02:00
},
{
"name": "is_personal",
"type": "Bool",
"description": "True, if the photo is visible only for the current user"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "chatPhotoInfo",
"description": "Contains basic information about the photo of a chat",
"class": "ChatPhotoInfo",
"properties": [
{
"name": "small",
"type": "file",
"description": "A small (160x160) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed"
},
{
"name": "big",
"type": "file",
"description": "A big (640x640) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed"
},
2021-12-08 10:23:00 +01:00
{
"name": "minithumbnail",
"type": "minithumbnail",
"description": "Chat photo minithumbnail; may be null"
},
2021-10-22 16:24:12 +02:00
{
"name": "has_animation",
"type": "Bool",
"description": "True, if the photo has animated variant"
2023-06-04 22:58:07 +02:00
},
{
"name": "is_personal",
"type": "Bool",
"description": "True, if the photo is visible only for the current user"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "userTypeRegular",
"description": "A regular user",
"class": "UserType",
"properties": []
},
{
"name": "userTypeDeleted",
"description": "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",
"class": "UserType",
"properties": []
},
{
"name": "userTypeBot",
"description": "A bot (see https://core.telegram.org/bots)",
"class": "UserType",
"properties": [
2024-10-06 19:09:53 +02:00
{
"name": "can_be_edited",
"type": "Bool",
"description": "True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription"
},
2021-10-22 16:24:12 +02:00
{
"name": "can_join_groups",
"type": "Bool",
"description": "True, if the bot can be invited to basic group and supergroup chats"
},
{
"name": "can_read_all_group_messages",
"type": "Bool",
"description": "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"
},
{
"name": "is_inline",
"type": "Bool",
"description": "True, if the bot supports inline queries"
},
{
"name": "inline_query_placeholder",
"type": "string",
"description": "Placeholder for inline queries (displayed on the application input field)"
},
{
"name": "need_location",
"type": "Bool",
2021-12-08 10:23:00 +01:00
"description": "True, if the location of the user is expected to be sent with every inline query to this bot"
2023-06-04 22:58:07 +02:00
},
2024-10-06 19:09:53 +02:00
{
"name": "can_connect_to_business",
"type": "Bool",
"description": "True, if the bot supports connection to Telegram Business accounts"
},
2023-06-04 22:58:07 +02:00
{
"name": "can_be_added_to_attachment_menu",
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "True, if the bot can be added to attachment or side menu"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "userTypeUnknown",
"description": "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",
"class": "UserType",
"properties": []
},
{
"name": "botCommand",
"description": "Represents a command supported by a bot",
"class": "BotCommand",
"properties": [
{
"name": "command",
"type": "string",
"description": "Text of the bot command"
},
{
"name": "description",
"type": "string",
"description": "Description of the bot command"
}
]
},
{
2021-12-08 10:23:00 +01:00
"name": "botCommands",
"description": "Contains a list of bot commands",
"class": "BotCommands",
2021-10-22 16:24:12 +02:00
"properties": [
{
2021-12-08 10:23:00 +01:00
"name": "bot_user_id",
"type": "int53",
"description": "Bot's user identifier"
2021-10-22 16:24:12 +02:00
},
{
"name": "commands",
"type": "vector\u003cbotCommand\u003e",
2021-12-08 10:23:00 +01:00
"description": "List of bot commands"
2021-10-22 16:24:12 +02:00
}
]
},
{
2023-06-04 22:58:07 +02:00
"name": "botMenuButton",
"description": "Describes a button to be shown instead of bot commands menu button",
"class": "BotMenuButton",
"properties": [
{
"name": "text",
"type": "string",
"description": "Text of the button"
},
{
"name": "url",
"type": "string",
"description": "URL to be passed to openWebApp"
}
]
},
{
"name": "chatLocation",
"description": "Represents a location to which a chat is connected",
"class": "ChatLocation",
2021-10-22 16:24:12 +02:00
"properties": [
{
"name": "location",
"type": "location",
"description": "The location"
},
{
"name": "address",
"type": "string",
"description": "Location address; 1-64 characters, as defined by the chat owner"
}
]
},
2024-10-06 19:09:53 +02:00
{
"name": "birthdate",
"description": "Represents a birthdate of a user",
"class": "Birthdate",
"properties": [
{
"name": "day",
"type": "int32",
"description": "Day of the month; 1-31"
},
{
"name": "month",
"type": "int32",
"description": "Month of the year; 1-12"
},
{
"name": "year",
"type": "int32",
"description": "Birth year; 0 if unknown"
}
]
},
{
"name": "closeBirthdayUser",
"description": "Describes a user that had or will have a birthday soon",
"class": "CloseBirthdayUser",
"properties": [
{
"name": "user_id",
"type": "int53",
"description": "User identifier"
},
{
"name": "birthdate",
"type": "birthdate",
"description": "Birthdate of the user"
}
]
},
{
"name": "businessAwayMessageScheduleAlways",
"description": "Send away messages always",
"class": "BusinessAwayMessageSchedule",
"properties": []
},
{
"name": "businessAwayMessageScheduleOutsideOfOpeningHours",
"description": "Send away messages outside of the business opening hours",
"class": "BusinessAwayMessageSchedule",
"properties": []
},
{
"name": "businessAwayMessageScheduleCustom",
"description": "Send away messages only in the specified time span",
"class": "BusinessAwayMessageSchedule",
"properties": [
{
"name": "start_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the away messages will start to be sent"
},
{
"name": "end_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the away messages will stop to be sent"
}
]
},
{
"name": "businessLocation",
"description": "Represents a location of a business",
"class": "BusinessLocation",
"properties": [
{
"name": "location",
"type": "location",
"description": "The location; may be null if not specified"
},
{
"name": "address",
"type": "string",
"description": "Location address; 1-96 characters"
}
]
},
{
"name": "businessRecipients",
"description": "Describes private chats chosen for automatic interaction with a business",
"class": "BusinessRecipients",
"properties": [
{
"name": "chat_ids",
"type": "vector\u003cint53\u003e",
"description": "Identifiers of selected private chats"
},
{
"name": "excluded_chat_ids",
"type": "vector\u003cint53\u003e",
"description": "Identifiers of private chats that are always excluded; for businessConnectedBot only"
},
{
"name": "select_existing_chats",
"type": "Bool",
"description": "True, if all existing private chats are selected"
},
{
"name": "select_new_chats",
"type": "Bool",
"description": "True, if all new private chats are selected"
},
{
"name": "select_contacts",
"type": "Bool",
"description": "True, if all private chats with contacts are selected"
},
{
"name": "select_non_contacts",
"type": "Bool",
"description": "True, if all private chats with non-contacts are selected"
},
{
"name": "exclude_selected",
"type": "Bool",
"description": "If true, then all private chats except the selected are chosen. Otherwise, only the selected chats are chosen"
}
]
},
{
"name": "businessAwayMessageSettings",
"description": "Describes settings for messages that are automatically sent by a Telegram Business account when it is away",
"class": "BusinessAwayMessageSettings",
"properties": [
{
"name": "shortcut_id",
"type": "int32",
"description": "Unique quick reply shortcut identifier for the away messages"
},
{
"name": "recipients",
"type": "businessRecipients",
"description": "Chosen recipients of the away messages"
},
{
"name": "schedule",
"type": "BusinessAwayMessageSchedule",
"description": "Settings used to check whether the current user is away"
},
{
"name": "offline_only",
"type": "Bool",
"description": "True, if the messages must not be sent if the account was online in the last 10 minutes"
}
]
},
{
"name": "businessGreetingMessageSettings",
"description": "Describes settings for greeting messages that are automatically sent by a Telegram Business account as response to incoming messages in an inactive private chat",
"class": "BusinessGreetingMessageSettings",
"properties": [
{
"name": "shortcut_id",
"type": "int32",
"description": "Unique quick reply shortcut identifier for the greeting messages"
},
{
"name": "recipients",
"type": "businessRecipients",
"description": "Chosen recipients of the greeting messages"
},
{
"name": "inactivity_days",
"type": "int32",
"description": "The number of days after which a chat will be considered as inactive; currently, must be on of 7, 14, 21, or 28"
}
]
},
{
"name": "businessConnectedBot",
"description": "Describes a bot connected to a business account",
"class": "BusinessConnectedBot",
"properties": [
{
"name": "bot_user_id",
"type": "int53",
"description": "User identifier of the bot"
},
{
"name": "recipients",
"type": "businessRecipients",
"description": "Private chats that will be accessible to the bot"
},
{
"name": "can_reply",
"type": "Bool",
"description": "True, if the bot can send messages to the private chats; false otherwise"
}
]
},
{
"name": "businessIntro",
"description": "Describes settings for a business account intro",
"class": "BusinessIntro",
"properties": [
{
"name": "title",
"type": "string",
"description": "Title text of the intro"
},
{
"name": "message",
"type": "string",
"description": "Message text of the intro"
},
{
"name": "sticker",
"type": "sticker",
"description": "Greeting sticker of the intro; may be null if none"
}
]
},
{
"name": "inputBusinessIntro",
"description": "Describes settings for a business account intro to set",
"class": "InputBusinessIntro",
"properties": [
{
"name": "title",
"type": "string",
"description": "Title text of the intro; 0-getOption(\"business_intro_title_length_max\") characters"
},
{
"name": "message",
"type": "string",
"description": "Message text of the intro; 0-getOption(\"business_intro_message_length_max\") characters"
},
{
"name": "sticker",
"type": "InputFile",
"description": "Greeting sticker of the intro; pass null if none. The sticker must belong to a sticker set and must not be a custom emoji"
}
]
},
{
"name": "businessOpeningHoursInterval",
"description": "Describes an interval of time when the business is open",
"class": "BusinessOpeningHoursInterval",
"properties": [
{
"name": "start_minute",
"type": "int32",
"description": "The first minute of the interval since start of the week; 0-7*24*60"
},
{
"name": "end_minute",
"type": "int32",
"description": "The first minute after the end of the interval since start of the week; 1-8*24*60"
}
]
},
{
"name": "businessOpeningHours",
"description": "Describes opening hours of a business",
"class": "BusinessOpeningHours",
"properties": [
{
"name": "time_zone_id",
"type": "string",
"description": "Unique time zone identifier"
},
{
"name": "opening_hours",
"type": "vector\u003cbusinessOpeningHoursInterval\u003e",
"description": "Intervals of the time when the business is open"
}
]
},
{
"name": "businessInfo",
"description": "Contains information about a Telegram Business account",
"class": "BusinessInfo",
"properties": [
{
"name": "location",
"type": "businessLocation",
"description": "Location of the business; may be null if none"
},
{
"name": "opening_hours",
"type": "businessOpeningHours",
"description": "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"
},
{
"name": "greeting_message_settings",
"type": "businessGreetingMessageSettings",
"description": "The greeting message; may be null if none or the Business account is not of the current user"
},
{
"name": "away_message_settings",
"type": "businessAwayMessageSettings",
"description": "The away message; may be null if none or the Business account is not of the current user"
},
{
"name": "intro",
"type": "businessIntro",
"description": "Information about intro of the business; may be null if none"
}
]
},
{
"name": "chatPhotoStickerTypeRegularOrMask",
"description": "Information about the sticker, which was used to create the chat photo",
"class": "ChatPhotoStickerType",
"properties": [
{
"name": "sticker_set_id",
"type": "int64",
"description": "Sticker set identifier"
},
{
"name": "sticker_id",
"type": "int64",
"description": "Identifier of the sticker in the set"
}
]
},
{
"name": "chatPhotoStickerTypeCustomEmoji",
"description": "Information about the custom emoji, which was used to create the chat photo",
"class": "ChatPhotoStickerType",
"properties": [
{
"name": "custom_emoji_id",
"type": "int64",
"description": "Identifier of the custom emoji"
}
]
},
{
"name": "chatPhotoSticker",
"description": "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",
"class": "ChatPhotoSticker",
"properties": [
{
"name": "type",
"type": "ChatPhotoStickerType",
"description": "Type of the sticker"
},
{
"name": "background_fill",
"type": "BackgroundFill",
"description": "The fill to be used as background for the sticker; rotation angle in backgroundFillGradient isn't supported"
}
]
},
2021-10-22 16:24:12 +02:00
{
"name": "animatedChatPhoto",
"description": "Animated variant of a chat photo in MPEG4 format",
"class": "AnimatedChatPhoto",
"properties": [
{
"name": "length",
"type": "int32",
"description": "Animation width and height"
},
{
"name": "file",
"type": "file",
"description": "Information about the animation file"
},
{
"name": "main_frame_timestamp",
"type": "double",
"description": "Timestamp of the frame, used as a static chat photo"
}
]
},
{
"name": "chatPhoto",
"description": "Describes a chat or user profile photo",
"class": "ChatPhoto",
"properties": [
{
"name": "id",
"type": "int64",
"description": "Unique photo identifier"
},
{
"name": "added_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the photo has been added"
},
{
"name": "minithumbnail",
"type": "minithumbnail",
"description": "Photo minithumbnail; may be null"
},
{
"name": "sizes",
"type": "vector\u003cphotoSize\u003e",
"description": "Available variants of the photo in JPEG format, in different size"
},
{
"name": "animation",
"type": "animatedChatPhoto",
2024-10-06 19:09:53 +02:00
"description": "A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null"
2023-06-04 22:58:07 +02:00
},
{
"name": "small_animation",
"type": "animatedChatPhoto",
"description": "A small (160x160) animated variant of the photo in MPEG4 format; may be null even the big animation is available"
2024-10-06 19:09:53 +02:00
},
{
"name": "sticker",
"type": "chatPhotoSticker",
"description": "Sticker-based version of the chat photo; may be null"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "chatPhotos",
"description": "Contains a list of chat or user profile photos",
"class": "ChatPhotos",
"properties": [
{
"name": "total_count",
"type": "int32",
"description": "Total number of photos"
},
{
"name": "photos",
"type": "vector\u003cchatPhoto\u003e",
"description": "List of photos"
}
]
},
{
"name": "inputChatPhotoPrevious",
"description": "A previously used profile photo of the current user",
"class": "InputChatPhoto",
"properties": [
{
"name": "chat_photo_id",
"type": "int64",
2021-12-08 10:23:00 +01:00
"description": "Identifier of the current user's profile photo to reuse"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "inputChatPhotoStatic",
"description": "A static photo in JPEG format",
"class": "InputChatPhoto",
"properties": [
{
"name": "photo",
"type": "InputFile",
"description": "Photo to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed"
}
]
},
{
"name": "inputChatPhotoAnimation",
2024-10-06 19:09:53 +02:00
"description": "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",
2021-10-22 16:24:12 +02:00
"class": "InputChatPhoto",
"properties": [
{
"name": "animation",
"type": "InputFile",
"description": "Animation to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed"
},
{
"name": "main_frame_timestamp",
"type": "double",
"description": "Timestamp of the frame, which will be used as static chat photo"
}
]
},
2024-10-06 19:09:53 +02:00
{
"name": "inputChatPhotoSticker",
"description": "A sticker on a custom background",
"class": "InputChatPhoto",
"properties": [
{
"name": "sticker",
"type": "chatPhotoSticker",
"description": "Information about the sticker"
}
]
},
2023-06-04 22:58:07 +02:00
{
"name": "chatPermissions",
"description": "Describes actions that a user is allowed to take in a chat",
"class": "ChatPermissions",
"properties": [
{
2024-10-06 19:09:53 +02:00
"name": "can_send_basic_messages",
2023-06-04 22:58:07 +02:00
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "True, if the user can send text messages, contacts, giveaways, giveaway winners, invoices, locations, and venues"
2023-06-04 22:58:07 +02:00
},
{
2024-10-06 19:09:53 +02:00
"name": "can_send_audios",
2023-06-04 22:58:07 +02:00
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "True, if the user can send music files"
},
{
"name": "can_send_documents",
"type": "Bool",
"description": "True, if the user can send documents"
},
{
"name": "can_send_photos",
"type": "Bool",
"description": "True, if the user can send photos"
},
{
"name": "can_send_videos",
"type": "Bool",
"description": "True, if the user can send videos"
},
{
"name": "can_send_video_notes",
"type": "Bool",
"description": "True, if the user can send video notes"
},
{
"name": "can_send_voice_notes",
"type": "Bool",
"description": "True, if the user can send voice notes"
2023-06-04 22:58:07 +02:00
},
{
"name": "can_send_polls",
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "True, if the user can send polls"
2023-06-04 22:58:07 +02:00
},
{
"name": "can_send_other_messages",
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "True, if the user can send animations, games, stickers, and dice and use inline bots"
2023-06-04 22:58:07 +02:00
},
{
"name": "can_add_web_page_previews",
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "True, if the user may add a web page preview to their messages"
2023-06-04 22:58:07 +02:00
},
{
"name": "can_change_info",
"type": "Bool",
"description": "True, if the user can change the chat title, photo, and other settings"
},
{
"name": "can_invite_users",
"type": "Bool",
"description": "True, if the user can invite new users to the chat"
},
{
"name": "can_pin_messages",
"type": "Bool",
"description": "True, if the user can pin messages"
},
{
2024-10-06 19:09:53 +02:00
"name": "can_create_topics",
2023-06-04 22:58:07 +02:00
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "True, if the user can create topics"
2023-06-04 22:58:07 +02:00
}
]
},
{
"name": "chatAdministratorRights",
"description": "Describes rights of the administrator",
"class": "ChatAdministratorRights",
"properties": [
{
"name": "can_manage_chat",
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "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"
2023-06-04 22:58:07 +02:00
},
{
"name": "can_change_info",
"type": "Bool",
"description": "True, if the administrator can change the chat title, photo, and other settings"
},
{
"name": "can_post_messages",
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "True, if the administrator can create channel posts or view channel statistics; applicable to channels only"
2023-06-04 22:58:07 +02:00
},
{
"name": "can_edit_messages",
"type": "Bool",
"description": "True, if the administrator can edit messages of other users and pin messages; applicable to channels only"
},
{
"name": "can_delete_messages",
"type": "Bool",
"description": "True, if the administrator can delete messages of other users"
},
{
"name": "can_invite_users",
"type": "Bool",
"description": "True, if the administrator can invite new users to the chat"
},
{
"name": "can_restrict_members",
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics; always true for channels"
2023-06-04 22:58:07 +02:00
},
{
"name": "can_pin_messages",
"type": "Bool",
"description": "True, if the administrator can pin messages; applicable to basic groups and supergroups only"
},
{
"name": "can_manage_topics",
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "True, if the administrator can create, rename, close, reopen, hide, and unhide forum topics; applicable to forum supergroups only"
2023-06-04 22:58:07 +02:00
},
{
"name": "can_promote_members",
"type": "Bool",
"description": "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"
},
{
"name": "can_manage_video_chats",
"type": "Bool",
"description": "True, if the administrator can manage video chats"
},
2024-10-06 19:09:53 +02:00
{
"name": "can_post_stories",
"type": "Bool",
"description": "True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and channels only"
},
{
"name": "can_edit_stories",
"type": "Bool",
"description": "True, if the administrator can edit stories posted by other users, pin stories and access story archive; applicable to supergroups and channels only"
},
{
"name": "can_delete_stories",
"type": "Bool",
"description": "True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only"
},
2023-06-04 22:58:07 +02:00
{
"name": "is_anonymous",
"type": "Bool",
"description": "True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only"
}
]
},
{
"name": "premiumPaymentOption",
"description": "Describes an option for buying Telegram Premium to a user",
"class": "PremiumPaymentOption",
"properties": [
{
"name": "currency",
"type": "string",
"description": "ISO 4217 currency code for Telegram Premium subscription payment"
},
{
"name": "amount",
"type": "int53",
"description": "The amount to pay, in the smallest units of the currency"
},
{
"name": "discount_percentage",
"type": "int32",
"description": "The discount associated with this option, as a percentage"
},
{
"name": "month_count",
"type": "int32",
2024-10-06 19:09:53 +02:00
"description": "Number of months the Telegram Premium subscription will be active"
2023-06-04 22:58:07 +02:00
},
{
"name": "store_product_id",
"type": "string",
"description": "Identifier of the store product associated with the option"
},
{
"name": "payment_link",
"type": "InternalLinkType",
"description": "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"
}
]
},
2024-10-06 19:09:53 +02:00
{
"name": "premiumStatePaymentOption",
"description": "Describes an option for buying or upgrading Telegram Premium for self",
"class": "PremiumStatePaymentOption",
"properties": [
{
"name": "payment_option",
"type": "premiumPaymentOption",
"description": "Information about the payment option"
},
{
"name": "is_current",
"type": "Bool",
"description": "True, if this is the currently used Telegram Premium subscription option"
},
{
"name": "is_upgrade",
"type": "Bool",
"description": "True, if the payment option can be used to upgrade the existing Telegram Premium subscription"
},
{
"name": "last_transaction_id",
"type": "string",
"description": "Identifier of the last in-store transaction for the currently used option"
}
]
},
{
"name": "premiumGiftCodePaymentOption",
"description": "Describes an option for creating Telegram Premium gift codes",
"class": "PremiumGiftCodePaymentOption",
"properties": [
{
"name": "currency",
"type": "string",
"description": "ISO 4217 currency code for Telegram Premium gift code payment"
},
{
"name": "amount",
"type": "int53",
"description": "The amount to pay, in the smallest units of the currency"
},
{
"name": "user_count",
"type": "int32",
"description": "Number of users which will be able to activate the gift codes"
},
{
"name": "month_count",
"type": "int32",
"description": "Number of months the Telegram Premium subscription will be active"
},
{
"name": "store_product_id",
"type": "string",
"description": "Identifier of the store product associated with the option; may be empty if none"
},
{
"name": "store_product_quantity",
"type": "int32",
"description": "Number of times the store product must be paid"
}
]
},
{
"name": "premiumGiftCodePaymentOptions",
"description": "Contains a list of options for creating Telegram Premium gift codes",
"class": "PremiumGiftCodePaymentOptions",
"properties": [
{
"name": "options",
"type": "vector\u003cpremiumGiftCodePaymentOption\u003e",
"description": "The list of options"
}
]
},
{
"name": "premiumGiftCodeInfo",
"description": "Contains information about a Telegram Premium gift code",
"class": "PremiumGiftCodeInfo",
"properties": [
{
"name": "creator_id",
"type": "MessageSender",
"description": "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"
},
{
"name": "creation_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the code was created"
},
{
"name": "is_from_giveaway",
"type": "Bool",
"description": "True, if the gift code was created for a giveaway"
},
{
"name": "giveaway_message_id",
"type": "int53",
"description": "Identifier of the corresponding giveaway message in the creator_id chat; can be 0 or an identifier of a deleted message"
},
{
"name": "month_count",
"type": "int32",
"description": "Number of months the Telegram Premium subscription will be active after code activation"
},
{
"name": "user_id",
"type": "int53",
"description": "Identifier of a user for which the code was created; 0 if none"
},
{
"name": "use_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the code was activated; 0 if none"
}
]
},
{
"name": "premiumGiveawayParticipantStatusEligible",
"description": "The user is eligible for the giveaway",
"class": "PremiumGiveawayParticipantStatus",
"properties": []
},
{
"name": "premiumGiveawayParticipantStatusParticipating",
"description": "The user participates in the giveaway",
"class": "PremiumGiveawayParticipantStatus",
"properties": []
},
{
"name": "premiumGiveawayParticipantStatusAlreadyWasMember",
"description": "The user can't participate in the giveaway, because they have already been member of the chat",
"class": "PremiumGiveawayParticipantStatus",
"properties": [
{
"name": "joined_chat_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the user joined the chat"
}
]
},
{
"name": "premiumGiveawayParticipantStatusAdministrator",
"description": "The user can't participate in the giveaway, because they are an administrator in one of the chats that created the giveaway",
"class": "PremiumGiveawayParticipantStatus",
"properties": [
{
"name": "chat_id",
"type": "int53",
"description": "Identifier of the chat administered by the user"
}
]
},
{
"name": "premiumGiveawayParticipantStatusDisallowedCountry",
"description": "The user can't participate in the giveaway, because they phone number is from a disallowed country",
"class": "PremiumGiveawayParticipantStatus",
"properties": [
{
"name": "user_country_code",
"type": "string",
"description": "A two-letter ISO 3166-1 alpha-2 country code of the user's country"
}
]
},
{
"name": "premiumGiveawayInfoOngoing",
"description": "Describes an ongoing giveaway",
"class": "PremiumGiveawayInfo",
"properties": [
{
"name": "creation_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the giveaway was created"
},
{
"name": "status",
"type": "PremiumGiveawayParticipantStatus",
"description": "Status of the current user in the giveaway"
},
{
"name": "is_ended",
"type": "Bool",
"description": "True, if the giveaway has ended and results are being prepared"
}
]
},
{
"name": "premiumGiveawayInfoCompleted",
"description": "Describes a completed giveaway",
"class": "PremiumGiveawayInfo",
"properties": [
{
"name": "creation_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the giveaway was created"
},
{
"name": "actual_winners_selection_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway"
},
{
"name": "was_refunded",
"type": "Bool",
"description": "True, if the giveaway was canceled and was fully refunded"
},
{
"name": "winner_count",
"type": "int32",
"description": "Number of winners in the giveaway"
},
{
"name": "activation_count",
"type": "int32",
"description": "Number of winners, which activated their gift codes"
},
{
"name": "gift_code",
"type": "string",
"description": "Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway"
}
]
},
{
"name": "accentColor",
"description": "Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews",
"class": "AccentColor",
"properties": [
{
"name": "id",
"type": "int32",
"description": "Accent color identifier"
},
{
"name": "built_in_accent_color_id",
"type": "int32",
"description": "Identifier of a built-in color to use in places, where only one color is needed; 0-6"
},
{
"name": "light_theme_colors",
"type": "vector\u003cint32\u003e",
"description": "The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes"
},
{
"name": "dark_theme_colors",
"type": "vector\u003cint32\u003e",
"description": "The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes"
},
{
"name": "min_channel_chat_boost_level",
"type": "int32",
"description": "The minimum chat boost level required to use the color in a channel chat"
}
]
},
{
"name": "profileAccentColors",
"description": "Contains information about supported accent colors for user profile photo background in RGB format",
"class": "ProfileAccentColors",
"properties": [
{
"name": "palette_colors",
"type": "vector\u003cint32\u003e",
"description": "The list of 1-2 colors in RGB format, describing the colors, as expected to be shown in the color palette settings"
},
{
"name": "background_colors",
"type": "vector\u003cint32\u003e",
"description": "The list of 1-2 colors in RGB format, describing the colors, as expected to be used for the profile photo background"
},
{
"name": "story_colors",
"type": "vector\u003cint32\u003e",
"description": "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"
}
]
},
{
"name": "profileAccentColor",
"description": "Contains information about supported accent color for user profile photo background",
"class": "ProfileAccentColor",
"properties": [
{
"name": "id",
"type": "int32",
"description": "Profile accent color identifier"
},
{
"name": "light_theme_colors",
"type": "profileAccentColors",
"description": "Accent colors expected to be used in light themes"
},
{
"name": "dark_theme_colors",
"type": "profileAccentColors",
"description": "Accent colors expected to be used in dark themes"
},
{
"name": "min_supergroup_chat_boost_level",
"type": "int32",
"description": "The minimum chat boost level required to use the color in a supergroup chat"
},
{
"name": "min_channel_chat_boost_level",
"type": "int32",
"description": "The minimum chat boost level required to use the color in a channel chat"
}
]
},
2023-06-04 22:58:07 +02:00
{
"name": "emojiStatus",
"description": "Describes a custom emoji to be shown instead of the Telegram Premium badge",
"class": "EmojiStatus",
"properties": [
{
"name": "custom_emoji_id",
"type": "int64",
"description": "Identifier of the custom emoji in stickerFormatTgs format"
2024-10-06 19:09:53 +02:00
},
{
"name": "expiration_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the status will expire; 0 if never"
2023-06-04 22:58:07 +02:00
}
]
},
{
"name": "emojiStatuses",
2024-10-06 19:09:53 +02:00
"description": "Contains a list of custom emoji identifiers for emoji statuses",
2023-06-04 22:58:07 +02:00
"class": "EmojiStatuses",
"properties": [
{
2024-10-06 19:09:53 +02:00
"name": "custom_emoji_ids",
"type": "vector\u003cint64\u003e",
"description": "The list of custom emoji identifiers"
2023-06-04 22:58:07 +02:00
}
]
},
{
"name": "usernames",
"description": "Describes usernames assigned to a user, a supergroup, or a channel",
"class": "Usernames",
"properties": [
{
"name": "active_usernames",
"type": "vector\u003cstring\u003e",
2024-10-06 19:09:53 +02:00
"description": "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"
2023-06-04 22:58:07 +02:00
},
{
"name": "disabled_usernames",
"type": "vector\u003cstring\u003e",
2024-10-06 19:09:53 +02:00
"description": "List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive"
2023-06-04 22:58:07 +02:00
},
{
"name": "editable_username",
"type": "string",
2024-10-06 19:09:53 +02:00
"description": "The active username, which can be changed with setUsername or setSupergroupUsername. Information about other active usernames can be received using getCollectibleItemInfo"
2023-06-04 22:58:07 +02:00
}
]
},
2021-10-22 16:24:12 +02:00
{
"name": "user",
"description": "Represents a user",
"class": "User",
"properties": [
{
"name": "id",
2021-12-08 10:23:00 +01:00
"type": "int53",
2021-10-22 16:24:12 +02:00
"description": "User identifier"
},
{
"name": "first_name",
"type": "string",
"description": "First name of the user"
},
{
"name": "last_name",
"type": "string",
"description": "Last name of the user"
},
{
2023-06-04 22:58:07 +02:00
"name": "usernames",
"type": "usernames",
"description": "Usernames of the user; may be null"
2021-10-22 16:24:12 +02:00
},
{
"name": "phone_number",
"type": "string",
"description": "Phone number of the user"
},
{
"name": "status",
"type": "UserStatus",
"description": "Current online status of the user"
},
{
"name": "profile_photo",
"type": "profilePhoto",
"description": "Profile photo of the user; may be null"
},
2024-10-06 19:09:53 +02:00
{
"name": "accent_color_id",
"type": "int32",
"description": "Identifier of the accent color for name, and backgrounds of profile photo, reply header, and link preview. For Telegram Premium users only"
},
{
"name": "background_custom_emoji_id",
"type": "int64",
"description": "Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none. For Telegram Premium users only"
},
{
"name": "profile_accent_color_id",
"type": "int32",
"description": "Identifier of the accent color for the user's profile; -1 if none. For Telegram Premium users only"
},
{
"name": "profile_background_custom_emoji_id",
"type": "int64",
"description": "Identifier of a custom emoji to be shown on the background of the user's profile; 0 if none. For Telegram Premium users only"
},
2023-06-04 22:58:07 +02:00
{
"name": "emoji_status",
"type": "emojiStatus",
"description": "Emoji status to be shown instead of the default Telegram Premium badge; may be null. For Telegram Premium users only"
},
2021-10-22 16:24:12 +02:00
{
"name": "is_contact",
"type": "Bool",
"description": "The user is a contact of the current user"
},
{
"name": "is_mutual_contact",
"type": "Bool",
"description": "The user is a contact of the current user and the current user is a contact of the user"
},
2024-10-06 19:09:53 +02:00
{
"name": "is_close_friend",
"type": "Bool",
"description": "The user is a close friend of the current user; implies that the user is a contact"
},
2021-10-22 16:24:12 +02:00
{
"name": "is_verified",
"type": "Bool",
"description": "True, if the user is verified"
},
2023-06-04 22:58:07 +02:00
{
"name": "is_premium",
"type": "Bool",
"description": "True, if the user is a Telegram Premium user"
},
2021-10-22 16:24:12 +02:00
{
"name": "is_support",
"type": "Bool",
"description": "True, if the user is Telegram support account"
},
{
"name": "restriction_reason",
"type": "string",
"description": "If non-empty, it contains a human-readable description of the reason why access to this user must be restricted"
},
{
"name": "is_scam",
"type": "Bool",
"description": "True, if many users reported this user as a scam"
},
2021-12-08 10:23:00 +01:00
{
"name": "is_fake",
"type": "Bool",
"description": "True, if many users reported this user as a fake account"
},
2024-10-06 19:09:53 +02:00
{
"name": "has_active_stories",
"type": "Bool",
"description": "True, if the user has non-expired stories available to the current user"
},
{
"name": "has_unread_active_stories",
"type": "Bool",
"description": "True, if the user has unread non-expired stories available to the current user"
},
{
"name": "restricts_new_chats",
"type": "Bool",
"description": "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"
},
2021-10-22 16:24:12 +02:00
{
"name": "have_access",
"type": "Bool",
2023-06-04 22:58:07 +02:00
"description": "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"
2021-10-22 16:24:12 +02:00
},
{
"name": "type",
"type": "UserType",
"description": "Type of the user"
},
{
"name": "language_code",
"type": "string",
"description": "IETF language tag of the user's language; only available to bots"
2023-06-04 22:58:07 +02:00
},
{
"name": "added_to_attachment_menu",
"type": "Bool",
"description": "True, if the user added the current bot to attachment menu; only available to bots"
}
]
},
{
"name": "botInfo",
"description": "Contains information about a bot",
"class": "BotInfo",
"properties": [
{
2024-10-06 19:09:53 +02:00
"name": "short_description",
2023-06-04 22:58:07 +02:00
"type": "string",
"description": "The text that is shown on the bot's profile page and is sent together with the link when users share the bot"
},
{
"name": "description",
"type": "string",
"description": "The text shown in the chat with the bot if the chat is empty"
},
{
"name": "photo",
"type": "photo",
"description": "Photo shown in the chat with the bot if the chat is empty; may be null"
},
{
"name": "animation",
"type": "animation",
"description": "Animation shown in the chat with the bot if the chat is empty; may be null"
},
{
"name": "menu_button",
"type": "botMenuButton",
"description": "Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown"
},
{
"name": "commands",
"type": "vector\u003cbotCommand\u003e",
"description": "List of the bot commands"
},
{
"name": "default_group_administrator_rights",
"type": "chatAdministratorRights",
"description": "Default administrator rights for adding the bot to basic group and supergroup chats; may be null"
},
{
"name": "default_channel_administrator_rights",
"type": "chatAdministratorRights",
"description": "Default administrator rights for adding the bot to channels; may be null"
2024-10-06 19:09:53 +02:00
},
{
"name": "edit_commands_link",
"type": "InternalLinkType",
"description": "The internal link, which can be used to edit bot commands; may be null"
},
{
"name": "edit_description_link",
"type": "InternalLinkType",
"description": "The internal link, which can be used to edit bot description; may be null"
},
{
"name": "edit_description_media_link",
"type": "InternalLinkType",
"description": "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"
},
{
"name": "edit_settings_link",
"type": "InternalLinkType",
"description": "The internal link, which can be used to edit bot settings; may be null"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "userFullInfo",
"description": "Contains full information about a user",
"class": "UserFullInfo",
"properties": [
2023-06-04 22:58:07 +02:00
{
"name": "personal_photo",
"type": "chatPhoto",
2024-10-06 19:09:53 +02:00
"description": "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"
2023-06-04 22:58:07 +02:00
},
2021-10-22 16:24:12 +02:00
{
"name": "photo",
"type": "chatPhoto",
2024-10-06 19:09:53 +02:00
"description": "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"
2023-06-04 22:58:07 +02:00
},
{
"name": "public_photo",
"type": "chatPhoto",
2024-10-06 19:09:53 +02:00
"description": "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"
2021-10-22 16:24:12 +02:00
},
{
2024-10-06 19:09:53 +02:00
"name": "block_list",
"type": "BlockList",
"description": "Block list to which the user is added; may be null if none"
2021-10-22 16:24:12 +02:00
},
{
"name": "can_be_called",
"type": "Bool",
"description": "True, if the user can be called"
},
{
"name": "supports_video_calls",
"type": "Bool",
"description": "True, if a video call can be created with the user"
},
{
"name": "has_private_calls",
"type": "Bool",
"description": "True, if the user can't be called due to their privacy settings"
},
2021-12-08 10:23:00 +01:00
{
"name": "has_private_forwards",
"type": "Bool",
"description": "True, if the user can't be linked in forwarded messages due to their privacy settings"
},
2023-06-04 22:58:07 +02:00
{
"name": "has_restricted_voice_and_video_note_messages",
"type": "Bool",
"description": "True, if voice and video notes can't be sent or forwarded to the user"
},
2024-10-06 19:09:53 +02:00
{
"name": "has_pinned_stories",
"type": "Bool",
"description": "True, if the user has pinned stories"
},
2021-10-22 16:24:12 +02:00
{
"name": "need_phone_number_privacy_exception",
"type": "Bool",
"description": "True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used"
},
2024-10-06 19:09:53 +02:00
{
"name": "set_chat_background",
"type": "Bool",
"description": "True, if the user set chat background for both chat users and it wasn't reverted yet"
},
2021-10-22 16:24:12 +02:00
{
"name": "bio",
2023-06-04 22:58:07 +02:00
"type": "formattedText",
"description": "A short user bio; may be null for bots"
2023-06-04 22:53:18 +02:00
},
2024-10-06 19:09:53 +02:00
{
"name": "birthdate",
"type": "birthdate",
"description": "Birthdate of the user; may be null if unknown"
},
{
"name": "personal_chat_id",
"type": "int53",
"description": "Identifier of the personal chat of the user; 0 if none"
},
2023-06-04 22:53:18 +02:00
{
2023-06-04 22:58:07 +02:00
"name": "premium_gift_options",
"type": "vector\u003cpremiumPaymentOption\u003e",
"description": "The list of available options for gifting Telegram Premium to the user"
2023-06-04 22:53:18 +02:00
},
2021-10-22 16:24:12 +02:00
{
"name": "group_in_common_count",
"type": "int32",
"description": "Number of group chats where both the other user and the current user are a member; 0 for the current user"
},
2024-10-06 19:09:53 +02:00
{
"name": "business_info",
"type": "businessInfo",
"description": "Information about business settings for Telegram Business accounts; may be null if none"
},
2021-10-22 16:24:12 +02:00
{
2023-06-04 22:58:07 +02:00
"name": "bot_info",
"type": "botInfo",
2024-10-06 19:09:53 +02:00
"description": "For bots, information about the bot; may be null if the user isn't a bot"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "users",
"description": "Represents a list of users",
"class": "Users",
"properties": [
{
"name": "total_count",
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "Approximate total number of users found"
2021-10-22 16:24:12 +02:00
},
{
"name": "user_ids",
2021-12-08 10:23:00 +01:00
"type": "vector\u003cint53\u003e",
2021-10-22 16:24:12 +02:00
"description": "A list of user identifiers"
}
]
},
{
"name": "chatAdministrator",
"description": "Contains information about a chat administrator",
"class": "ChatAdministrator",
"properties": [
{
"name": "user_id",
2021-12-08 10:23:00 +01:00
"type": "int53",
2021-10-22 16:24:12 +02:00
"description": "User identifier of the administrator"
},
{
"name": "custom_title",
"type": "string",
"description": "Custom title of the administrator"
},
{
"name": "is_owner",
"type": "Bool",
"description": "True, if the user is the owner of the chat"
}
]
},
{
"name": "chatAdministrators",
"description": "Represents a list of chat administrators",
"class": "ChatAdministrators",
"properties": [
{
"name": "administrators",
"type": "vector\u003cchatAdministrator\u003e",
"description": "A list of chat administrators"
}
]
},
2023-06-04 22:53:18 +02:00
{
2023-06-04 22:58:07 +02:00
"name": "chatMemberStatusCreator",
"description": "The user is the owner of the chat and has all the administrator privileges",
"class": "ChatMemberStatus",
2023-06-04 22:53:18 +02:00
"properties": [
{
2023-06-04 22:58:07 +02:00
"name": "custom_title",
"type": "string",
"description": "A custom title of the owner; 0-16 characters without emojis; applicable to supergroups only"
2023-06-04 22:53:18 +02:00
},
{
2023-06-04 22:58:07 +02:00
"name": "is_anonymous",
2023-06-04 22:53:18 +02:00
"type": "Bool",
2023-06-04 22:58:07 +02:00
"description": "True, if the creator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only"
2021-10-22 16:24:12 +02:00
},
{
"name": "is_member",
"type": "Bool",
"description": "True, if the user is a member of the chat"
}
]
},
{
"name": "chatMemberStatusAdministrator",
2021-12-08 10:23:00 +01:00
"description": "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",
2021-10-22 16:24:12 +02:00
"class": "ChatMemberStatus",
"properties": [
{
"name": "custom_title",
"type": "string",
"description": "A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only"
},
{
"name": "can_be_edited",
"type": "Bool",
"description": "True, if the current user can edit the administrator privileges for the called user"
},
2021-12-08 10:23:00 +01:00
{
2023-06-04 22:58:07 +02:00
"name": "rights",
"type": "chatAdministratorRights",
"description": "Rights of the administrator"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "chatMemberStatusMember",
2021-12-08 10:23:00 +01:00
"description": "The user is a member of the chat, without any additional privileges or restrictions",
2021-10-22 16:24:12 +02:00
"class": "ChatMemberStatus",
"properties": []
},
{
"name": "chatMemberStatusRestricted",
"description": "The user is under certain restrictions in the chat. Not supported in basic groups and channels",
"class": "ChatMemberStatus",
"properties": [
{
"name": "is_member",
"type": "Bool",
"description": "True, if the user is a member of the chat"
},
{
"name": "restricted_until_date",
"type": "int32",
"description": "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"
},
{
"name": "permissions",
"type": "chatPermissions",
"description": "User permissions in the chat"
}
]
},
{
"name": "chatMemberStatusLeft",
2021-12-08 10:23:00 +01:00
"description": "The user or the chat is not a chat member",
2021-10-22 16:24:12 +02:00
"class": "ChatMemberStatus",
"properties": []
},
{
"name": "chatMemberStatusBanned",
2021-12-08 10:23:00 +01:00
"description": "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",
2021-10-22 16:24:12 +02:00
"class": "ChatMemberStatus",
"properties": [
{
"name": "banned_until_date",
"type": "int32",
2021-12-08 10:23:00 +01:00
"description": "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"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "chatMember",
2021-12-08 10:23:00 +01:00
"description": "Describes a user or a chat as a member of another chat",
2021-10-22 16:24:12 +02:00
"class": "ChatMember",
"properties": [
{
2021-12-08 10:23:00 +01:00
"name": "member_id",
"type": "MessageSender",
"description": "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"
2021-10-22 16:24:12 +02:00
},
{
"name": "inviter_user_id",
2021-12-08 10:23:00 +01:00
"type": "int53",
2021-10-22 16:24:12 +02:00
"description": "Identifier of a user that invited/promoted/banned this member in the chat; 0 if unknown"
},
{
"name": "joined_chat_date",
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "Point in time (Unix timestamp) when the user joined/was promoted/was banned in the chat"
2021-10-22 16:24:12 +02:00
},
{
"name": "status",
"type": "ChatMemberStatus",
"description": "Status of the member in the chat"
}
]
},
{
"name": "chatMembers",
"description": "Contains a list of chat members",
"class": "ChatMembers",
"properties": [
{
"name": "total_count",
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "Approximate total number of chat members found"
2021-10-22 16:24:12 +02:00
},
{
"name": "members",
"type": "vector\u003cchatMember\u003e",
"description": "A list of chat members"
}
]
},
{
"name": "chatMembersFilterContacts",
"description": "Returns contacts of the user",
"class": "ChatMembersFilter",
"properties": []
},
{
"name": "chatMembersFilterAdministrators",
"description": "Returns the owner and administrators",
"class": "ChatMembersFilter",
"properties": []
},
{
"name": "chatMembersFilterMembers",
"description": "Returns all chat members, including restricted chat members",
"class": "ChatMembersFilter",
"properties": []
},
{
"name": "chatMembersFilterMention",
"description": "Returns users which can be mentioned in the chat",
"class": "ChatMembersFilter",
"properties": [
{
"name": "message_thread_id",
"type": "int53",
"description": "If non-zero, the identifier of the current message thread"
}
]
},
{
"name": "chatMembersFilterRestricted",
"description": "Returns users under certain restrictions in the chat; can be used only by administrators in a supergroup",
"class": "ChatMembersFilter",
"properties": []
},
{
"name": "chatMembersFilterBanned",
"description": "Returns users banned from the chat; can be used only by administrators in a supergroup or in a channel",
"class": "ChatMembersFilter",
"properties": []
},
{
"name": "chatMembersFilterBots",
"description": "Returns bot members of the chat",
"class": "ChatMembersFilter",
"properties": []
},
{
"name": "supergroupMembersFilterRecent",
"description": "Returns recently active users in reverse chronological order",
"class": "SupergroupMembersFilter",
"properties": []
},
{
"name": "supergroupMembersFilterContacts",
"description": "Returns contacts of the user, which are members of the supergroup or channel",
"class": "SupergroupMembersFilter",
"properties": [
{
"name": "query",
"type": "string",
"description": "Query to search for"
}
]
},
{
"name": "supergroupMembersFilterAdministrators",
"description": "Returns the owner and administrators",
"class": "SupergroupMembersFilter",
"properties": []
},
{
"name": "supergroupMembersFilterSearch",
"description": "Used to search for supergroup or channel members via a (string) query",
"class": "SupergroupMembersFilter",
"properties": [
{
"name": "query",
"type": "string",
"description": "Query to search for"
}
]
},
{
"name": "supergroupMembersFilterRestricted",
"description": "Returns restricted supergroup members; can be used only by administrators",
"class": "SupergroupMembersFilter",
"properties": [
{
"name": "query",
"type": "string",
"description": "Query to search for"
}
]
},
{
"name": "supergroupMembersFilterBanned",
"description": "Returns users banned from the supergroup or channel; can be used only by administrators",
"class": "SupergroupMembersFilter",
"properties": [
{
"name": "query",
"type": "string",
"description": "Query to search for"
}
]
},
{
"name": "supergroupMembersFilterMention",
"description": "Returns users which can be mentioned in the supergroup",
"class": "SupergroupMembersFilter",
"properties": [
{
"name": "query",
"type": "string",
"description": "Query to search for"
},
{
"name": "message_thread_id",
"type": "int53",
"description": "If non-zero, the identifier of the current message thread"
}
]
},
{
"name": "supergroupMembersFilterBots",
"description": "Returns bot members of the supergroup or channel",
"class": "SupergroupMembersFilter",
"properties": []
},
{
2021-12-08 10:23:00 +01:00
"name": "chatInviteLink",
"description": "Contains a chat invite link",
"class": "ChatInviteLink",
2021-10-22 16:24:12 +02:00
"properties": [
{
2021-12-08 10:23:00 +01:00
"name": "invite_link",
"type": "string",
"description": "Chat invite link"
},
{
"name": "name",
"type": "string",
"description": "Name of the link"
},
{
"name": "creator_user_id",
"type": "int53",
"description": "User identifier of an administrator created the link"
},
{
"name": "date",
2021-10-22 16:24:12 +02:00
"type": "int32",
2021-12-08 10:23:00 +01:00
"description": "Point in time (Unix timestamp) when the link was created"
},
{
"name": "edit_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown"
},
{
2022-04-18 22:45:01 +02:00
"name": "expiration_date",
2021-12-08 10:23:00 +01:00
"type": "int32",
"description": "Point in time (Unix timestamp) when the link will expire; 0 if never"
},
{
"name": "member_limit",
"type": "int32",
"description": "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"
2021-10-22 16:24:12 +02:00
},
{
"name": "member_count",
"type": "int32",
2021-12-08 10:23:00 +01:00
"description": "Number of chat members, which joined the chat using the link"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "pending_join_request_count",
"type": "int32",
"description": "Number of pending join requests created using this link"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "creates_join_request",
2021-10-22 16:24:12 +02:00
"type": "Bool",
2021-12-08 10:23:00 +01:00
"description": "True, if the link only creates join request. If true, total number of joining members will be unlimited"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "is_primary",
"type": "Bool",
2022-04-18 22:45:01 +02:00
"description": "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"
2021-12-08 10:23:00 +01:00
},
{
"name": "is_revoked",
"type": "Bool",
"description": "True, if the link was revoked"
2021-10-22 16:24:12 +02:00
}
]
},
{
2021-12-08 10:23:00 +01:00
"name": "chatInviteLinks",
"description": "Contains a list of chat invite links",
"class": "ChatInviteLinks",
2021-10-22 16:24:12 +02:00
"properties": [
{
2021-12-08 10:23:00 +01:00
"name": "total_count",
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "Approximate total number of chat invite links found"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "invite_links",
"type": "vector\u003cchatInviteLink\u003e",
"description": "List of invite links"
}
]
},
{
"name": "chatInviteLinkCount",
"description": "Describes a chat administrator with a number of active and revoked chat invite links",
"class": "ChatInviteLinkCount",
"properties": [
{
"name": "user_id",
"type": "int53",
"description": "Administrator's user identifier"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "invite_link_count",
2021-10-22 16:24:12 +02:00
"type": "int32",
2021-12-08 10:23:00 +01:00
"description": "Number of active invite links"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "revoked_invite_link_count",
"type": "int32",
"description": "Number of revoked invite links"
}
]
},
{
"name": "chatInviteLinkCounts",
"description": "Contains a list of chat invite link counts",
"class": "ChatInviteLinkCounts",
"properties": [
2021-10-22 16:24:12 +02:00
{
2021-12-08 10:23:00 +01:00
"name": "invite_link_counts",
"type": "vector\u003cchatInviteLinkCount\u003e",
"description": "List of invite link counts"
2021-10-22 16:24:12 +02:00
}
]
},
{
2021-12-08 10:23:00 +01:00
"name": "chatInviteLinkMember",
2022-04-18 22:45:01 +02:00
"description": "Describes a chat member joined a chat via an invite link",
2021-12-08 10:23:00 +01:00
"class": "ChatInviteLinkMember",
2021-10-22 16:24:12 +02:00
"properties": [
{
2021-12-08 10:23:00 +01:00
"name": "user_id",
"type": "int53",
"description": "User identifier"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "joined_chat_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the user joined the chat"
2021-10-22 16:24:12 +02:00
},
2024-10-06 19:09:53 +02:00
{
"name": "via_chat_folder_invite_link",
"type": "Bool",
"description": "True, if the user has joined the chat using an invite link for a chat folder"
},
2021-10-22 16:24:12 +02:00
{
2021-12-08 10:23:00 +01:00
"name": "approver_user_id",
"type": "int53",
"description": "User identifier of the chat administrator, approved user join request"
}
]
},
{
"name": "chatInviteLinkMembers",
2022-04-18 22:45:01 +02:00
"description": "Contains a list of chat members joined a chat via an invite link",
2021-12-08 10:23:00 +01:00
"class": "ChatInviteLinkMembers",
"properties": [
{
"name": "total_count",
2021-10-22 16:24:12 +02:00
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "Approximate total number of chat members found"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "members",
"type": "vector\u003cchatInviteLinkMember\u003e",
2022-04-18 22:45:01 +02:00
"description": "List of chat members, joined a chat via an invite link"
2021-12-08 10:23:00 +01:00
}
]
},
2024-10-06 19:09:53 +02:00
{
"name": "inviteLinkChatTypeBasicGroup",
"description": "The link is an invite link for a basic group",
"class": "InviteLinkChatType",
"properties": []
},
{
"name": "inviteLinkChatTypeSupergroup",
"description": "The link is an invite link for a supergroup",
"class": "InviteLinkChatType",
"properties": []
},
{
"name": "inviteLinkChatTypeChannel",
"description": "The link is an invite link for a channel",
"class": "InviteLinkChatType",
"properties": []
},
2021-12-08 10:23:00 +01:00
{
"name": "chatInviteLinkInfo",
"description": "Contains information about a chat invite link",
"class": "ChatInviteLinkInfo",
"properties": [
{
"name": "chat_id",
"type": "int53",
"description": "Chat identifier of the invite link; 0 if the user has no access to the chat before joining"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "accessible_for",
2021-10-22 16:24:12 +02:00
"type": "int32",
2021-12-08 10:23:00 +01:00
"description": "If non-zero, the amount of time for which read access to the chat will remain available, in seconds"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "type",
2024-10-06 19:09:53 +02:00
"type": "InviteLinkChatType",
2021-12-08 10:23:00 +01:00
"description": "Type of the chat"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "title",
"type": "string",
"description": "Title of the chat"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "photo",
"type": "chatPhotoInfo",
"description": "Chat photo; may be null"
2021-10-22 16:24:12 +02:00
},
2024-10-06 19:09:53 +02:00
{
"name": "accent_color_id",
"type": "int32",
"description": "Identifier of the accent color for chat title and background of chat photo"
},
2021-10-22 16:24:12 +02:00
{
2021-12-08 10:23:00 +01:00
"name": "description",
"type": "string",
"description": "Chat description"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "member_count",
"type": "int32",
"description": "Number of members in the chat"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "member_user_ids",
"type": "vector\u003cint53\u003e",
"description": "User identifiers of some chat members that may be known to the current user"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "creates_join_request",
"type": "Bool",
"description": "True, if the link only creates join request"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "is_public",
2021-10-22 16:24:12 +02:00
"type": "Bool",
2021-12-08 10:23:00 +01:00
"description": "True, if the chat is a public supergroup or channel, i.e. it has a username or it is a location-based supergroup"
2024-10-06 19:09:53 +02:00
},
{
"name": "is_verified",
"type": "Bool",
"description": "True, if the chat is verified"
},
{
"name": "is_scam",
"type": "Bool",
"description": "True, if many users reported this chat as a scam"
},
{
"name": "is_fake",
"type": "Bool",
"description": "True, if many users reported this chat as a fake account"
2021-10-22 16:24:12 +02:00
}
]
},
{
2021-12-08 10:23:00 +01:00
"name": "chatJoinRequest",
"description": "Describes a user that sent a join request and waits for administrator approval",
"class": "ChatJoinRequest",
"properties": [
{
"name": "user_id",
"type": "int53",
"description": "User identifier"
},
{
"name": "date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the user sent the join request"
},
{
"name": "bio",
"type": "string",
"description": "A short bio of the user"
}
]
},
{
"name": "chatJoinRequests",
2022-04-18 22:45:01 +02:00
"description": "Contains a list of requests to join a chat",
2021-12-08 10:23:00 +01:00
"class": "ChatJoinRequests",
"properties": [
{
"name": "total_count",
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "Approximate total number of requests found"
2021-12-08 10:23:00 +01:00
},
{
"name": "requests",
"type": "vector\u003cchatJoinRequest\u003e",
"description": "List of the requests"
}
]
},
{
"name": "chatJoinRequestsInfo",
2022-04-18 22:45:01 +02:00
"description": "Contains information about pending join requests for a chat",
2021-12-08 10:23:00 +01:00
"class": "ChatJoinRequestsInfo",
"properties": [
{
"name": "total_count",
"type": "int32",
"description": "Total number of pending join requests"
},
{
"name": "user_ids",
"type": "vector\u003cint53\u003e",
2022-04-18 22:45:01 +02:00
"description": "Identifiers of at most 3 users sent the newest pending join requests"
2021-12-08 10:23:00 +01:00
}
]
},
{
"name": "basicGroup",
"description": "Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users)",
"class": "BasicGroup",
"properties": [
{
"name": "id",
"type": "int53",
"description": "Group identifier"
},
{
"name": "member_count",
"type": "int32",
"description": "Number of members in the group"
},
{
"name": "status",
"type": "ChatMemberStatus",
"description": "Status of the current user in the group"
},
{
"name": "is_active",
"type": "Bool",
"description": "True, if the group is active"
},
{
"name": "upgraded_to_supergroup_id",
"type": "int53",
"description": "Identifier of the supergroup to which this group was upgraded; 0 if none"
}
]
},
{
"name": "basicGroupFullInfo",
"description": "Contains full information about a basic group",
"class": "BasicGroupFullInfo",
"properties": [
{
"name": "photo",
"type": "chatPhoto",
2023-06-04 22:58:07 +02:00
"description": "Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo"
2021-12-08 10:23:00 +01:00
},
{
"name": "description",
"type": "string",
"description": "Group description. Updated only after the basic group is opened"
},
{
"name": "creator_user_id",
"type": "int53",
"description": "User identifier of the creator of the group; 0 if unknown"
},
{
"name": "members",
"type": "vector\u003cchatMember\u003e",
"description": "Group members"
},
2023-06-04 22:58:07 +02:00
{
"name": "can_hide_members",
"type": "Bool",
"description": "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"
},
{
"name": "can_toggle_aggressive_anti_spam",
"type": "Bool",
"description": "True, if aggressive anti-spam checks can be enabled or disabled in the supergroup after upgrading the basic group to a supergroup"
},
2021-12-08 10:23:00 +01:00
{
"name": "invite_link",
"type": "chatInviteLink",
"description": "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"
},
{
"name": "bot_commands",
"type": "vector\u003cbotCommands\u003e",
"description": "List of commands of bots in the group"
}
]
},
{
"name": "supergroup",
"description": "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",
"class": "Supergroup",
"properties": [
{
"name": "id",
"type": "int53",
"description": "Supergroup or channel identifier"
},
{
2023-06-04 22:58:07 +02:00
"name": "usernames",
"type": "usernames",
"description": "Usernames of the supergroup or channel; may be null"
2021-12-08 10:23:00 +01:00
},
{
"name": "date",
"type": "int32",
"description": "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"
},
{
"name": "status",
"type": "ChatMemberStatus",
2023-06-04 22:58:07 +02:00
"description": "Status of the current user in the supergroup or channel; custom title will always be empty"
2021-12-08 10:23:00 +01:00
},
{
"name": "member_count",
"type": "int32",
2024-10-06 19:09:53 +02:00
"description": "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, getSuitableDiscussionChats, getUserPrivacySettingRules, getVideoChatAvailableParticipants, searchChatsNearby, searchPublicChats, or in chatFolderInviteLinkInfo.missing_chat_ids, or for public chats in which where sent messages and posted stories from publicForwards, or for public chats in which where sent messages from getMessagePublicForwards response"
},
{
"name": "boost_level",
"type": "int32",
"description": "Approximate boost level for the chat"
2021-12-08 10:23:00 +01:00
},
{
"name": "has_linked_chat",
"type": "Bool",
"description": "True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel"
},
{
"name": "has_location",
"type": "Bool",
"description": "True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup"
},
{
"name": "sign_messages",
"type": "Bool",
"description": "True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels"
},
2023-06-04 22:58:07 +02:00
{
"name": "join_to_send_messages",
"type": "Bool",
"description": "True, if users need to join the supergroup before they can send messages. Always true for channels and non-discussion supergroups"
},
{
"name": "join_by_request",
"type": "Bool",
"description": "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"
},
2021-12-08 10:23:00 +01:00
{
"name": "is_slow_mode_enabled",
"type": "Bool",
"description": "True, if the slow mode is enabled in the supergroup"
},
{
"name": "is_channel",
"type": "Bool",
"description": "True, if the supergroup is a channel"
},
{
"name": "is_broadcast_group",
"type": "Bool",
2022-04-18 22:45:01 +02:00
"description": "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"
2021-12-08 10:23:00 +01:00
},
2023-06-04 22:58:07 +02:00
{
"name": "is_forum",
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "True, if the supergroup is a forum with topics"
2023-06-04 22:58:07 +02:00
},
2021-12-08 10:23:00 +01:00
{
"name": "is_verified",
"type": "Bool",
"description": "True, if the supergroup or channel is verified"
},
{
"name": "restriction_reason",
"type": "string",
"description": "If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted"
},
{
"name": "is_scam",
"type": "Bool",
"description": "True, if many users reported this supergroup or channel as a scam"
},
{
"name": "is_fake",
"type": "Bool",
"description": "True, if many users reported this supergroup or channel as a fake account"
2024-10-06 19:09:53 +02:00
},
{
"name": "has_active_stories",
"type": "Bool",
"description": "True, if the supergroup or channel has non-expired stories available to the current user"
},
{
"name": "has_unread_active_stories",
"type": "Bool",
"description": "True, if the supergroup or channel has unread non-expired stories available to the current user"
2021-12-08 10:23:00 +01:00
}
]
},
{
"name": "supergroupFullInfo",
"description": "Contains full information about a supergroup or channel",
"class": "SupergroupFullInfo",
2021-10-22 16:24:12 +02:00
"properties": [
{
"name": "photo",
"type": "chatPhoto",
2023-06-04 22:58:07 +02:00
"description": "Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo"
2021-10-22 16:24:12 +02:00
},
{
"name": "description",
"type": "string",
"description": "Supergroup or channel description"
},
{
"name": "member_count",
"type": "int32",
"description": "Number of members in the supergroup or channel; 0 if unknown"
},
{
"name": "administrator_count",
"type": "int32",
"description": "Number of privileged users in the supergroup or channel; 0 if unknown"
},
{
"name": "restricted_count",
"type": "int32",
"description": "Number of restricted users in the supergroup; 0 if unknown"
},
{
"name": "banned_count",
"type": "int32",
"description": "Number of users banned from chat; 0 if unknown"
},
{
"name": "linked_chat_id",
"type": "int53",
"description": "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"
},
{
"name": "slow_mode_delay",
"type": "int32",
"description": "Delay between consecutive sent messages for non-administrator supergroup members, in seconds"
},
{
"name": "slow_mode_delay_expires_in",
"type": "double",
"description": "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"
},
{
"name": "can_get_members",
"type": "Bool",
2023-06-04 22:58:07 +02:00
"description": "True, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers"
},
{
"name": "has_hidden_members",
"type": "Bool",
"description": "True, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers"
},
{
"name": "can_hide_members",
"type": "Bool",
"description": "True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators"
2021-10-22 16:24:12 +02:00
},
{
"name": "can_set_sticker_set",
"type": "Bool",
"description": "True, if the supergroup sticker set can be changed"
},
{
"name": "can_set_location",
"type": "Bool",
"description": "True, if the supergroup location can be changed"
},
{
"name": "can_get_statistics",
"type": "Bool",
"description": "True, if the supergroup or channel statistics are available"
},
2023-06-04 22:58:07 +02:00
{
"name": "can_toggle_aggressive_anti_spam",
"type": "Bool",
"description": "True, if aggressive anti-spam checks can be enabled or disabled in the supergroup"
},
2021-10-22 16:24:12 +02:00
{
"name": "is_all_history_available",
"type": "Bool",
2023-06-04 22:58:07 +02:00
"description": "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"
},
{
"name": "has_aggressive_anti_spam_enabled",
"type": "Bool",
"description": "True, if aggressive anti-spam checks are enabled in the supergroup. The value of this field is only available to chat administrators"
2021-10-22 16:24:12 +02:00
},
2024-10-06 19:09:53 +02:00
{
"name": "has_pinned_stories",
"type": "Bool",
"description": "True, if the supergroup or channel has pinned stories"
},
{
"name": "my_boost_count",
"type": "int32",
"description": "Number of times the current user boosted the supergroup or channel"
},
{
"name": "unrestrict_boost_count",
"type": "int32",
"description": "Number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; 0 if unspecified"
},
2021-10-22 16:24:12 +02:00
{
"name": "sticker_set_id",
"type": "int64",
2024-10-06 19:09:53 +02:00
"description": "Identifier of the supergroup sticker set that must be shown before user sticker sets; 0 if none"
},
{
"name": "custom_emoji_sticker_set_id",
"type": "int64",
"description": "Identifier of the custom emoji sticker set that can be used in the supergroup without Telegram Premium subscription; 0 if none"
2021-10-22 16:24:12 +02:00
},
{
"name": "location",
"type": "chatLocation",
2024-10-06 19:09:53 +02:00
"description": "Location to which the supergroup is connected; may be null if none"
2021-10-22 16:24:12 +02:00
},
{
"name": "invite_link",
2021-12-08 10:23:00 +01:00
"type": "chatInviteLink",
2023-06-04 22:58:07 +02:00
"description": "Primary invite link for the chat; may be null. For chat administrators with can_invite_users right only"
2021-12-08 10:23:00 +01:00
},
{
"name": "bot_commands",
"type": "vector\u003cbotCommands\u003e",
"description": "List of commands of bots in the group"
2021-10-22 16:24:12 +02:00
},
{
"name": "upgraded_from_basic_group_id",
2021-12-08 10:23:00 +01:00
"type": "int53",
2021-10-22 16:24:12 +02:00
"description": "Identifier of the basic group from which supergroup was upgraded; 0 if none"
},
{
"name": "upgraded_from_max_message_id",
"type": "int53",
"description": "Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none"
}
]
},
{
"name": "secretChatStatePending",
"description": "The secret chat is not yet created; waiting for the other user to get online",
"class": "SecretChatState",
"properties": []
},
{
"name": "secretChatStateReady",
"description": "The secret chat is ready to use",
"class": "SecretChatState",
"properties": []
},
{
"name": "secretChatStateClosed",
"description": "The secret chat is closed",
"class": "SecretChatState",
"properties": []
},
{
"name": "secretChat",
"description": "Represents a secret chat",
"class": "SecretChat",
"properties": [
{
"name": "id",
"type": "int32",
"description": "Secret chat identifier"
},
{
"name": "user_id",
2021-12-08 10:23:00 +01:00
"type": "int53",
2021-10-22 16:24:12 +02:00
"description": "Identifier of the chat partner"
},
{
"name": "state",
"type": "SecretChatState",
"description": "State of the secret chat"
},
{
"name": "is_outbound",
"type": "Bool",
2024-10-06 19:09:53 +02:00
"description": "True, if the chat was created by the current user; false otherwise"
2021-10-22 16:24:12 +02:00
},
{
"name": "key_hash",
"type": "bytes",
"description": "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"
},
{
"name": "layer",
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "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 \u003e= 101, files bigger than 2000MB are supported if the layer \u003e= 143, spoiler and custom emoji text entities are supported if the layer \u003e= 144"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "messageSenderUser",
"description": "The message was sent by a known user",
"class": "MessageSender",
"properties": [
{
"name": "user_id",
2021-12-08 10:23:00 +01:00
"type": "int53",
2021-10-22 16:24:12 +02:00
"description": "Identifier of the user that sent the message"
}
]
},
{
"name": "messageSenderChat",
"description": "The message was sent on behalf of a chat",
"class": "MessageSender",
"properties": [
{
"name": "chat_id",
"type": "int53",
"description": "Identifier of the chat that sent the message"
}
]
},
{
"name": "messageSenders",
"description": "Represents a list of message senders",
"class": "MessageSenders",
"properties": [
{
"name": "total_count",
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "Approximate total number of messages senders found"
2021-10-22 16:24:12 +02:00
},
{
"name": "senders",
"type": "vector\u003cMessageSender\u003e",
"description": "List of message senders"
}
]
},
2023-06-04 22:58:07 +02:00
{
"name": "chatMessageSender",
"description": "Represents a message sender, which can be used to send messages in a chat",
"class": "ChatMessageSender",
"properties": [
{
"name": "sender",
"type": "MessageSender",
2024-10-06 19:09:53 +02:00
"description": "The message sender"
2023-06-04 22:58:07 +02:00
},
{
"name": "needs_premium",
"type": "Bool",
"description": "True, if Telegram Premium is needed to use the message sender"
}
]
},
{
"name": "chatMessageSenders",
"description": "Represents a list of message senders, which can be used to send messages in a chat",
"class": "ChatMessageSenders",
"properties": [
{
"name": "senders",
"type": "vector\u003cchatMessageSender\u003e",
"description": "List of available message senders"
}
]
},
2021-10-22 16:24:12 +02:00
{
2024-10-06 19:09:53 +02:00
"name": "messageReadDateRead",
"description": "Contains read date of the message",
"class": "MessageReadDate",
2021-10-22 16:24:12 +02:00
"properties": [
{
2024-10-06 19:09:53 +02:00
"name": "read_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the message was read by the other user"
2021-10-22 16:24:12 +02:00
}
]
},
{
2024-10-06 19:09:53 +02:00
"name": "messageReadDateUnread",
"description": "The message is unread yet",
"class": "MessageReadDate",
"properties": []
},
{
"name": "messageReadDateTooOld",
"description": "The message is too old to get read date",
"class": "MessageReadDate",
"properties": []
},
{
"name": "messageReadDateUserPrivacyRestricted",
"description": "The read date is unknown due to privacy settings of the other user",
"class": "MessageReadDate",
"properties": []
},
{
"name": "messageReadDateMyPrivacyRestricted",
"description": "The read date is unknown due to privacy settings of the current user, but will be known if the user subscribes to Telegram Premium",
"class": "MessageReadDate",
"properties": []
},
{
"name": "messageViewer",
"description": "Represents a viewer of a message",
"class": "MessageViewer",
2021-10-22 16:24:12 +02:00
"properties": [
{
2024-10-06 19:09:53 +02:00
"name": "user_id",
2021-10-22 16:24:12 +02:00
"type": "int53",
2024-10-06 19:09:53 +02:00
"description": "User identifier of the viewer"
2021-10-22 16:24:12 +02:00
},
{
2024-10-06 19:09:53 +02:00
"name": "view_date",
"type": "int32",
"description": "Approximate point in time (Unix timestamp) when the message was viewed"
}
]
},
{
"name": "messageViewers",
"description": "Represents a list of message viewers",
"class": "MessageViewers",
"properties": [
{
"name": "viewers",
"type": "vector\u003cmessageViewer\u003e",
"description": "List of message viewers"
}
]
},
{
"name": "messageOriginUser",
"description": "The message was originally sent by a known user",
"class": "MessageOrigin",
"properties": [
{
"name": "sender_user_id",
"type": "int53",
"description": "Identifier of the user that originally sent the message"
2021-10-22 16:24:12 +02:00
}
]
},
{
2024-10-06 19:09:53 +02:00
"name": "messageOriginHiddenUser",
2021-10-22 16:24:12 +02:00
"description": "The message was originally sent by a user, which is hidden by their privacy settings",
2024-10-06 19:09:53 +02:00
"class": "MessageOrigin",
2021-10-22 16:24:12 +02:00
"properties": [
{
"name": "sender_name",
"type": "string",
"description": "Name of the sender"
}
]
},
{
2024-10-06 19:09:53 +02:00
"name": "messageOriginChat",
"description": "The message was originally sent on behalf of a chat",
"class": "MessageOrigin",
"properties": [
{
"name": "sender_chat_id",
"type": "int53",
"description": "Identifier of the chat that originally sent the message"
},
{
"name": "author_signature",
"type": "string",
"description": "For messages originally sent by an anonymous chat administrator, original message author signature"
}
]
},
{
"name": "messageOriginChannel",
2021-10-22 16:24:12 +02:00
"description": "The message was originally a post in a channel",
2024-10-06 19:09:53 +02:00
"class": "MessageOrigin",
2021-10-22 16:24:12 +02:00
"properties": [
{
"name": "chat_id",
"type": "int53",
2024-10-06 19:09:53 +02:00
"description": "Identifier of the channel chat to which the message was originally sent"
2021-10-22 16:24:12 +02:00
},
{
"name": "message_id",
"type": "int53",
"description": "Message identifier of the original message"
},
{
"name": "author_signature",
"type": "string",
"description": "Original post author signature"
}
]
},
2021-12-08 10:23:00 +01:00
{
2024-10-06 19:09:53 +02:00
"name": "forwardSource",
"description": "Contains information about the last message from which a new message was forwarded last time",
"class": "ForwardSource",
2021-12-08 10:23:00 +01:00
"properties": [
2024-10-06 19:09:53 +02:00
{
"name": "chat_id",
"type": "int53",
"description": "Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown"
},
{
"name": "message_id",
"type": "int53",
"description": "Identifier of the message; may be 0 if unknown"
},
{
"name": "sender_id",
"type": "MessageSender",
"description": "Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages"
},
2021-12-08 10:23:00 +01:00
{
"name": "sender_name",
"type": "string",
2024-10-06 19:09:53 +02:00
"description": "Name of the sender of the message if the sender is hidden by their privacy settings"
},
{
"name": "date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the message is sent; 0 if unknown"
},
{
"name": "is_outgoing",
"type": "Bool",
"description": "True, if the message that was forwarded is outgoing; always false if sender is unknown"
2021-12-08 10:23:00 +01:00
}
]
},
2023-06-04 22:58:07 +02:00
{
"name": "reactionTypeEmoji",
"description": "A reaction with an emoji",
"class": "ReactionType",
"properties": [
{
"name": "emoji",
"type": "string",
"description": "Text representation of the reaction"
}
]
},
{
"name": "reactionTypeCustomEmoji",
"description": "A reaction with a custom emoji",
"class": "ReactionType",
"properties": [
{
"name": "custom_emoji_id",
"type": "int64",
"description": "Unique identifier of the custom emoji"
}
]
},
2021-10-22 16:24:12 +02:00
{
"name": "messageForwardInfo",
"description": "Contains information about a forwarded message",
"class": "MessageForwardInfo",
"properties": [
{
"name": "origin",
2024-10-06 19:09:53 +02:00
"type": "MessageOrigin",
"description": "Origin of the forwarded message"
2021-10-22 16:24:12 +02:00
},
{
"name": "date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the message was originally sent"
},
2024-10-06 19:09:53 +02:00
{
"name": "source",
"type": "forwardSource",
"description": "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"
},
2021-10-22 16:24:12 +02:00
{
"name": "public_service_announcement_type",
"type": "string",
"description": "The type of a public service announcement for the forwarded message"
2024-10-06 19:09:53 +02:00
}
]
},
{
"name": "messageImportInfo",
"description": "Contains information about a message created with importMessages",
"class": "MessageImportInfo",
"properties": [
2021-10-22 16:24:12 +02:00
{
2024-10-06 19:09:53 +02:00
"name": "sender_name",
"type": "string",
"description": "Name of the original sender"
2021-10-22 16:24:12 +02:00
},
{
2024-10-06 19:09:53 +02:00
"name": "date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the message was originally sent"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "messageReplyInfo",
"description": "Contains information about replies to a message",
"class": "MessageReplyInfo",
"properties": [
{
"name": "reply_count",
"type": "int32",
"description": "Number of times the message was directly or indirectly replied"
},
{
2021-12-08 10:23:00 +01:00
"name": "recent_replier_ids",
2021-10-22 16:24:12 +02:00
"type": "vector\u003cMessageSender\u003e",
2022-04-18 22:45:01 +02:00
"description": "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"
2021-10-22 16:24:12 +02:00
},
{
"name": "last_read_inbox_message_id",
"type": "int53",
"description": "Identifier of the last read incoming reply to the message"
},
{
"name": "last_read_outbox_message_id",
"type": "int53",
"description": "Identifier of the last read outgoing reply to the message"
},
{
"name": "last_message_id",
"type": "int53",
"description": "Identifier of the last reply to the message"
}
]
},
2023-06-04 22:58:07 +02:00
{
"name": "messageReaction",
"description": "Contains information about a reaction to a message",
"class": "MessageReaction",
"properties": [
{
"name": "type",
"type": "ReactionType",
"description": "Type of the reaction"
},
{
"name": "total_count",
"type": "int32",
"description": "Number of times the reaction was added"
},
{
"name": "is_chosen",
"type": "Bool",
"description": "True, if the reaction is chosen by the current user"
},
2024-10-06 19:09:53 +02:00
{
"name": "used_sender_id",
"type": "MessageSender",
"description": "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"
},
2023-06-04 22:58:07 +02:00
{
"name": "recent_sender_ids",
"type": "vector\u003cMessageSender\u003e",
"description": "Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup chats"
}
]
},
2024-10-06 19:09:53 +02:00
{
"name": "messageReactions",
"description": "Contains a list of reactions added to a message",
"class": "MessageReactions",
"properties": [
{
"name": "reactions",
"type": "vector\u003cmessageReaction\u003e",
"description": "List of added reactions"
},
{
"name": "are_tags",
"type": "Bool",
"description": "True, if the reactions are tags and Telegram Premium users can filter messages by them"
}
]
},
2021-10-22 16:24:12 +02:00
{
"name": "messageInteractionInfo",
"description": "Contains information about interactions with a message",
"class": "MessageInteractionInfo",
"properties": [
{
"name": "view_count",
"type": "int32",
"description": "Number of times the message was viewed"
},
{
"name": "forward_count",
"type": "int32",
"description": "Number of times the message was forwarded"
},
{
"name": "reply_info",
"type": "messageReplyInfo",
2021-12-08 10:23:00 +01:00
"description": "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"
2023-06-04 22:58:07 +02:00
},
{
"name": "reactions",
2024-10-06 19:09:53 +02:00
"type": "messageReactions",
"description": "The list of reactions or tags added to the message; may be null"
2023-06-04 22:58:07 +02:00
}
]
},
{
"name": "unreadReaction",
"description": "Contains information about an unread reaction to a message",
"class": "UnreadReaction",
"properties": [
{
"name": "type",
"type": "ReactionType",
"description": "Type of the reaction"
},
{
"name": "sender_id",
"type": "MessageSender",
"description": "Identifier of the sender, added the reaction"
},
{
"name": "is_big",
"type": "Bool",
"description": "True, if the reaction was added with a big animation"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "messageSendingStatePending",
"description": "The message is being sent now, but has not yet been delivered to the server",
"class": "MessageSendingState",
2024-10-06 19:09:53 +02:00
"properties": [
{
"name": "sending_id",
"type": "int32",
"description": "Non-persistent message sending identifier, specified by the application"
}
]
2021-10-22 16:24:12 +02:00
},
{
"name": "messageSendingStateFailed",
"description": "The message failed to be sent",
"class": "MessageSendingState",
"properties": [
{
2024-10-06 19:09:53 +02:00
"name": "error",
"type": "error",
"description": "The cause of the message sending failure"
2021-10-22 16:24:12 +02:00
},
{
"name": "can_retry",
"type": "Bool",
"description": "True, if the message can be re-sent"
},
2021-12-08 10:23:00 +01:00
{
"name": "need_another_sender",
"type": "Bool",
"description": "True, if the message can be re-sent only on behalf of a different sender"
},
2024-10-06 19:09:53 +02:00
{
"name": "need_another_reply_quote",
"type": "Bool",
"description": "True, if the message can be re-sent only if another quote is chosen in the message that is replied by the given message"
},
{
"name": "need_drop_reply",
"type": "Bool",
"description": "True, if the message can be re-sent only if the message to be replied is removed. This will be done automatically by resendMessages"
},
2021-10-22 16:24:12 +02:00
{
"name": "retry_after",
"type": "double",
"description": "Time left before the message can be re-sent, in seconds. No update is sent when this field changes"
}
]
},
2024-10-06 19:09:53 +02:00
{
"name": "textQuote",
"description": "Describes manually or automatically chosen quote from another message",
"class": "TextQuote",
"properties": [
{
"name": "text",
"type": "formattedText",
"description": "Text of the quote. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities can be present in the text"
},
{
"name": "position",
"type": "int32",
"description": "Approximate quote position in the original message in UTF-16 code units as specified by the message sender"
},
{
"name": "is_manual",
"type": "Bool",
"description": "True, if the quote was manually chosen by the message sender"
}
]
},
{
"name": "inputTextQuote",
"description": "Describes manually chosen quote from another message",
"class": "InputTextQuote",
"properties": [
{
"name": "text",
"type": "formattedText",
"description": "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"
},
{
"name": "position",
"type": "int32",
"description": "Quote position in the original message in UTF-16 code units"
}
]
},
{
"name": "messageReplyToMessage",
"description": "Describes a message replied by a given message",
"class": "MessageReplyTo",
"properties": [
{
"name": "chat_id",
"type": "int53",
"description": "The identifier of the chat to which the message belongs; may be 0 if the replied message is in unknown chat"
},
{
"name": "message_id",
"type": "int53",
"description": "The identifier of the message; may be 0 if the replied message is in unknown chat"
},
{
"name": "quote",
"type": "textQuote",
"description": "Chosen quote from the replied message; may be null if none"
},
{
"name": "origin",
"type": "MessageOrigin",
"description": "Information about origin of the message if the message was from another chat or topic; may be null for messages from the same chat"
},
{
"name": "origin_send_date",
"type": "int32",
"description": "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"
},
{
"name": "content",
"type": "MessageContent",
"description": "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, messageInvoice, messageLocation, messagePhoto, messagePoll, messagePremiumGiveaway, messagePremiumGiveawayWinners, messageSticker, messageStory, messageText (for link preview), messageVenue, messageVideo, messageVideoNote, or messageVoiceNote"
}
]
},
{
"name": "messageReplyToStory",
"description": "Describes a story replied by a given message",
"class": "MessageReplyTo",
"properties": [
{
"name": "story_sender_chat_id",
"type": "int53",
"description": "The identifier of the sender of the story"
},
{
"name": "story_id",
"type": "int32",
"description": "The identifier of the story"
}
]
},
{
"name": "inputMessageReplyToMessage",
"description": "Describes a message to be replied",
"class": "InputMessageReplyTo",
"properties": [
{
"name": "chat_id",
"type": "int53",
"description": "The identifier of the chat to which the message to be replied belongs; pass 0 if the message to be replied is in the same chat. Must always be 0 for replies in secret chats. A message can be replied in another chat or topic only if message.can_be_replied_in_another_chat"
},
{
"name": "message_id",
"type": "int53",
"description": "The identifier of the message to be replied in the same or the specified chat"
},
{
"name": "quote",
"type": "inputTextQuote",
"description": "Quote from the message to be replied; pass null if none. Must always be null for replies in secret chats"
}
]
},
{
"name": "inputMessageReplyToStory",
"description": "Describes a story to be replied",
"class": "InputMessageReplyTo",
"properties": [
{
"name": "story_sender_chat_id",
"type": "int53",
"description": "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"
},
{
"name": "story_id",
"type": "int32",
"description": "The identifier of the story"
}
]
},
2021-10-22 16:24:12 +02:00
{
"name": "message",
"description": "Describes a message",
"class": "Message",
"properties": [
{
"name": "id",
"type": "int53",
"description": "Message identifier; unique for the chat to which the message belongs"
},
{
2021-12-08 10:23:00 +01:00
"name": "sender_id",
2021-10-22 16:24:12 +02:00
"type": "MessageSender",
2021-12-08 10:23:00 +01:00
"description": "Identifier of the sender of the message"
2021-10-22 16:24:12 +02:00
},
{
"name": "chat_id",
"type": "int53",
"description": "Chat identifier"
},
{
"name": "sending_state",
"type": "MessageSendingState",
2024-10-06 19:09:53 +02:00
"description": "The sending state of the message; may be null if the message isn't being sent and didn't fail to be sent"
2021-10-22 16:24:12 +02:00
},
{
"name": "scheduling_state",
"type": "MessageSchedulingState",
2024-10-06 19:09:53 +02:00
"description": "The scheduling state of the message; may be null if the message isn't scheduled"
2021-10-22 16:24:12 +02:00
},
{
"name": "is_outgoing",
"type": "Bool",
"description": "True, if the message is outgoing"
},
{
"name": "is_pinned",
"type": "Bool",
"description": "True, if the message is pinned"
},
2024-10-06 19:09:53 +02:00
{
"name": "is_from_offline",
"type": "Bool",
"description": "True, if the message was sent because of a scheduled action by the message sender, for example, as away, or greeting service message"
},
2021-10-22 16:24:12 +02:00
{
"name": "can_be_edited",
"type": "Bool",
"description": "True, if the message can be edited. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message by the application"
},
{
"name": "can_be_forwarded",
"type": "Bool",
"description": "True, if the message can be forwarded"
},
2024-10-06 19:09:53 +02:00
{
"name": "can_be_replied_in_another_chat",
"type": "Bool",
"description": "True, if the message can be replied in another chat or topic"
},
2021-12-08 10:23:00 +01:00
{
"name": "can_be_saved",
"type": "Bool",
"description": "True, if content of the message can be saved locally or copied"
},
2021-10-22 16:24:12 +02:00
{
"name": "can_be_deleted_only_for_self",
"type": "Bool",
"description": "True, if the message can be deleted only for the current user while other users will continue to see it"
},
{
"name": "can_be_deleted_for_all_users",
"type": "Bool",
"description": "True, if the message can be deleted for all users"
},
2023-06-04 22:58:07 +02:00
{
"name": "can_get_added_reactions",
"type": "Bool",
"description": "True, if the list of added reactions is available through getMessageAddedReactions"
},
2021-10-22 16:24:12 +02:00
{
"name": "can_get_statistics",
"type": "Bool",
2023-06-04 22:58:07 +02:00
"description": "True, if the message statistics are available through getMessageStatistics"
2021-10-22 16:24:12 +02:00
},
{
"name": "can_get_message_thread",
"type": "Bool",
2023-06-04 22:58:07 +02:00
"description": "True, if information about the message thread is available through getMessageThread and getMessageThreadHistory"
2021-10-22 16:24:12 +02:00
},
2024-10-06 19:09:53 +02:00
{
"name": "can_get_read_date",
"type": "Bool",
"description": "True, if read date of the message can be received through getMessageReadDate"
},
2021-12-08 10:23:00 +01:00
{
"name": "can_get_viewers",
"type": "Bool",
"description": "True, if chat members already viewed the message can be received through getMessageViewers"
},
{
"name": "can_get_media_timestamp_links",
"type": "Bool",
2023-06-04 22:58:07 +02:00
"description": "True, if media timestamp links can be generated for media timestamp entities in the message text, caption or web page description through getMessageLink"
},
{
"name": "can_report_reactions",
"type": "Bool",
"description": "True, if reactions on the message can be reported through reportMessageReactions"
2021-12-08 10:23:00 +01:00
},
{
"name": "has_timestamped_media",
"type": "Bool",
"description": "True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message"
},
2021-10-22 16:24:12 +02:00
{
"name": "is_channel_post",
"type": "Bool",
"description": "True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts"
},
2023-06-04 22:58:07 +02:00
{
"name": "is_topic_message",
"type": "Bool",
"description": "True, if the message is a forum topic message"
},
2021-10-22 16:24:12 +02:00
{
"name": "contains_unread_mention",
"type": "Bool",
"description": "True, if the message contains an unread mention for the current user"
},
{
"name": "date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the message was sent"
},
{
"name": "edit_date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the message was last edited"
},
{
"name": "forward_info",
"type": "messageForwardInfo",
2024-10-06 19:09:53 +02:00
"description": "Information about the initial message sender; may be null if none or unknown"
},
{
"name": "import_info",
"type": "messageImportInfo",
"description": "Information about the initial message for messages created with importMessages; may be null if the message isn't imported"
2021-10-22 16:24:12 +02:00
},
{
"name": "interaction_info",
"type": "messageInteractionInfo",
2024-10-06 19:09:53 +02:00
"description": "Information about interactions with the message; may be null if none"
2021-10-22 16:24:12 +02:00
},
2023-06-04 22:58:07 +02:00
{
"name": "unread_reactions",
"type": "vector\u003cunreadReaction\u003e",
"description": "Information about unread reactions added to the message"
},
2021-10-22 16:24:12 +02:00
{
2024-10-06 19:09:53 +02:00
"name": "reply_to",
"type": "MessageReplyTo",
"description": "Information about the message or the story this message is replying to; may be null if none"
2021-10-22 16:24:12 +02:00
},
{
2024-10-06 19:09:53 +02:00
"name": "message_thread_id",
2021-10-22 16:24:12 +02:00
"type": "int53",
2024-10-06 19:09:53 +02:00
"description": "If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs"
2021-10-22 16:24:12 +02:00
},
{
2024-10-06 19:09:53 +02:00
"name": "saved_messages_topic_id",
2021-10-22 16:24:12 +02:00
"type": "int53",
2024-10-06 19:09:53 +02:00
"description": "Identifier of the Saved Messages topic for the message; 0 for messages not from Saved Messages"
2021-10-22 16:24:12 +02:00
},
{
2024-10-06 19:09:53 +02:00
"name": "self_destruct_type",
"type": "MessageSelfDestructType",
"description": "The message's self-destruct type; may be null if none"
2023-06-04 22:58:07 +02:00
},
{
"name": "self_destruct_in",
"type": "double",
2024-10-06 19:09:53 +02:00
"description": "Time left before the message self-destruct timer expires, in seconds; 0 if self-destruction isn't scheduled yet"
2021-10-22 16:24:12 +02:00
},
{
2023-06-04 22:58:07 +02:00
"name": "auto_delete_in",
2021-10-22 16:24:12 +02:00
"type": "double",
2024-10-06 19:09:53 +02:00
"description": "Time left before the message will be automatically deleted by message_auto_delete_time setting of the chat, in seconds; 0 if never"
2021-10-22 16:24:12 +02:00
},
{
"name": "via_bot_user_id",
2021-12-08 10:23:00 +01:00
"type": "int53",
2024-10-06 19:09:53 +02:00
"description": "If non-zero, the user identifier of the inline bot through which this message was sent"
},
{
"name": "sender_business_bot_user_id",
"type": "int53",
"description": "If non-zero, the user identifier of the business bot that sent this message"
},
{
"name": "sender_boost_count",
"type": "int32",
"description": "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"
2021-10-22 16:24:12 +02:00
},
{
"name": "author_signature",
"type": "string",
"description": "For channel posts and anonymous group messages, optional author signature"
},
{
"name": "media_album_id",
"type": "int64",
2021-12-08 10:23:00 +01:00
"description": "Unique identifier of an album this message belongs to. Only audios, documents, photos and videos can be grouped together in albums"
2021-10-22 16:24:12 +02:00
},
{
"name": "restriction_reason",
"type": "string",
"description": "If non-empty, contains a human-readable description of the reason why access to this message must be restricted"
},
{
"name": "content",
"type": "MessageContent",
"description": "Content of the message"
},
{
"name": "reply_markup",
"type": "ReplyMarkup",
2024-10-06 19:09:53 +02:00
"description": "Reply markup for the message; may be null if none"
2021-10-22 16:24:12 +02:00
}
]
},
{
"name": "messages",
"description": "Contains a list of messages",
"class": "Messages",
"properties": [
{
"name": "total_count",
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "Approximate total number of messages found"
2021-10-22 16:24:12 +02:00
},
{
"name": "messages",
"type": "vector\u003cmessage\u003e",
"description": "List of messages; messages may be null"
}
]
},
{
"name": "foundMessages",
"description": "Contains a list of messages found by a search",
"class": "FoundMessages",
"properties": [
{
"name": "total_count",
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "Approximate total number of messages found; -1 if unknown"
2021-10-22 16:24:12 +02:00
},
{
"name": "messages",
"type": "vector\u003cmessage\u003e",
"description": "List of messages"
},
{
"name": "next_offset",
"type": "string",
2024-10-06 19:09:53 +02:00
"description": "The offset for the next request. If empty, then there are no more results"
2021-10-22 16:24:12 +02:00
}
]
},
2023-06-04 22:58:07 +02:00
{
"name": "foundChatMessages",
"description": "Contains a list of messages found by a search in a given chat",
"class": "FoundChatMessages",
"properties": [
{
"name": "total_count",
"type": "int32",
"description": "Approximate total number of messages found; -1 if unknown"
},
{
"name": "messages",
"type": "vector\u003cmessage\u003e",
"description": "List of messages"
},
{
"name": "next_from_message_id",
"type": "int53",
"description": "The offset for the next request. If 0, there are no more results"
}
]
},
2021-10-22 16:24:12 +02:00
{
2021-12-08 10:23:00 +01:00
"name": "messagePosition",
"description": "Contains information about a message in a specific position",
"class": "MessagePosition",
2021-10-22 16:24:12 +02:00
"properties": [
{
2021-12-08 10:23:00 +01:00
"name": "position",
"type": "int32",
"description": "0-based message position in the full list of suitable messages"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "message_id",
"type": "int53",
"description": "Message identifier"
2021-10-22 16:24:12 +02:00
},
{
2021-12-08 10:23:00 +01:00
"name": "date",
"type": "int32",
"description": "Point in time (Unix timestamp) when the message was sent"
}
]
},
{
"name": "messagePositions",
"description": "Contains a list of message positions",
"class": "MessagePositions",
"properties": [
{
"name": "total_count",
"type": "int32",
2023-06-04 22:58:07 +02:00
"description": "Total number of messages found"
2021-12-08 10:23:00 +01:00
},
{
"name": "positions",
"type": "vector\u003cmessagePosition\u003e",
"description": "List of message positions"
}
]
},
{
"name": "messageCalendarDay",
2022-04-18 22:45:01 +02:00
"description": "Contains information about found messages sent on a specific day",
2021-12-08 10:23:00 +01:00
"class": "MessageCalendarDay",
"properties": [
{
"name": "total_count",
"type": "int32",
2022-04-18 22:45:01 +02:00
"description": "Total number of found messages sent on the day"
2021-12-08 10:23:00 +01:00
},
{
"name": "message",
"type": "message",
2022-04-18 22:45:01 +02:00
"description": "First message sent on the day"
2021-12-08 10:23:00 +01:00
}
]
},
{
"name": "messageCalendar",
2022-04-18 22:45:01 +02:00
"description": "Contains information about found messages, split by days according to the option \"utc_time_offset\"",
2021-12-08 10:23:00 +01:00
"class": "MessageCalendar",
"properties": [
{
"name": "total_count",
"type": "int32",
"description": "Total number of found messages"
},
{
"name": "days",
"type": "vector\u003cmessageCalendarDay\u003e",
"description": "Information about messages sent"
}
]
},
2024-10-06 19:09:53 +02:00
{
"name": "businessMessage",
"description": "Describes a message from a business account as received by a bot",
"class": "BusinessMessage",
"properties": [
{
"name": "message",
"type": "message",
"description": "The message"
},
{
"name": "reply_to_message",
"type": "message",
"description": "Message that is replied by the message in the same chat; may be null if none"
}
]
},
{
"name": "businessMessages",
"description": "Contains a list of messages from a business account as received by a bot",
"class": "BusinessMessages",
"properties": [
{
"name": "messages",
"type": "vector\u003cbusinessMessage\u003e",
"description": "List of business messages"
}
]
},
{
"name": "messageSourceChatHistory",
"description": "The message is from a chat history",
"class": "MessageSource",
"properties": []
},
{
"name": "messageSourceMessageThreadHistory",
"description": "The message is from a message thread history",
"class": "MessageSource",
"properties": []
},
{
"name": "messageSourceForumTopicHistory",
"description": "The message is from a forum topic history",
"class": "MessageSource",
"properties": []
},
{
"name": "messageSourceHistoryPreview",
"description": "The message is from chat, message thread or forum topic history preview",
"class": "MessageSource",
"properties": []
},
{
"name": "messageSourceChatList",
"description": "The message is from a chat list or a forum topic list",
"class": "MessageSource",
"properties": []
},
{
"name": "messageSourceSearch",
"description": "The message is from search results, including file downloads, local file list, outgoing document messages, calendar",
"class": "MessageSource",
"properties": []
},
{
"name": "messageSourceChatEventLog",
"description": "The message is from a chat event log",
"class": "MessageSource",
"properties": []
},
{
"name": "messageSourceNotification",
"description": "The message is from a notification",
"class": "MessageSource",
"properties": []
},
{