Liking cljdoc? Tell your friends :D

cloregram.api


delete-messageclj

(delete-message user mid)

Delete message with ID mid for user

Delete message with ID `mid` for `user`
sourceraw docstring

get-fileclj

(get-file file-id)

Returns java.io.File or nil by file-id.

Returns `java.io.File` or `nil` by `file-id`.
sourceraw docstring

send-documentclj

(send-document user file caption kbd & opts)

Sends java.io.File in file as a temporary message with caption caption and inline keyboard kbd to user. Possible opts:

optiondescriptioncomment
:markdownMesssage will use Markdown parse_mode
Long valueTemporal Message ID you want to edit. It must be media message. nil as kbd value then means to leave keyboard layout unchangedsince 0.9.0
Sends java.io.File in `file` as a temporary message with caption `caption` and inline keyboard `kbd` to `user`.
Possible `opts`:

| option      | description | comment |
|-------------|-------------|---------|
| `:markdown` | Messsage will use Markdown parse_mode | |
| Long value  | Temporal Message ID you want to edit. It must be media message. `nil` as `kbd` value then means to leave keyboard layout unchanged | since 0.9.0 |
sourceraw docstring

send-invoiceclj

(send-invoice user data pay-text kbd)

Sends invoice as 'temporal' message with inline keyboard kbd to user. Keyboard will have payment button with pay-text in the beginning and button to delete it in the end. Description of data map (all keys required):

keydescription
:titleProduct name, 1-32 characters
:descriptionProduct description, 1-255 characters
:payloadBot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
:provider_tokenPayment provider token
:currencyThree-letter ISO 4217 currency code
:pricesPrice breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Each component have to be map with keys :label (string) and :amount (integer price of the product in the smallest units of the currency)
Sends invoice as 'temporal' message with inline keyboard `kbd` to `user`. Keyboard will have payment button with `pay-text` in the beginning and button to delete it in the end.
Description of `data` map (all keys required):

| key               | description |
|-------------------|-------------|
| `:title`          | Product name, 1-32 characters
| `:description`    | Product description, 1-255 characters
| `:payload`        | Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
| `:provider_token` | Payment provider token
| `:currency`       | Three-letter ISO 4217 currency code
| `:prices`         | Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Each component have to be map with keys `:label` (string) and `:amount` (integer price of the product in the smallest units of the currency)
sourceraw docstring

send-messageclj

(send-message user text kbd & opts)

Sends text message with content text and inline keyboard kbd to user. Possible opts:

optiondescriptioncomment
:tempSends 'temporal' message that appears with notification under 'main' one. This message will have button to delete it in the end
:markdownMesssage will use Markdown parse_mode
Long valueTemporal Message ID you want to edit. It must be text message. nil as kbd value then means to leave keyboard layout unchangedsince 0.9.0
Sends text message with content `text` and inline keyboard `kbd` to `user`.
Possible `opts`:

| option      | description | comment |
|-------------|-------------|---------|
| `:temp`     | Sends 'temporal' message that appears with notification under 'main' one. This message will have button to delete it in the end | |
| `:markdown` | Messsage will use Markdown parse_mode | |
| Long value  | Temporal Message ID you want to edit. It must be text message. `nil` as `kbd` value then means to leave keyboard layout unchanged | since 0.9.0 |
sourceraw docstring

send-photoclj

(send-photo user file caption kbd & opts)

Sends photo message with picture from java.io.File in file as a temporary message with caption caption and inline keyboard kbd to user. Possible opts:

optiondescription
:markdownMesssage will use Markdown parse_mode
Long valueTemporal Message ID you want to edit. It must be media message. nil as kbd value then means to leave keyboard layout unchanged
Sends photo message with picture from java.io.File in `file` as a temporary message with caption `caption` and inline keyboard `kbd` to `user`.
Possible `opts`:

| option      | description |
|-------------|-------------|
| `:markdown` | Messsage will use Markdown parse_mode |
| Long value  | Temporal Message ID you want to edit. It must be media message. `nil` as `kbd` value then means to leave keyboard layout unchanged |
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close