{
  "openapi": "3.0.4",
  "info": {
    "title": "CS4 Telegram Core API",
    "version": "v1"
  },
  "paths": {
    "/": {
      "get": {
        "tags": [
          "CS4.TelegramCore.ApiService"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "CS4.TelegramCore.ApiService"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Message/Notify": {
      "post": {
        "tags": [
          "Message"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotifyRqst"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/NotifyRqst"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/NotifyRqst"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NotifyRspn"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotifyRspn"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotifyRspn"
                }
              }
            }
          }
        }
      }
    },
    "/Message/SendDocument": {
      "post": {
        "tags": [
          "Message"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendDocumentRqst"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendDocumentRqst"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendDocumentRqst"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SendDocumentRspn"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendDocumentRspn"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendDocumentRspn"
                }
              }
            }
          }
        }
      }
    },
    "/Message/SendImage": {
      "post": {
        "tags": [
          "Message"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendImageRqst"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendImageRqst"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendImageRqst"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SendImageRspn"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendImageRspn"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendImageRspn"
                }
              }
            }
          }
        }
      }
    },
    "/Message/SendInvitation": {
      "post": {
        "tags": [
          "Message"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendInvitationRqst"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendInvitationRqst"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendInvitationRqst"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SendInvitationRspn"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendInvitationRspn"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendInvitationRspn"
                }
              }
            }
          }
        }
      }
    },
    "/Message/SendMessage": {
      "post": {
        "tags": [
          "Message"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendMessageRqst"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendMessageRqst"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendMessageRqst"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SendMessageRspn"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendMessageRspn"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendMessageRspn"
                }
              }
            }
          }
        }
      }
    },
    "/Message/SendQuery": {
      "post": {
        "tags": [
          "Message"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendQueryRqst"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendQueryRqst"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendQueryRqst"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SendQueryRspn"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendQueryRspn"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendQueryRspn"
                }
              }
            }
          }
        }
      }
    },
    "/WebHook": {
      "get": {
        "tags": [
          "WebHook"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/WebHook/{bot}": {
      "post": {
        "tags": [
          "WebHook"
        ],
        "parameters": [
          {
            "name": "bot",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FileInfo": {
        "type": "object",
        "properties": {
          "fileUrl": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "bytes": {
            "type": "string",
            "format": "byte",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NotifyRqst": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "chatGuid": {
            "type": "string",
            "nullable": true
          },
          "disableHtmlPreview": {
            "type": "boolean"
          },
          "disableNotification": {
            "type": "boolean"
          },
          "isHtml": {
            "type": "boolean"
          },
          "mobile": {
            "type": "string",
            "nullable": true
          },
          "monoSpaceFont": {
            "type": "boolean"
          },
          "notifyType": {
            "$ref": "#/components/schemas/NotifyType"
          },
          "text": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NotifyRspn": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "nullable": true
          },
          "success": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "NotifyType": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "SendDocumentRqst": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "chatGuid": {
            "type": "string",
            "nullable": true
          },
          "mobile": {
            "type": "string",
            "nullable": true
          },
          "caption": {
            "type": "string",
            "nullable": true
          },
          "fileInfo": {
            "$ref": "#/components/schemas/FileInfo"
          }
        },
        "additionalProperties": false
      },
      "SendDocumentRspn": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "nullable": true
          },
          "success": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SendImageRqst": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "chatGuid": {
            "type": "string",
            "nullable": true
          },
          "mobile": {
            "type": "string",
            "nullable": true
          },
          "caption": {
            "type": "string",
            "nullable": true
          },
          "fileInfo": {
            "$ref": "#/components/schemas/FileInfo"
          }
        },
        "additionalProperties": false
      },
      "SendImageRspn": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "nullable": true
          },
          "success": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SendInvitationRqst": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "botName": {
            "type": "string",
            "nullable": true
          },
          "mobile": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SendInvitationRspn": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "nullable": true
          },
          "success": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SendMessageRqst": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "chatGuid": {
            "type": "string",
            "nullable": true
          },
          "mobile": {
            "type": "string",
            "nullable": true
          },
          "text": {
            "type": "string",
            "nullable": true
          },
          "disableNotification": {
            "type": "boolean"
          },
          "isHtml": {
            "type": "boolean"
          },
          "disableHtmlPreview": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SendMessageRspn": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "nullable": true
          },
          "success": {
            "type": "boolean"
          },
          "messageGuid": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SendQueryRqst": {
        "type": "object",
        "properties": {
          "buttonText": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "buttonData": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "chatGuid": {
            "type": "string",
            "nullable": true
          },
          "mobile": {
            "type": "string",
            "nullable": true
          },
          "text": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SendQueryRspn": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "nullable": true
          },
          "success": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      }
    }
  }
}