mirror of
https://github.com/vale981/cl-scrape-telegram-api
synced 2025-03-05 08:11:37 -05:00
20 lines
626 B
Markdown
20 lines
626 B
Markdown
![]() |
# CL-SCRAPE-TELEGRAM-API
|
||
|
|
||
|
Scrapes the online [api reference](https://core.telegram.org/bots/api)
|
||
|
for methods an type definitions. The scraped methods and types are
|
||
|
transformed into lisp `functions` and `classes` to be used in the
|
||
|
`cl-telegram` package.
|
||
|
|
||
|
## Usage
|
||
|
1. Use the command line utility `generate-api.ros [output-file]
|
||
|
[api-url]` with both args optional.
|
||
|
2. Load the system in the repl and execute `(tg-scrape:scrape-to-disk)`.
|
||
|
```lisp
|
||
|
(ql:quickload :cl-scrape-telegram-api)
|
||
|
(tg-scrape:scrape-to-disk :out-file "file.lisp")
|
||
|
```
|
||
|
|
||
|
## Todo
|
||
|
- Generate type checking for arrays
|
||
|
- Generate constructors
|