2019-08-14 11:23:56 +02:00
|
|
|
# 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)`.
|
2019-08-14 11:26:22 +02:00
|
|
|
```common-lisp
|
2019-08-14 11:23:56 +02:00
|
|
|
(ql:quickload :cl-scrape-telegram-api)
|
|
|
|
(tg-scrape:scrape-to-disk :out-file "file.lisp")
|
|
|
|
```
|
|
|
|
|
|
|
|
## Todo
|
|
|
|
- Generate type checking for arrays
|
|
|
|
- Generate constructors
|