Telegram avatar

Telegram

Try for free

1 day trial then $5.00/month - No credit card required now

Go to Store
Telegram

Telegram

canadesk/telegram
Try for free

1 day trial then $5.00/month - No credit card required now

Collect Profiles and Messages from Telegram. It's fast and costs little!

You can access the Telegram programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "1.4",
5    "x-build-id": "RKzRAgYq4lfwnhnqK"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/canadesk~telegram/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-canadesk-telegram",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/canadesk~telegram/runs": {
50      "post": {
51        "operationId": "runs-sync-canadesk-telegram",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/canadesk~telegram/run-sync": {
93      "post": {
94        "operationId": "run-sync-canadesk-telegram",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "required": [
134          "operation",
135          "profiles"
136        ],
137        "properties": {
138          "operation": {
139            "title": "Process",
140            "enum": [
141              "gp",
142              "gm"
143            ],
144            "type": "string",
145            "description": "",
146            "default": "gm"
147          },
148          "profiles": {
149            "title": "Profiles",
150            "type": "array",
151            "description": "The profiles to look for. Must be exact.",
152            "items": {
153              "type": "string"
154            }
155          },
156          "scrolltime": {
157            "title": "Maximum pages",
158            "minimum": 1,
159            "maximum": 20,
160            "type": "integer",
161            "description": "Number of pages to collect messages from.",
162            "default": 1
163          },
164          "retry": {
165            "title": "Settings - Maximum retries",
166            "minimum": 0,
167            "maximum": 3,
168            "type": "integer",
169            "description": "",
170            "default": 0
171          },
172          "delay": {
173            "title": "Settings - Delay",
174            "minimum": 3,
175            "maximum": 30,
176            "type": "integer",
177            "description": "Waiting time between requests.",
178            "default": 3
179          },
180          "proxy": {
181            "title": "Proxy configuration",
182            "type": "object",
183            "description": "Select proxies to be used by your crawler."
184          }
185        }
186      },
187      "runsResponseSchema": {
188        "type": "object",
189        "properties": {
190          "data": {
191            "type": "object",
192            "properties": {
193              "id": {
194                "type": "string"
195              },
196              "actId": {
197                "type": "string"
198              },
199              "userId": {
200                "type": "string"
201              },
202              "startedAt": {
203                "type": "string",
204                "format": "date-time",
205                "example": "2025-01-08T00:00:00.000Z"
206              },
207              "finishedAt": {
208                "type": "string",
209                "format": "date-time",
210                "example": "2025-01-08T00:00:00.000Z"
211              },
212              "status": {
213                "type": "string",
214                "example": "READY"
215              },
216              "meta": {
217                "type": "object",
218                "properties": {
219                  "origin": {
220                    "type": "string",
221                    "example": "API"
222                  },
223                  "userAgent": {
224                    "type": "string"
225                  }
226                }
227              },
228              "stats": {
229                "type": "object",
230                "properties": {
231                  "inputBodyLen": {
232                    "type": "integer",
233                    "example": 2000
234                  },
235                  "rebootCount": {
236                    "type": "integer",
237                    "example": 0
238                  },
239                  "restartCount": {
240                    "type": "integer",
241                    "example": 0
242                  },
243                  "resurrectCount": {
244                    "type": "integer",
245                    "example": 0
246                  },
247                  "computeUnits": {
248                    "type": "integer",
249                    "example": 0
250                  }
251                }
252              },
253              "options": {
254                "type": "object",
255                "properties": {
256                  "build": {
257                    "type": "string",
258                    "example": "latest"
259                  },
260                  "timeoutSecs": {
261                    "type": "integer",
262                    "example": 300
263                  },
264                  "memoryMbytes": {
265                    "type": "integer",
266                    "example": 1024
267                  },
268                  "diskMbytes": {
269                    "type": "integer",
270                    "example": 2048
271                  }
272                }
273              },
274              "buildId": {
275                "type": "string"
276              },
277              "defaultKeyValueStoreId": {
278                "type": "string"
279              },
280              "defaultDatasetId": {
281                "type": "string"
282              },
283              "defaultRequestQueueId": {
284                "type": "string"
285              },
286              "buildNumber": {
287                "type": "string",
288                "example": "1.0.0"
289              },
290              "containerUrl": {
291                "type": "string"
292              },
293              "usage": {
294                "type": "object",
295                "properties": {
296                  "ACTOR_COMPUTE_UNITS": {
297                    "type": "integer",
298                    "example": 0
299                  },
300                  "DATASET_READS": {
301                    "type": "integer",
302                    "example": 0
303                  },
304                  "DATASET_WRITES": {
305                    "type": "integer",
306                    "example": 0
307                  },
308                  "KEY_VALUE_STORE_READS": {
309                    "type": "integer",
310                    "example": 0
311                  },
312                  "KEY_VALUE_STORE_WRITES": {
313                    "type": "integer",
314                    "example": 1
315                  },
316                  "KEY_VALUE_STORE_LISTS": {
317                    "type": "integer",
318                    "example": 0
319                  },
320                  "REQUEST_QUEUE_READS": {
321                    "type": "integer",
322                    "example": 0
323                  },
324                  "REQUEST_QUEUE_WRITES": {
325                    "type": "integer",
326                    "example": 0
327                  },
328                  "DATA_TRANSFER_INTERNAL_GBYTES": {
329                    "type": "integer",
330                    "example": 0
331                  },
332                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
333                    "type": "integer",
334                    "example": 0
335                  },
336                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
337                    "type": "integer",
338                    "example": 0
339                  },
340                  "PROXY_SERPS": {
341                    "type": "integer",
342                    "example": 0
343                  }
344                }
345              },
346              "usageTotalUsd": {
347                "type": "number",
348                "example": 0.00005
349              },
350              "usageUsd": {
351                "type": "object",
352                "properties": {
353                  "ACTOR_COMPUTE_UNITS": {
354                    "type": "integer",
355                    "example": 0
356                  },
357                  "DATASET_READS": {
358                    "type": "integer",
359                    "example": 0
360                  },
361                  "DATASET_WRITES": {
362                    "type": "integer",
363                    "example": 0
364                  },
365                  "KEY_VALUE_STORE_READS": {
366                    "type": "integer",
367                    "example": 0
368                  },
369                  "KEY_VALUE_STORE_WRITES": {
370                    "type": "number",
371                    "example": 0.00005
372                  },
373                  "KEY_VALUE_STORE_LISTS": {
374                    "type": "integer",
375                    "example": 0
376                  },
377                  "REQUEST_QUEUE_READS": {
378                    "type": "integer",
379                    "example": 0
380                  },
381                  "REQUEST_QUEUE_WRITES": {
382                    "type": "integer",
383                    "example": 0
384                  },
385                  "DATA_TRANSFER_INTERNAL_GBYTES": {
386                    "type": "integer",
387                    "example": 0
388                  },
389                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
390                    "type": "integer",
391                    "example": 0
392                  },
393                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
394                    "type": "integer",
395                    "example": 0
396                  },
397                  "PROXY_SERPS": {
398                    "type": "integer",
399                    "example": 0
400                  }
401                }
402              }
403            }
404          }
405        }
406      }
407    }
408  }
409}

Telegram OpenAPI definition

OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.

OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.

By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.

You can download the OpenAPI definitions for Telegram from the options below:

If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.

You can also check out our other API clients:

Developer
Maintained by Community

Actor Metrics

  • 26 monthly users

  • 6 stars

  • >99% runs succeeded

  • 10 hours response time

  • Created in May 2024

  • Modified 2 months ago