/** Optional. IETF language tag of the user's language */
/** Optional. IETF language tag of the user's language */
language_code?: string
language_code?: string
/** Optional. True, if this user is a Telegram Premium user */
/** Optional. True, if this user is a Potato Premium user */
is_premium?: boolean
is_premium?: boolean
/** Optional. True, if this user added the bot to the attachment menu */
/** Optional. True, if this user added the bot to the attachment menu */
added_to_attachment_menu?: boolean
added_to_attachment_menu?: boolean
@ -236,7 +236,7 @@ export interface Message {
migrate_from_chat_id?: Integer
migrate_from_chat_id?: Integer
/** Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply. */
/** Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply. */
pinned_message?: Message
pinned_message?: Message
/** Optional. The domain name of the website on which the user has logged in. More about Telegram Login » */
/** Optional. The domain name of the website on which the user has logged in. More about Potato Login » */
connected_website?: string
connected_website?: string
/** Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location. */
/** Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location. */
/** Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. */
/** Optional. Contact's user identifier in Potato. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. */
user_id?: Integer
user_id?: Integer
/** Optional. Additional data about the contact in the form of a vCard */
/** Optional. Additional data about the contact in the form of a vCard */
/** Optional. HTTP or tg:// url to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their ID without using a username, if this is allowed by their privacy settings. */
/** Optional. HTTP or tg:// url to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their ID without using a username, if this is allowed by their privacy settings. */
url?: string
url?: string
/** Optional. An HTTP URL used to automatically authorize the user. Can be used as a replacement for the Telegram Login Widget. */
/** Optional. An HTTP URL used to automatically authorize the user. Can be used as a replacement for the Potato Login Widget. */
login_url?: LoginUrl
login_url?: LoginUrl
/** Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes */
/** Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes */
*Uponreceivingamessagewiththisobject,Telegramclientswilldisplayareplyinterfacetotheuser(actasiftheuserhasselectedthebot's message and tapped 'Reply').Thiscanbeextremelyusefulifyouwanttocreateuser-friendlystep-by-stepinterfaceswithouthavingtosacrificeprivacymode.
*Uponreceivingamessagewiththisobject,Potatoclientswilldisplayareplyinterfacetotheuser(actasiftheuserhasselectedthebot's message and tapped 'Reply').Thiscanbeextremelyusefulifyouwanttocreateuser-friendlystep-by-stepinterfaceswithouthavingtosacrificeprivacymode.
*@seehttps://potato.im/api#forcereply
*@seehttps://potato.im/api#forcereply
*/
*/
exportinterfaceForceReply{
exportinterfaceForceReply{
@ -1428,7 +1428,7 @@ export type InputMedia =
exportinterfaceInputMediaPhoto{
exportinterfaceInputMediaPhoto{
/** Type of the result, must be photo */
/** Type of the result, must be photo */
type?:string
type?:string
/** File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files » */
/** File to send. Pass a file_id to send a file that exists on the Potato servers (recommended), pass an HTTP URL for Potato to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files » */
media?: string
media?: string
/** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */
/** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */
/** File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files » */
/** File to send. Pass a file_id to send a file that exists on the Potato servers (recommended), pass an HTTP URL for Potato to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files » */
media?: string
media?: string
/** Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » */
/** Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » */
/** File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files » */
/** File to send. Pass a file_id to send a file that exists on the Potato servers (recommended), pass an HTTP URL for Potato to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files » */
media?: string
media?: string
/** Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » */
/** Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » */
/** File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files » */
/** File to send. Pass a file_id to send a file that exists on the Potato servers (recommended), pass an HTTP URL for Potato to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files » */
media?: string
media?: string
/** Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » */
/** Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » */
/** File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files » */
/** File to send. Pass a file_id to send a file that exists on the Potato servers (recommended), pass an HTTP URL for Potato to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files » */
media?: string
media?: string
/** Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » */
/** Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
message_thread_id?: number
message_thread_id?: number
/** Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. More info on Sending Files » */
/** Photo to send. Pass a file_id as String to send a photo that exists on the Potato servers (recommended), pass an HTTP URL as a String for Potato to get a photo from the Internet, or upload a new photo using multipart/form-data. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. More info on Sending Files » */
photo?: InputFile|string
photo?: InputFile|string
/** Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing */
/** Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
message_thread_id?: number
message_thread_id?: number
/** Audio file to send. Pass a file_id as String to send an audio file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files » */
/** Audio file to send. Pass a file_id as String to send an audio file that exists on the Potato servers (recommended), pass an HTTP URL as a String for Potato to get an audio file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files » */
audio?: InputFile|string
audio?: InputFile|string
/** Audio caption, 0-1024 characters after entities parsing */
/** Audio caption, 0-1024 characters after entities parsing */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
message_thread_id?: number
message_thread_id?: number
/** File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files » */
/** File to send. Pass a file_id as String to send a file that exists on the Potato servers (recommended), pass an HTTP URL as a String for Potato to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files » */
document?:InputFile|string
document?:InputFile|string
/** Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » */
/** Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
message_thread_id?: number
message_thread_id?: number
/** Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data. More info on Sending Files » */
/** Video to send. Pass a file_id as String to send a video that exists on the Potato servers (recommended), pass an HTTP URL as a String for Potato to get a video from the Internet, or upload a new video using multipart/form-data. More info on Sending Files » */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
message_thread_id?: number
message_thread_id?: number
/** Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. More info on Sending Files » */
/** Animation to send. Pass a file_id as String to send an animation that exists on the Potato servers (recommended), pass an HTTP URL as a String for Potato to get an animation from the Internet, or upload a new animation using multipart/form-data. More info on Sending Files » */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
message_thread_id?: number
message_thread_id?: number
/** Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files » */
/** Audio file to send. Pass a file_id as String to send a file that exists on the Potato servers (recommended), pass an HTTP URL as a String for Potato to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files » */
voice?: InputFile|string
voice?: InputFile|string
/** Voice message caption, 0-1024 characters after entities parsing */
/** Voice message caption, 0-1024 characters after entities parsing */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
message_thread_id?: number
message_thread_id?: number
/** Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. More info on Sending Files ». Sending video notes by a URL is currently unsupported */
/** Video note to send. Pass a file_id as String to send a video note that exists on the Potato servers (recommended) or upload a new video using multipart/form-data. More info on Sending Files ». Sending video notes by a URL is currently unsupported */
/** The maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0. */
/** The maximum amount of time in seconds that the result of the callback query may be cached client-side. Potato apps will support caching starting in version 3.14. Defaults to 0. */
/** Element type. One of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration", "phone_number", "email". */
/** Element type. One of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration", "phone_number", "email". */
type?:string
type?:string
/** Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for "personal_details", "passport", "driver_license", "identity_card", "internal_passport" and "address" types. Can be decrypted and verified using the accompanying EncryptedCredentials. */
/** Optional. Base64-encoded encrypted Potato Passport element data provided by the user, available for "personal_details", "passport", "driver_license", "identity_card", "internal_passport" and "address" types. Can be decrypted and verified using the accompanying EncryptedCredentials. */
data?: string
data?: string
/** Optional. User's verified phone number, available only for "phone_number" type */
/** Optional. User's verified phone number, available only for "phone_number" type */
@ -104,7 +104,7 @@ export type PassportElementError =
exportinterfacePassportElementErrorDataField{
exportinterfacePassportElementErrorDataField{
/** Error source, must be data */
/** Error source, must be data */
source?: string
source?: string
/** The section of the user's Telegram Passport which has the error, one of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address" */
/** The section of the user's Potato Passport which has the error, one of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address" */
/** The section of the user's Telegram Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration" */
/** The section of the user's Potato Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration" */
/** The section of the user's Telegram Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration" */
/** The section of the user's Potato Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration" */
/** Type of element of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration" */
/** Type of element of the user's Potato Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration" */
/** Type of element of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration" */
/** Type of element of the user's Potato Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration" */
/** Required if ok is True. A JSON-serialized array of available shipping options. */
/** Required if ok is True. A JSON-serialized array of available shipping options. */
shipping_options?: ShippingOption[]
shipping_options?: ShippingOption[]
/** Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user. */
/** Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable'). Potato will display this message to the user. */
/** Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems. */
/** Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems. */
ok?: boolean
ok?: boolean
/** Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user. */
/** Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Potato will display this message to the user. */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
message_thread_id?: number
message_thread_id?: number
/** Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files » */
/** Sticker to send. Pass a file_id as String to send a file that exists on the Potato servers (recommended), pass an HTTP URL as a String for Potato to get a .WEBP file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files » */
sticker?: InputFile|string
sticker?: InputFile|string
/** Sends the message silently. Users will receive a notification with no sound. */
/** Sends the message silently. Users will receive a notification with no sound. */
/** PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files » */
/** PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Potato servers, pass an HTTP URL as a String for Potato to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files » */
png_sticker?: InputFile|string
png_sticker?: InputFile|string
/** TGS animation with the sticker, uploaded using multipart/form-data. See https://core.potato.org/stickers#animated-sticker-requirements for technical requirements */
/** TGS animation with the sticker, uploaded using multipart/form-data. See https://core.potato.org/stickers#animated-sticker-requirements for technical requirements */
/** PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files » */
/** PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Potato servers, pass an HTTP URL as a String for Potato to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files » */
png_sticker?: InputFile|string
png_sticker?: InputFile|string
/** TGS animation with the sticker, uploaded using multipart/form-data. See https://core.potato.org/stickers#animated-sticker-requirements for technical requirements */
/** TGS animation with the sticker, uploaded using multipart/form-data. See https://core.potato.org/stickers#animated-sticker-requirements for technical requirements */
/** A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.potato.org/stickers#animated-sticker-requirements for animated sticker technical requirements, or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.potato.org/stickers#video-sticker-requirements for video sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files ». Animated sticker set thumbnails can't be uploaded via HTTP URL. */
/** A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.potato.org/stickers#animated-sticker-requirements for animated sticker technical requirements, or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.potato.org/stickers#video-sticker-requirements for video sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Potato servers, pass an HTTP URL as a String for Potato to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files ». Animated sticker set thumbnails can't be uploaded via HTTP URL. */
/** A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request, 1-256 characters. Only characters A-Z, a-z, 0-9, _ and - are allowed. The header is useful to ensure that the request comes from a webhook set by you. */
/** A secret token to be sent in a header “X-Potato-Bot-Api-Secret-Token” in every webhook request, 1-256 characters. Only characters A-Z, a-z, 0-9, _ and - are allowed. The header is useful to ensure that the request comes from a webhook set by you. */
secret_token?: string
secret_token?: string
}
}
@ -66,7 +66,7 @@ export interface WebhookInfo {
last_error_date?: Integer
last_error_date?: Integer
/** Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook */
/** Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook */
last_error_message?: string
last_error_message?: string
/** Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters */
/** Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Potato datacenters */
last_synchronization_error_date?: number
last_synchronization_error_date?: number
/** Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery */
/** Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery */
*Ifyou'd like to make sure that the Webhook request comes from Telegram, we recommend using a secret path in the URL, e.g. https://www.example.com/<token>. Since nobody else knows your bot'stoken,youcanbeprettysureit'sus.
*Ifyou'd like to make sure that the Webhook request comes from Potato, we recommend using a secret path in the URL, e.g. https://www.example.com/<token>. Since nobody else knows your bot'stoken,youcanbeprettysureit'sus.