Skip to content

Instantly share code, notes, and snippets.

@btshft
Created June 30, 2020 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btshft/c4441f0e661250c29f9f015319880283 to your computer and use it in GitHub Desktop.
Save btshft/c4441f0e661250c29f9f015319880283 to your computer and use it in GitHub Desktop.
Zeus API
{
"openapi": "3.0.1",
"info": {
"title": "Zeus API",
"version": "1.0"
},
"paths": {
"/api/v{version}/webhook/alerts/{channel}": {
"post": {
"tags": [
"Alerts"
],
"parameters": [
{
"name": "channel",
"in": "path",
"required": true,
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "version",
"in": "path",
"description": "The requested API version",
"required": true,
"schema": {
"type": "string",
"default": "1.0"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AlertManagerWebhookUpdate"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/AlertManagerWebhookUpdate"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/AlertManagerWebhookUpdate"
}
}
}
},
"responses": {
"200": {
"description": "Success"
}
}
}
},
"/api/v{version}/bot/update": {
"post": {
"tags": [
"Bot"
],
"parameters": [
{
"name": "version",
"in": "path",
"description": "The requested API version",
"required": true,
"schema": {
"type": "string",
"default": "1.0"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Update"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/Update"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/Update"
}
}
}
},
"responses": {
"200": {
"description": "Success"
}
}
}
}
},
"components": {
"schemas": {
"AlertStatus": {
"enum": [
"Firing",
"Resolved"
],
"type": "string"
},
"Alert": {
"type": "object",
"properties": {
"status": {
"$ref": "#/components/schemas/AlertStatus"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": false
},
"nullable": true
},
"annotations": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": false
},
"nullable": true
},
"startsAt": {
"type": "string",
"format": "date-time",
"nullable": true
},
"endsAt": {
"type": "string",
"format": "date-time",
"nullable": true
},
"generatorUrl": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"AlertManagerWebhookUpdate": {
"type": "object",
"properties": {
"version": {
"type": "string",
"nullable": true
},
"groupKey": {
"type": "string",
"nullable": true
},
"status": {
"$ref": "#/components/schemas/AlertStatus"
},
"receiver": {
"type": "string",
"nullable": true
},
"groupLabels": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": false
},
"nullable": true
},
"commonLabels": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": false
},
"nullable": true
},
"commonAnnotations": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": false
},
"nullable": true
},
"externalURL": {
"type": "string",
"nullable": true
},
"alerts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Alert"
},
"nullable": true
}
},
"additionalProperties": false
},
"User": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"isBot": {
"type": "boolean"
},
"firstName": {
"type": "string",
"nullable": true
},
"lastName": {
"type": "string",
"nullable": true
},
"username": {
"type": "string",
"nullable": true
},
"languageCode": {
"type": "string",
"nullable": true
},
"canJoinGroups": {
"type": "boolean",
"nullable": true
},
"canReadAllGroupMessages": {
"type": "boolean",
"nullable": true
},
"supportsInlineQueries": {
"type": "boolean",
"nullable": true
}
},
"additionalProperties": false
},
"ChatType": {
"enum": [
"Private",
"Group",
"Channel",
"Supergroup"
],
"type": "string"
},
"ChatPhoto": {
"type": "object",
"properties": {
"bigFileId": {
"type": "string",
"nullable": true
},
"bigFileUniqueId": {
"type": "string",
"nullable": true
},
"smallFileId": {
"type": "string",
"nullable": true
},
"smallFileUniqueId": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"ChatPermissions": {
"type": "object",
"properties": {
"canSendMessages": {
"type": "boolean",
"nullable": true
},
"canSendMediaMessages": {
"type": "boolean",
"nullable": true
},
"canSendPolls": {
"type": "boolean",
"nullable": true
},
"canSendOtherMessages": {
"type": "boolean",
"nullable": true
},
"canAddWebPagePreviews": {
"type": "boolean",
"nullable": true
},
"canChangeInfo": {
"type": "boolean",
"nullable": true
},
"canInviteUsers": {
"type": "boolean",
"nullable": true
},
"canPinMessages": {
"type": "boolean",
"nullable": true
}
},
"additionalProperties": false
},
"Chat": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"type": {
"$ref": "#/components/schemas/ChatType"
},
"title": {
"type": "string",
"nullable": true
},
"username": {
"type": "string",
"nullable": true
},
"firstName": {
"type": "string",
"nullable": true
},
"lastName": {
"type": "string",
"nullable": true
},
"allMembersAreAdministrators": {
"type": "boolean",
"deprecated": true
},
"photo": {
"$ref": "#/components/schemas/ChatPhoto"
},
"description": {
"type": "string",
"nullable": true
},
"inviteLink": {
"type": "string",
"nullable": true
},
"pinnedMessage": {
"$ref": "#/components/schemas/Message"
},
"permissions": {
"$ref": "#/components/schemas/ChatPermissions"
},
"slowModeDelay": {
"type": "integer",
"format": "int32",
"nullable": true
},
"stickerSetName": {
"type": "string",
"nullable": true
},
"canSetStickerSet": {
"type": "boolean",
"nullable": true
}
},
"additionalProperties": false
},
"MessageEntityType": {
"enum": [
"Mention",
"Hashtag",
"BotCommand",
"Url",
"Email",
"Bold",
"Italic",
"Code",
"Pre",
"TextLink",
"TextMention",
"PhoneNumber",
"Cashtag",
"Unknown",
"Underline",
"Strikethrough"
],
"type": "string"
},
"MessageEntity": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/MessageEntityType"
},
"offset": {
"type": "integer",
"format": "int32"
},
"length": {
"type": "integer",
"format": "int32"
},
"url": {
"type": "string",
"nullable": true
},
"user": {
"$ref": "#/components/schemas/User"
},
"language": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"PhotoSize": {
"type": "object",
"properties": {
"width": {
"type": "integer",
"format": "int32"
},
"height": {
"type": "integer",
"format": "int32"
},
"fileId": {
"type": "string",
"nullable": true
},
"fileUniqueId": {
"type": "string",
"nullable": true
},
"fileSize": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"Audio": {
"type": "object",
"properties": {
"duration": {
"type": "integer",
"format": "int32"
},
"performer": {
"type": "string",
"nullable": true
},
"title": {
"type": "string",
"nullable": true
},
"mimeType": {
"type": "string",
"nullable": true
},
"thumb": {
"$ref": "#/components/schemas/PhotoSize"
},
"fileId": {
"type": "string",
"nullable": true
},
"fileUniqueId": {
"type": "string",
"nullable": true
},
"fileSize": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"Document": {
"type": "object",
"properties": {
"thumb": {
"$ref": "#/components/schemas/PhotoSize"
},
"fileName": {
"type": "string",
"nullable": true
},
"mimeType": {
"type": "string",
"nullable": true
},
"fileId": {
"type": "string",
"nullable": true
},
"fileUniqueId": {
"type": "string",
"nullable": true
},
"fileSize": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"Animation": {
"type": "object",
"properties": {
"fileId": {
"type": "string",
"nullable": true
},
"fileUniqueId": {
"type": "string",
"nullable": true
},
"width": {
"type": "integer",
"format": "int32"
},
"height": {
"type": "integer",
"format": "int32"
},
"duration": {
"type": "integer",
"format": "int32"
},
"thumb": {
"$ref": "#/components/schemas/PhotoSize"
},
"fileName": {
"type": "string",
"nullable": true
},
"mimeType": {
"type": "string",
"nullable": true
},
"fileSize": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"Game": {
"type": "object",
"properties": {
"title": {
"type": "string",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"photo": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PhotoSize"
},
"nullable": true
},
"text": {
"type": "string",
"nullable": true
},
"textEntities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MessageEntity"
},
"nullable": true
},
"animation": {
"$ref": "#/components/schemas/Animation"
}
},
"additionalProperties": false
},
"MaskPositionPoint": {
"enum": [
"Forehead",
"Eyes",
"Mouth",
"Chin"
],
"type": "string"
},
"MaskPosition": {
"type": "object",
"properties": {
"point": {
"$ref": "#/components/schemas/MaskPositionPoint"
},
"xShift": {
"type": "number",
"format": "float"
},
"yShift": {
"type": "number",
"format": "float"
},
"scale": {
"type": "number",
"format": "float"
}
},
"additionalProperties": false
},
"Sticker": {
"type": "object",
"properties": {
"width": {
"type": "integer",
"format": "int32"
},
"height": {
"type": "integer",
"format": "int32"
},
"isAnimated": {
"type": "boolean"
},
"thumb": {
"$ref": "#/components/schemas/PhotoSize"
},
"emoji": {
"type": "string",
"nullable": true
},
"setName": {
"type": "string",
"nullable": true
},
"maskPosition": {
"$ref": "#/components/schemas/MaskPosition"
},
"fileId": {
"type": "string",
"nullable": true
},
"fileUniqueId": {
"type": "string",
"nullable": true
},
"fileSize": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"Video": {
"type": "object",
"properties": {
"width": {
"type": "integer",
"format": "int32"
},
"height": {
"type": "integer",
"format": "int32"
},
"duration": {
"type": "integer",
"format": "int32"
},
"thumb": {
"$ref": "#/components/schemas/PhotoSize"
},
"mimeType": {
"type": "string",
"nullable": true
},
"fileId": {
"type": "string",
"nullable": true
},
"fileUniqueId": {
"type": "string",
"nullable": true
},
"fileSize": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"Voice": {
"type": "object",
"properties": {
"duration": {
"type": "integer",
"format": "int32"
},
"mimeType": {
"type": "string",
"nullable": true
},
"fileId": {
"type": "string",
"nullable": true
},
"fileUniqueId": {
"type": "string",
"nullable": true
},
"fileSize": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"VideoNote": {
"type": "object",
"properties": {
"length": {
"type": "integer",
"format": "int32"
},
"duration": {
"type": "integer",
"format": "int32"
},
"thumb": {
"$ref": "#/components/schemas/PhotoSize"
},
"fileId": {
"type": "string",
"nullable": true
},
"fileUniqueId": {
"type": "string",
"nullable": true
},
"fileSize": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"Contact": {
"type": "object",
"properties": {
"phoneNumber": {
"type": "string",
"nullable": true
},
"firstName": {
"type": "string",
"nullable": true
},
"lastName": {
"type": "string",
"nullable": true
},
"userId": {
"type": "integer",
"format": "int32"
},
"vcard": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"Location": {
"type": "object",
"properties": {
"longitude": {
"type": "number",
"format": "float"
},
"latitude": {
"type": "number",
"format": "float"
}
},
"additionalProperties": false
},
"Venue": {
"type": "object",
"properties": {
"location": {
"$ref": "#/components/schemas/Location"
},
"title": {
"type": "string",
"nullable": true
},
"address": {
"type": "string",
"nullable": true
},
"foursquareId": {
"type": "string",
"nullable": true
},
"foursquareType": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"PollOption": {
"type": "object",
"properties": {
"text": {
"type": "string",
"nullable": true
},
"voterCount": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"Poll": {
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true
},
"question": {
"type": "string",
"nullable": true
},
"options": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PollOption"
},
"nullable": true
},
"totalVoterCount": {
"type": "integer",
"format": "int32"
},
"isClosed": {
"type": "boolean"
},
"isAnonymous": {
"type": "boolean"
},
"type": {
"type": "string",
"nullable": true
},
"allowsMultipleAnswers": {
"type": "boolean"
},
"correctOptionId": {
"type": "integer",
"format": "int32",
"nullable": true
},
"explanation": {
"type": "string",
"nullable": true
},
"explanationEntities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MessageEntity"
},
"nullable": true
},
"openPeriod": {
"type": "integer",
"format": "int32",
"nullable": true
},
"closeDate": {
"type": "string",
"format": "date-time",
"nullable": true
}
},
"additionalProperties": false
},
"Dice": {
"type": "object",
"properties": {
"emoji": {
"type": "string",
"nullable": true
},
"value": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"Invoice": {
"type": "object",
"properties": {
"title": {
"type": "string",
"nullable": true
},
"description": {
"type": "string",
"nullable": true
},
"startParameter": {
"type": "string",
"nullable": true
},
"currency": {
"type": "string",
"nullable": true
},
"totalAmount": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"ShippingAddress": {
"type": "object",
"properties": {
"countryCode": {
"type": "string",
"nullable": true
},
"state": {
"type": "string",
"nullable": true
},
"city": {
"type": "string",
"nullable": true
},
"streetLine1": {
"type": "string",
"nullable": true
},
"streetLine2": {
"type": "string",
"nullable": true
},
"postCode": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"OrderInfo": {
"type": "object",
"properties": {
"name": {
"type": "string",
"nullable": true
},
"phoneNumber": {
"type": "string",
"nullable": true
},
"email": {
"type": "string",
"nullable": true
},
"shippingAddress": {
"$ref": "#/components/schemas/ShippingAddress"
}
},
"additionalProperties": false
},
"SuccessfulPayment": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"nullable": true
},
"totalAmount": {
"type": "integer",
"format": "int32"
},
"invoicePayload": {
"type": "string",
"nullable": true
},
"shippingOptionId": {
"type": "string",
"nullable": true
},
"orderInfo": {
"$ref": "#/components/schemas/OrderInfo"
},
"telegramPaymentChargeId": {
"type": "string",
"nullable": true
},
"providerPaymentChargeId": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"PassportFile": {
"type": "object",
"properties": {
"fileDate": {
"type": "string",
"format": "date-time"
},
"fileId": {
"type": "string",
"nullable": true
},
"fileUniqueId": {
"type": "string",
"nullable": true
},
"fileSize": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"EncryptedPassportElement": {
"type": "object",
"properties": {
"type": {
"type": "string",
"nullable": true
},
"hash": {
"type": "string",
"nullable": true
},
"data": {
"type": "string",
"nullable": true
},
"phoneNumber": {
"type": "string",
"nullable": true
},
"email": {
"type": "string",
"nullable": true
},
"files": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PassportFile"
},
"nullable": true
},
"frontSide": {
"$ref": "#/components/schemas/PassportFile"
},
"reverseSide": {
"$ref": "#/components/schemas/PassportFile"
},
"selfie": {
"$ref": "#/components/schemas/PassportFile"
},
"translation": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PassportFile"
},
"nullable": true
}
},
"additionalProperties": false
},
"EncryptedCredentials": {
"type": "object",
"properties": {
"data": {
"type": "string",
"nullable": true
},
"hash": {
"type": "string",
"nullable": true
},
"secret": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"PassportData": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/EncryptedPassportElement"
},
"nullable": true
},
"credentials": {
"$ref": "#/components/schemas/EncryptedCredentials"
}
},
"additionalProperties": false
},
"LoginUrl": {
"type": "object",
"properties": {
"url": {
"type": "string",
"nullable": true
},
"forwardText": {
"type": "string",
"nullable": true
},
"botUsername": {
"type": "string",
"nullable": true
},
"requestWriteAccess": {
"type": "boolean"
}
},
"additionalProperties": false
},
"CallbackGame": {
"type": "object",
"additionalProperties": false
},
"InlineKeyboardButton": {
"type": "object",
"properties": {
"text": {
"type": "string",
"nullable": true
},
"url": {
"type": "string",
"nullable": true
},
"loginUrl": {
"$ref": "#/components/schemas/LoginUrl"
},
"callbackData": {
"type": "string",
"nullable": true
},
"switchInlineQuery": {
"type": "string",
"nullable": true
},
"switchInlineQueryCurrentChat": {
"type": "string",
"nullable": true
},
"callbackGame": {
"$ref": "#/components/schemas/CallbackGame"
},
"pay": {
"type": "boolean"
}
},
"additionalProperties": false
},
"InlineKeyboardMarkup": {
"type": "object",
"properties": {
"inlineKeyboard": {
"type": "array",
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/InlineKeyboardButton"
}
},
"nullable": true,
"readOnly": true
}
},
"additionalProperties": false
},
"MessageType": {
"enum": [
"Unknown",
"Text",
"Photo",
"Audio",
"Video",
"Voice",
"Document",
"Sticker",
"Location",
"Contact",
"Venue",
"Game",
"VideoNote",
"Invoice",
"SuccessfulPayment",
"WebsiteConnected",
"ChatMembersAdded",
"ChatMemberLeft",
"ChatTitleChanged",
"ChatPhotoChanged",
"MessagePinned",
"ChatPhotoDeleted",
"GroupCreated",
"SupergroupCreated",
"ChannelCreated",
"MigratedToSupergroup",
"MigratedFromGroup",
"Animation",
"Poll",
"Dice"
],
"type": "string"
},
"Message": {
"type": "object",
"properties": {
"messageId": {
"type": "integer",
"format": "int32"
},
"from": {
"$ref": "#/components/schemas/User"
},
"date": {
"type": "string",
"format": "date-time"
},
"chat": {
"$ref": "#/components/schemas/Chat"
},
"isForwarded": {
"type": "boolean",
"readOnly": true,
"deprecated": true
},
"forwardFrom": {
"$ref": "#/components/schemas/User"
},
"forwardFromChat": {
"$ref": "#/components/schemas/Chat"
},
"forwardFromMessageId": {
"type": "integer",
"format": "int32"
},
"forwardSignature": {
"type": "string",
"nullable": true
},
"forwardSenderName": {
"type": "string",
"nullable": true
},
"forwardDate": {
"type": "string",
"format": "date-time",
"nullable": true
},
"replyToMessage": {
"$ref": "#/components/schemas/Message"
},
"viaBot": {
"$ref": "#/components/schemas/User"
},
"editDate": {
"type": "string",
"format": "date-time",
"nullable": true
},
"mediaGroupId": {
"type": "string",
"nullable": true
},
"authorSignature": {
"type": "string",
"nullable": true
},
"text": {
"type": "string",
"nullable": true
},
"entities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MessageEntity"
},
"nullable": true
},
"entityValues": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"readOnly": true
},
"captionEntities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MessageEntity"
},
"nullable": true
},
"captionEntityValues": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"readOnly": true
},
"audio": {
"$ref": "#/components/schemas/Audio"
},
"document": {
"$ref": "#/components/schemas/Document"
},
"animation": {
"$ref": "#/components/schemas/Animation"
},
"game": {
"$ref": "#/components/schemas/Game"
},
"photo": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PhotoSize"
},
"nullable": true
},
"sticker": {
"$ref": "#/components/schemas/Sticker"
},
"video": {
"$ref": "#/components/schemas/Video"
},
"voice": {
"$ref": "#/components/schemas/Voice"
},
"videoNote": {
"$ref": "#/components/schemas/VideoNote"
},
"caption": {
"type": "string",
"nullable": true
},
"contact": {
"$ref": "#/components/schemas/Contact"
},
"location": {
"$ref": "#/components/schemas/Location"
},
"venue": {
"$ref": "#/components/schemas/Venue"
},
"poll": {
"$ref": "#/components/schemas/Poll"
},
"dice": {
"$ref": "#/components/schemas/Dice"
},
"newChatMembers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/User"
},
"nullable": true
},
"leftChatMember": {
"$ref": "#/components/schemas/User"
},
"newChatTitle": {
"type": "string",
"nullable": true
},
"newChatPhoto": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PhotoSize"
},
"nullable": true
},
"deleteChatPhoto": {
"type": "boolean"
},
"groupChatCreated": {
"type": "boolean"
},
"supergroupChatCreated": {
"type": "boolean"
},
"channelChatCreated": {
"type": "boolean"
},
"migrateToChatId": {
"type": "integer",
"format": "int64"
},
"migrateFromChatId": {
"type": "integer",
"format": "int64"
},
"pinnedMessage": {
"$ref": "#/components/schemas/Message"
},
"invoice": {
"$ref": "#/components/schemas/Invoice"
},
"successfulPayment": {
"$ref": "#/components/schemas/SuccessfulPayment"
},
"connectedWebsite": {
"type": "string",
"nullable": true
},
"passportData": {
"$ref": "#/components/schemas/PassportData"
},
"replyMarkup": {
"$ref": "#/components/schemas/InlineKeyboardMarkup"
},
"type": {
"$ref": "#/components/schemas/MessageType"
}
},
"additionalProperties": false
},
"InlineQuery": {
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true
},
"from": {
"$ref": "#/components/schemas/User"
},
"query": {
"type": "string",
"nullable": true
},
"location": {
"$ref": "#/components/schemas/Location"
},
"offset": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"ChosenInlineResult": {
"type": "object",
"properties": {
"resultId": {
"type": "string",
"nullable": true
},
"from": {
"$ref": "#/components/schemas/User"
},
"location": {
"$ref": "#/components/schemas/Location"
},
"inlineMessageId": {
"type": "string",
"nullable": true
},
"query": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"CallbackQuery": {
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true
},
"from": {
"$ref": "#/components/schemas/User"
},
"message": {
"$ref": "#/components/schemas/Message"
},
"inlineMessageId": {
"type": "string",
"nullable": true
},
"chatInstance": {
"type": "string",
"nullable": true
},
"data": {
"type": "string",
"nullable": true
},
"gameShortName": {
"type": "string",
"nullable": true
},
"isGameQuery": {
"type": "boolean",
"readOnly": true
}
},
"additionalProperties": false
},
"ShippingQuery": {
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true
},
"from": {
"$ref": "#/components/schemas/User"
},
"invoicePayload": {
"type": "string",
"nullable": true
},
"shippingAddress": {
"$ref": "#/components/schemas/ShippingAddress"
}
},
"additionalProperties": false
},
"PreCheckoutQuery": {
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true
},
"from": {
"$ref": "#/components/schemas/User"
},
"currency": {
"type": "string",
"nullable": true
},
"totalAmount": {
"type": "integer",
"format": "int32"
},
"invoicePayload": {
"type": "string",
"nullable": true
},
"shippingOptionId": {
"type": "string",
"nullable": true
},
"orderInfo": {
"$ref": "#/components/schemas/OrderInfo"
}
},
"additionalProperties": false
},
"PollAnswer": {
"type": "object",
"properties": {
"pollId": {
"type": "string",
"nullable": true
},
"user": {
"$ref": "#/components/schemas/User"
},
"optionIds": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"nullable": true
}
},
"additionalProperties": false
},
"UpdateType": {
"enum": [
"Unknown",
"Message",
"InlineQuery",
"ChosenInlineResult",
"CallbackQuery",
"EditedMessage",
"ChannelPost",
"EditedChannelPost",
"ShippingQuery",
"PreCheckoutQuery",
"Poll",
"PollAnswer"
],
"type": "string"
},
"Update": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"message": {
"$ref": "#/components/schemas/Message"
},
"editedMessage": {
"$ref": "#/components/schemas/Message"
},
"inlineQuery": {
"$ref": "#/components/schemas/InlineQuery"
},
"chosenInlineResult": {
"$ref": "#/components/schemas/ChosenInlineResult"
},
"callbackQuery": {
"$ref": "#/components/schemas/CallbackQuery"
},
"channelPost": {
"$ref": "#/components/schemas/Message"
},
"editedChannelPost": {
"$ref": "#/components/schemas/Message"
},
"shippingQuery": {
"$ref": "#/components/schemas/ShippingQuery"
},
"preCheckoutQuery": {
"$ref": "#/components/schemas/PreCheckoutQuery"
},
"poll": {
"$ref": "#/components/schemas/Poll"
},
"pollAnswer": {
"$ref": "#/components/schemas/PollAnswer"
},
"type": {
"$ref": "#/components/schemas/UpdateType"
}
},
"additionalProperties": false
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment