1035 lines
21 KiB
Markdown
1035 lines
21 KiB
Markdown
# Models for Use
|
|
|
|
## Authentication
|
|
|
|
Request:
|
|
|
|
```json
|
|
{
|
|
"password": "s@H@1694056",
|
|
"userSelectBy": "admin"
|
|
}
|
|
```
|
|
|
|
Response:
|
|
|
|
```json
|
|
{
|
|
"accessToken": "905F846AB87139ED016A54A2A59628B4C32FA4629C5C233B026F9C8D56234882",
|
|
"refreshToken": "C840D444EC1823800976AD4E17C64D47E9099BFDC18702117F71246F5F912BEB",
|
|
"expiresAt": 1794081865
|
|
}
|
|
```
|
|
|
|
ApiKeys:
|
|
|
|
### IDS RPK
|
|
|
|
xapp_WUQW1XIVNPTLXkqH9kOLKsIueXpqA_Qx9ZWJqiC2mA4
|
|
|
|
### IDS MacSlim 1
|
|
|
|
xapp_xIEUusVi0dmHCLeUvUrCGh-f6EtvEbCa8dYL4nGegus
|
|
|
|
### IDS MacSlim 2
|
|
|
|
xapp_sH0MbXEkCNEP9CQ_RLEkD-Fh7QhGUnzwyGcJfSmy_VY
|
|
|
|
## Application
|
|
|
|
### Create/Update
|
|
|
|
Model:
|
|
|
|
Create:
|
|
|
|
```json
|
|
{
|
|
"type": 0,
|
|
"name": "string",
|
|
"description": "string",
|
|
}
|
|
```
|
|
|
|
Update:
|
|
|
|
```json
|
|
{
|
|
"id": 0,
|
|
"type": 0,
|
|
"name": "string",
|
|
"description": "string",
|
|
}
|
|
```
|
|
|
|
Sample:
|
|
|
|
Create:
|
|
|
|
```json
|
|
{
|
|
"type": 0,
|
|
"name": "TestApp",
|
|
"description": "a Simple Test App for ApiKey Testing on xDashboard based Projects ...",
|
|
}
|
|
```
|
|
|
|
Update:
|
|
|
|
```json
|
|
{
|
|
"id": 0,
|
|
"type": 0,
|
|
"name": "TestAppEdit",
|
|
"description": "a Edited Simple Test App for ApiKey Testing on xDashboard based Projects ...",
|
|
}
|
|
```
|
|
|
|
## ApiKey
|
|
|
|
### Create
|
|
|
|
Model:
|
|
|
|
```json
|
|
{
|
|
"rateLimit": 0,
|
|
"expirationMinutes": 0,
|
|
"scopes": [
|
|
"string"
|
|
],
|
|
"allowedIPs": [
|
|
"string"
|
|
]
|
|
}
|
|
```
|
|
|
|
Sample:
|
|
|
|
```json
|
|
{
|
|
"rateLimit": 50,
|
|
"expirationMinutes": 40,
|
|
"scopes": [
|
|
"manage"
|
|
],
|
|
"allowedIPs": []
|
|
}
|
|
```
|
|
|
|
### Update
|
|
|
|
Model:
|
|
|
|
```json
|
|
{
|
|
"revokedBy": "string",
|
|
"allowedIPs": "string",
|
|
"rateLimitPerMinute": 0,
|
|
"allowedScopes": "string",
|
|
"expiresAt": "2026-10-08T11:30:15.484Z",
|
|
"revokedAt": "2026-10-08T11:30:15.484Z",
|
|
"lastUsedAt": "2026-10-08T11:30:15.484Z",
|
|
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
}
|
|
```
|
|
|
|
Sample:
|
|
|
|
```json
|
|
{
|
|
"revokedBy": "string",
|
|
"allowedIPs": "string",
|
|
"rateLimitPerMinute": 0,
|
|
"allowedScopes": "string",
|
|
"expiresAt": "2026-10-08T11:30:15.484Z",
|
|
"revokedAt": "2026-10-08T11:30:15.484Z",
|
|
"lastUsedAt": "2026-10-08T11:30:15.484Z",
|
|
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
}
|
|
```
|
|
|
|
## Chat With Documents
|
|
|
|
### Ingest
|
|
|
|
Response:
|
|
|
|
```json
|
|
{
|
|
"sessionId": "36e4d6e4-768f-4622-90d7-f79af449df9d",
|
|
"filesCount": 9,
|
|
"chunksCount": 208,
|
|
"totalVectorsCount": 208,
|
|
"skippedFiles": [],
|
|
"expiresAtUtc": "2026-11-02T13:48:15.7779591Z"
|
|
}
|
|
```
|
|
|
|
### Ask from Documents
|
|
|
|
Request:
|
|
|
|
```json
|
|
{
|
|
"sessionId": "36e4d6e4-768f-4622-90d7-f79af449df9d",
|
|
"prompt": "give me an overview of an ai system architecture",
|
|
"topK": 5,
|
|
"minScore": 0.35
|
|
}
|
|
```
|
|
|
|
{
|
|
"prompt": "who are you ?",
|
|
"projectId": "",
|
|
"conversationId": ""
|
|
}
|
|
|
|
{
|
|
"prompt": "what is MCP ?",
|
|
"projectId": "",
|
|
"conversationId": ""
|
|
}
|
|
|
|
## Knowledge
|
|
|
|
### Retrieve Documents
|
|
|
|
Response:
|
|
|
|
```json
|
|
[
|
|
{
|
|
"scope": 2,
|
|
"scopeId": null,
|
|
"type": "XAiKnowledge",
|
|
"fileName": "1-ParsaPolimer-RFP-Analythic.html",
|
|
"mimeType": "text/html",
|
|
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
|
|
"chunksCount": 18,
|
|
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
|
|
},
|
|
{
|
|
"scope": 2,
|
|
"scopeId": null,
|
|
"type": "XAiKnowledge",
|
|
"fileName": "2-ParsaPolimer-BigArchitecture.html",
|
|
"mimeType": "text/html",
|
|
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
|
|
"chunksCount": 21,
|
|
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
|
|
},
|
|
{
|
|
"scope": 2,
|
|
"scopeId": null,
|
|
"type": "XAiKnowledge",
|
|
"fileName": "3-ParsaPolimer-BPMN2.html",
|
|
"mimeType": "text/html",
|
|
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
|
|
"chunksCount": 9,
|
|
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
|
|
},
|
|
{
|
|
"scope": 2,
|
|
"scopeId": null,
|
|
"type": "XAiKnowledge",
|
|
"fileName": "4-ParsaPolimer-Roadmap.html",
|
|
"mimeType": "text/html",
|
|
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
|
|
"chunksCount": 28,
|
|
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
|
|
},
|
|
{
|
|
"scope": 2,
|
|
"scopeId": null,
|
|
"type": "XAiKnowledge",
|
|
"fileName": "5-RoadmapSH.html",
|
|
"mimeType": "text/html",
|
|
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
|
|
"chunksCount": 24,
|
|
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
|
|
},
|
|
{
|
|
"scope": 2,
|
|
"scopeId": null,
|
|
"type": "XAiKnowledge",
|
|
"fileName": "6-ParsaPolimer-TechnicalRoadmap.html",
|
|
"mimeType": "text/html",
|
|
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
|
|
"chunksCount": 28,
|
|
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
|
|
},
|
|
{
|
|
"scope": 2,
|
|
"scopeId": null,
|
|
"type": "XAiKnowledge",
|
|
"fileName": "AI Proposal 1.html",
|
|
"mimeType": "text/html",
|
|
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
|
|
"chunksCount": 26,
|
|
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
|
|
},
|
|
{
|
|
"scope": 2,
|
|
"scopeId": null,
|
|
"type": "XAiKnowledge",
|
|
"fileName": "AI Proposal 2.html",
|
|
"mimeType": "text/html",
|
|
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
|
|
"chunksCount": 28,
|
|
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
|
|
},
|
|
{
|
|
"scope": 2,
|
|
"scopeId": null,
|
|
"type": "XAiKnowledge",
|
|
"fileName": "AI Proposal 3.html",
|
|
"mimeType": "text/html",
|
|
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
|
|
"chunksCount": 26,
|
|
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
|
|
},
|
|
{
|
|
"scope": 2,
|
|
"scopeId": null,
|
|
"type": "XAiKnowledge",
|
|
"fileName": "AirLLM-Document.html",
|
|
"mimeType": "text/html",
|
|
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
|
|
"chunksCount": 8,
|
|
"ingestedAtUtc": "2026-11-02T05:48:59.5176187Z"
|
|
}
|
|
]
|
|
```
|
|
|
|
## MCP Server
|
|
|
|
### Add
|
|
|
|
Request:
|
|
|
|
```json
|
|
{
|
|
"scope": 1,
|
|
"headers": "",
|
|
"enabled": true,
|
|
"timeoutSeconds": 30,
|
|
"name": "XAiMcpServer",
|
|
"environmentVariables": "",
|
|
"description": "a Simple MCP Server ...",
|
|
"endpoint": "https://localhost:7001/mcp"
|
|
}
|
|
```
|
|
|
|
Response:
|
|
|
|
```json
|
|
{
|
|
"ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
|
|
"owner": {
|
|
"avatar": null,
|
|
"userId": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
|
|
"username": "admin",
|
|
"lastname": "Khazaee Asl",
|
|
"firstname": "Hadi"
|
|
},
|
|
"scope": 1,
|
|
"name": "XAiMcpServer",
|
|
"description": "a Simple MCP Server ...",
|
|
"enabled": true,
|
|
"environmentVariables": "",
|
|
"endpoint": "https://localhost:7001/mcp",
|
|
"headers": "",
|
|
"timeoutSeconds": 30,
|
|
"createdOn": "2026-11-05T09:30:12.3783202Z",
|
|
"updatedAt": "0001-01-01T00:00:00",
|
|
"id": "fc583f76-ae11-4f63-8d4c-72927345e4e4",
|
|
"deleted": false
|
|
}
|
|
```
|
|
|
|
## MCP Tool
|
|
|
|
### Prompt for Tool Calling
|
|
|
|
User Tool:
|
|
|
|
whe am i ?
|
|
|
|
Link Extraction Tool:
|
|
|
|
Read this page https://git.saherelm.ir/ and summarize what is this
|
|
|
|
### Tools List
|
|
|
|
Request:
|
|
|
|
```json
|
|
{
|
|
"jsonrpc": "2.0",
|
|
"id": 2,
|
|
"method": "tools/list",
|
|
"params": {}
|
|
}
|
|
```
|
|
|
|
Response:
|
|
|
|
```json
|
|
{
|
|
"jsonrpc": "2.0",
|
|
"id": 2,
|
|
"result": {
|
|
"tools": [
|
|
{
|
|
"name": "GetCurrentDateTime",
|
|
"description": "Get the CURRENT date and time right now. Use this tool whenever the user asks about 'today', 'now', 'current date', 'current time', or when you need the current date/time for any relative calculation (like 'three days ago', 'next week', 'how many days until...'). Returns Gregorian, Persian (Jalali), day-of-week, and Unix timestamp.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [],
|
|
"properties": {
|
|
"timezone": {
|
|
"type": "string",
|
|
"description": "Optional IANA timezone (e.g. 'Asia/Tehran', 'UTC', 'Europe/London'). Defaults to 'Asia/Tehran'."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "DetectDates",
|
|
"description": "Detect and extract all date-like patterns from a free text. Supports Gregorian (2024-11-05), Persian (1403/08/15), Hijri (1446/05/03), ISO 8601, and month-name forms.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": ["text"],
|
|
"properties": {
|
|
"text": {
|
|
"type": "string",
|
|
"description": "Free text that may contain dates."
|
|
},
|
|
"calendarHint": {
|
|
"type": "string",
|
|
"description": "Optional: hint for the primary calendar (Gregorian, Persian, Hijri). Leave empty for auto-detection."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "ParseDate",
|
|
"description": "Parse a single date string. Returns the detected calendar, plus normalized Gregorian (ISO 8601), Persian, Hijri representations, and Unix timestamp.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": ["date"],
|
|
"properties": {
|
|
"date": {
|
|
"type": "string",
|
|
"description": "Date string like '1403/08/15' or '2024-11-05'."
|
|
},
|
|
"calendarHint": {
|
|
"type": "string",
|
|
"description": "Optional: calendar hint (Gregorian, Persian, Hijri). Leave empty for auto-detect."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "ConvertDate",
|
|
"description": "Convert a date from one calendar to another. Supported calendars: Gregorian, Persian (Jalali/Shamsi), Hijri (Islamic).",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": ["date", "fromCalendar", "toCalendar"],
|
|
"properties": {
|
|
"date": {
|
|
"type": "string",
|
|
"description": "Date string in the source calendar."
|
|
},
|
|
"fromCalendar": {
|
|
"type": "string",
|
|
"description": "Source calendar: Gregorian, Persian, or Hijri."
|
|
},
|
|
"toCalendar": {
|
|
"type": "string",
|
|
"description": "Target calendar: Gregorian, Persian, or Hijri."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "DateDifference",
|
|
"description": "Calculate the difference between two dates. Returns total days, and a breakdown into years/months/days.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": ["date1", "date2"],
|
|
"properties": {
|
|
"date1": {
|
|
"type": "string",
|
|
"description": "First date string."
|
|
},
|
|
"date2": {
|
|
"type": "string",
|
|
"description": "Second date string."
|
|
},
|
|
"calendarHint": {
|
|
"type": "string",
|
|
"description": "Optional: calendar hint for both dates."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "ToUnixTimestamp",
|
|
"description": "Convert a date string to Unix timestamp (seconds since 1970-01-01 UTC).",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": ["date"],
|
|
"properties": {
|
|
"date": {
|
|
"type": "string",
|
|
"description": "Date string."
|
|
},
|
|
"calendarHint": {
|
|
"type": "string",
|
|
"description": "Optional: calendar hint (Gregorian, Persian, Hijri)."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "FromUnixTimestamp",
|
|
"description": "Convert a Unix timestamp (seconds since 1970-01-01 UTC) back to a date string in the specified calendar.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": ["timestamp"],
|
|
"properties": {
|
|
"timestamp": {
|
|
"type": "integer",
|
|
"description": "Unix timestamp in seconds."
|
|
},
|
|
"targetCalendar": {
|
|
"type": "string",
|
|
"description": "Optional: target calendar (Gregorian, Persian, Hijri). Defaults to Gregorian."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Echo",
|
|
"description": "Echoes the string back to the client give message in string",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": ["message"],
|
|
"properties": {
|
|
"message": {
|
|
"type": "string",
|
|
"description": "string value which specified message"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
```
|
|
|
|
## Project
|
|
|
|
### Create Project
|
|
|
|
Request:
|
|
|
|
```json
|
|
{
|
|
"title": "string",
|
|
"prompt": "string",
|
|
"description": "string",
|
|
}
|
|
```
|
|
|
|
Response:
|
|
|
|
```json
|
|
{
|
|
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
"deleted": true,
|
|
"ownerId": "string",
|
|
"owner": {
|
|
"avatar": "string",
|
|
"userId": "string",
|
|
"username": "string",
|
|
"lastname": "string",
|
|
"firstname": "string"
|
|
},
|
|
"title": "string",
|
|
"titleResource": {
|
|
"resource": "string",
|
|
"locales": [
|
|
{
|
|
"language": "string",
|
|
"value": "string"
|
|
}
|
|
]
|
|
},
|
|
"description": "string",
|
|
"descriptionResource": {
|
|
"resource": "string",
|
|
"locales": [
|
|
{
|
|
"language": "string",
|
|
"value": "string"
|
|
}
|
|
]
|
|
},
|
|
"prompt": "string",
|
|
"createdOn": "2026-11-10T07:59:42.213Z",
|
|
"updatedAt": "2026-11-10T07:59:42.213Z",
|
|
"conversations": [
|
|
{
|
|
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
"deleted": true,
|
|
"ownerId": "string",
|
|
"owner": {
|
|
"avatar": "string",
|
|
"userId": "string",
|
|
"username": "string",
|
|
"lastname": "string",
|
|
"firstname": "string"
|
|
},
|
|
"title": "string",
|
|
"titleResource": {
|
|
"resource": "string",
|
|
"locales": [
|
|
{
|
|
"language": "string",
|
|
"value": "string"
|
|
}
|
|
]
|
|
},
|
|
"createdOn": "2026-11-10T07:59:42.213Z",
|
|
"updatedAt": "2026-11-10T07:59:42.213Z",
|
|
"messages": [
|
|
{
|
|
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
"deleted": true,
|
|
"ownerId": "string",
|
|
"owner": {
|
|
"avatar": "string",
|
|
"userId": "string",
|
|
"username": "string",
|
|
"lastname": "string",
|
|
"firstname": "string"
|
|
},
|
|
"content": "string",
|
|
"role": 0,
|
|
"createdOn": "2026-11-10T07:59:42.213Z",
|
|
"updatedAt": "2026-11-10T07:59:42.213Z",
|
|
"conversationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
"conversationTitle": "string",
|
|
"conversationTitleResouce": {
|
|
"resource": "string",
|
|
"locales": [
|
|
{
|
|
"language": "string",
|
|
"value": "string"
|
|
}
|
|
]
|
|
},
|
|
"metaDatas": "string"
|
|
}
|
|
],
|
|
"projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
"projectTitle": "string",
|
|
"projectDescription": "string",
|
|
"projectTitleResource": {
|
|
"resource": "string",
|
|
"locales": [
|
|
{
|
|
"language": "string",
|
|
"value": "string"
|
|
}
|
|
]
|
|
},
|
|
"projectDescriptionResource": {
|
|
"resource": "string",
|
|
"locales": [
|
|
{
|
|
"language": "string",
|
|
"value": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
## Conversation
|
|
|
|
### Create Conversation
|
|
|
|
Request:
|
|
|
|
```json
|
|
{
|
|
"title": "string",
|
|
"projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
}
|
|
```
|
|
|
|
Response:
|
|
|
|
```json
|
|
{
|
|
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
"deleted": true,
|
|
"ownerId": "string",
|
|
"owner": {
|
|
"avatar": "string",
|
|
"userId": "string",
|
|
"username": "string",
|
|
"lastname": "string",
|
|
"firstname": "string"
|
|
},
|
|
"title": "string",
|
|
"titleResource": {
|
|
"resource": "string",
|
|
"locales": [
|
|
{
|
|
"language": "string",
|
|
"value": "string"
|
|
}
|
|
]
|
|
},
|
|
"createdOn": "2026-11-10T08:03:05.051Z",
|
|
"updatedAt": "2026-11-10T08:03:05.051Z",
|
|
"messages": [
|
|
{
|
|
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
"deleted": true,
|
|
"ownerId": "string",
|
|
"owner": {
|
|
"avatar": "string",
|
|
"userId": "string",
|
|
"username": "string",
|
|
"lastname": "string",
|
|
"firstname": "string"
|
|
},
|
|
"content": "string",
|
|
"role": 0,
|
|
"createdOn": "2026-11-10T08:03:05.051Z",
|
|
"updatedAt": "2026-11-10T08:03:05.051Z",
|
|
"conversationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
"conversationTitle": "string",
|
|
"conversationTitleResouce": {
|
|
"resource": "string",
|
|
"locales": [
|
|
{
|
|
"language": "string",
|
|
"value": "string"
|
|
}
|
|
]
|
|
},
|
|
"metaDatas": "string"
|
|
}
|
|
],
|
|
"projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
"projectTitle": "string",
|
|
"projectDescription": "string",
|
|
"projectTitleResource": {
|
|
"resource": "string",
|
|
"locales": [
|
|
{
|
|
"language": "string",
|
|
"value": "string"
|
|
}
|
|
]
|
|
},
|
|
"projectDescriptionResource": {
|
|
"resource": "string",
|
|
"locales": [
|
|
{
|
|
"language": "string",
|
|
"value": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
```
|
|
|
|
## Bot
|
|
|
|
### Me
|
|
|
|
```json
|
|
{
|
|
"id": 57317004,
|
|
"is_bot": true,
|
|
"username": "xsaherelmbot",
|
|
"first_name": "xBaleBot",
|
|
"has_topics_enabled": false,
|
|
"allows_users_to_create_topics": false
|
|
}
|
|
```
|
|
|
|
### Updates
|
|
|
|
```json
|
|
[
|
|
{
|
|
"update_id": 1,
|
|
"message": {
|
|
"message_id": 1,
|
|
"message_thread_id": 0,
|
|
"from": {
|
|
"id": 1917703782,
|
|
"is_bot": false,
|
|
"last_name": "",
|
|
"first_name": "kimia ",
|
|
"has_topics_enabled": false,
|
|
"allows_users_to_create_topics": false
|
|
},
|
|
"date": 1794469606,
|
|
"chat": {
|
|
"id": 1917703782,
|
|
"type": "private",
|
|
"first_name": "kimia "
|
|
},
|
|
"forward_from_message_id": 0,
|
|
"forward_date": 0,
|
|
"edit_date": 0,
|
|
"text": "/start",
|
|
"entities": [
|
|
{
|
|
"type": "bot_command",
|
|
"offset": 0,
|
|
"length": 6
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"update_id": 2,
|
|
"message": {
|
|
"message_id": 2,
|
|
"message_thread_id": 0,
|
|
"from": {
|
|
"id": 442637838,
|
|
"is_bot": false,
|
|
"last_name": "",
|
|
"first_name": "بهاره زرگر",
|
|
"has_topics_enabled": false,
|
|
"allows_users_to_create_topics": false
|
|
},
|
|
"date": 1794484300,
|
|
"chat": {
|
|
"id": 442637838,
|
|
"type": "private",
|
|
"first_name": "بهاره زرگر"
|
|
},
|
|
"forward_from_message_id": 0,
|
|
"forward_date": 0,
|
|
"edit_date": 0,
|
|
"text": "/start",
|
|
"entities": [
|
|
{
|
|
"type": "bot_command",
|
|
"offset": 0,
|
|
"length": 6
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"update_id": 3,
|
|
"message": {
|
|
"message_id": 5,
|
|
"message_thread_id": 0,
|
|
"from": {
|
|
"id": 1014883194,
|
|
"is_bot": false,
|
|
"last_name": "",
|
|
"username": "llhajamir",
|
|
"first_name": "llHajAmir",
|
|
"has_topics_enabled": false,
|
|
"allows_users_to_create_topics": false
|
|
},
|
|
"date": 1794496444,
|
|
"chat": {
|
|
"id": 1014883194,
|
|
"type": "private",
|
|
"username": "llhajamir",
|
|
"first_name": "llHajAmir"
|
|
},
|
|
"forward_from_message_id": 0,
|
|
"forward_date": 0,
|
|
"edit_date": 0,
|
|
"text": "/start",
|
|
"entities": [
|
|
{
|
|
"type": "bot_command",
|
|
"offset": 0,
|
|
"length": 6
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"update_id": 4,
|
|
"callback_query": {
|
|
"id": "6895626100094890049",
|
|
"data": "request_verification_code",
|
|
"from": {
|
|
"id": 1014883194,
|
|
"is_bot": false,
|
|
"last_name": "",
|
|
"username": "llhajamir",
|
|
"first_name": "llHajAmir",
|
|
"has_topics_enabled": false,
|
|
"allows_users_to_create_topics": false
|
|
},
|
|
"message": {
|
|
"message_id": 11,
|
|
"message_thread_id": 0,
|
|
"from": {
|
|
"id": 57317004,
|
|
"is_bot": true,
|
|
"last_name": "",
|
|
"username": "xsaherelmbot",
|
|
"first_name": "xBaleBot",
|
|
"has_topics_enabled": false,
|
|
"allows_users_to_create_topics": false
|
|
},
|
|
"date": 1794509749,
|
|
"chat": {
|
|
"id": 1014883194,
|
|
"type": "private",
|
|
"username": "llhajamir",
|
|
"first_name": "llHajAmir"
|
|
},
|
|
"forward_from_message_id": 0,
|
|
"forward_date": 0,
|
|
"edit_date": 0,
|
|
"text": "برای دریافت کد وریفیکیشن روی دکمه زیر کلیک کنید:",
|
|
"reply_markup": {
|
|
"inline_keyboard": [
|
|
[
|
|
{
|
|
"text": "🔐 دریافت کد وریفیکیشن",
|
|
"callback_data": "request_verification_code"
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"update_id": 5,
|
|
"message": {
|
|
"message_id": 24,
|
|
"message_thread_id": 0,
|
|
"from": {
|
|
"id": 1603883217,
|
|
"is_bot": false,
|
|
"last_name": "",
|
|
"username": "saherelm",
|
|
"first_name": "هادی خزاعی اصل",
|
|
"has_topics_enabled": false,
|
|
"allows_users_to_create_topics": false
|
|
},
|
|
"date": 1794518205,
|
|
"chat": {
|
|
"id": 1603883217,
|
|
"type": "private",
|
|
"username": "saherelm",
|
|
"first_name": "هادی خزاعی اصل"
|
|
},
|
|
"forward_from_message_id": 0,
|
|
"forward_date": 0,
|
|
"edit_date": 0,
|
|
"text": "/start",
|
|
"entities": [
|
|
{
|
|
"type": "bot_command",
|
|
"offset": 0,
|
|
"length": 6
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"update_id": 6,
|
|
"message": {
|
|
"message_id": 25,
|
|
"message_thread_id": 0,
|
|
"from": {
|
|
"id": 1856048721,
|
|
"is_bot": false,
|
|
"last_name": "",
|
|
"username": "saherelm_it_center",
|
|
"first_name": "فن آوران ساحر علم",
|
|
"has_topics_enabled": false,
|
|
"allows_users_to_create_topics": false
|
|
},
|
|
"date": 1794518242,
|
|
"chat": {
|
|
"id": 1856048721,
|
|
"type": "private",
|
|
"username": "saherelm_it_center",
|
|
"first_name": "فن آوران ساحر علم"
|
|
},
|
|
"forward_from_message_id": 0,
|
|
"forward_date": 0,
|
|
"edit_date": 0,
|
|
"text": "/start",
|
|
"entities": [
|
|
{
|
|
"type": "bot_command",
|
|
"offset": 0,
|
|
"length": 6
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
```
|
|
|
|
### Message
|
|
|
|
Request:
|
|
|
|
```json
|
|
{
|
|
"chatId": 442637838,
|
|
"text": "SaherElm IT Center Invites You to xBotProvider ...",
|
|
"replyMarkup": null,
|
|
"messageThreadId": 0,
|
|
"replyToMessageId": 0
|
|
}
|
|
```
|
|
|
|
Response:
|
|
|
|
```json
|
|
{
|
|
"message_id": 4,
|
|
"message_thread_id": 0,
|
|
"from": {
|
|
"id": 57317004,
|
|
"is_bot": true,
|
|
"last_name": "",
|
|
"username": "xsaherelmbot",
|
|
"first_name": "",
|
|
"has_topics_enabled": false,
|
|
"allows_users_to_create_topics": false
|
|
},
|
|
"date": 1794495172,
|
|
"chat": {
|
|
"id": 442637838,
|
|
"type": "private"
|
|
},
|
|
"forward_from_message_id": 0,
|
|
"forward_date": 0,
|
|
"edit_date": 0,
|
|
"text": "SaherElm IT Center Invites You to xBotProvider ..."
|
|
}
|
|
```
|