(delete-message user mid)
Delete message with ID mid
for user
Delete message with ID `mid` for `user`
(get-file file-id)
Returns java.io.File
or nil
by file-id
.
Returns `java.io.File` or `nil` by `file-id`.
(send-invoice user data text)
(send-invoice user data text kbd)
Sends invoice as 'temporal' message with inline keyboard kbd
to user
. Keyboard will have payment button with 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) |
Sends invoice as 'temporal' message with inline keyboard `kbd` to `user`. Keyboard will have payment button with `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)
(send-message user & args)
Sends text message to user
.
Varargs by type:
argument predicate | description | comment |
---|---|---|
string? | Message text | |
vector? | Message keyboard | |
set? | Set of Message Entities | |
int? | ID of Text Message to edit | |
keyword? | One of options |
Possible Options:
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 |
Sends text message to `user`. Varargs by type: | argument predicate | description | comment | |----------------------------------|--------------|---------| | `string?` | Message text | | | `vector?` | Message keyboard | | | `set?` | Set of Message Entities | | | `int?` | ID of Text Message to edit | | | `keyword?` | One of options | | Possible Options: | 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 | |
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close