Liking cljdoc? Tell your friends :D

tg-bot-api.telegram

Telegram HTTP API.

Telegram HTTP API.
raw docstring

->multipartclj

(->multipart params)
source

answer-callback-queryclj

(answer-callback-query config callback-query-id)
(answer-callback-query config
                       callback-query-id
                       {:keys [url text show-alert? cache-time]})
https://core.telegram.org/bots/api#answercallbackquery
sourceraw docstring

api-requestclj

(api-request {:keys [token user-agent timeout keepalive test-server
                     local-server]}
             api-method
             http-method
             params)
source

ban-userclj

(ban-user config chat-id user-id)
(ban-user config chat-id user-id {:keys [until-date revoke-messages]})
https://core.telegram.org/bots/api#banchatmember
sourceraw docstring

chat-permission-typesclj

source

chat-permissions-offclj

source

chat-permissions-onclj

source

copy-messageclj

(copy-message config chat-id from-chat-id message-id)
(copy-message config
              chat-id
              from-chat-id
              message-id
              {:keys [message-thread-id caption parse-mode caption-entities
                      disable-notification protect-content reply-to-message-id
                      allow-sending-without-reply reply-markup]})
https://core.telegram.org/bots/api#copymessage
sourceraw docstring

(create-chat-invite-link config chat-id)
(create-chat-invite-link config
                         chat-id
                         {:keys [link-name expire-date member-limit
                                 creates-join-request?]})
https://core.telegram.org/bots/api#createchatinvitelink
sourceraw docstring

delete-messageclj

(delete-message config chat-id message-id)
https://core.telegram.org/bots/api#deletemessage
sourceraw docstring

edit-message-captionclj

(edit-message-caption config chat-id message-id caption)
(edit-message-caption config
                      chat-id
                      message-id
                      caption
                      {:keys [parse-mode caption-entities reply-markup]})
https://core.telegram.org/bots/api#editmessagecaption
sourceraw docstring

edit-message-photoclj

(edit-message-photo config chat-id message-id photo)
(edit-message-photo config chat-id message-id photo {:keys [reply-markup]})
https://core.telegram.org/bots/api#editmessagemedia
sourceraw docstring

edit-message-textclj

(edit-message-text config chat-id message-id text)
(edit-message-text config
                   chat-id
                   message-id
                   text
                   {:keys [parse-mode entities disable-web-page-preview
                           reply-markup]})
https://core.telegram.org/bots/api#editmessagetext
sourceraw docstring

encode-paramsclj

(encode-params params)

JSON-encode complex values of a map.

JSON-encode complex values of a map.
sourceraw docstring

file->nameclj

(file->name file)
source

file?clj

(file? x)
source

filter-paramsclj

(filter-params params)

Filter out nil values from a map.

Filter out nil values from a map.
sourceraw docstring

get-chatclj

(get-chat config chat-id)
https://core.telegram.org/bots/api#getchat
sourceraw docstring

get-fileclj

(get-file config file-id)
source

get-meclj

(get-me config)
https://core.telegram.org/bots/api#getme
sourceraw docstring

get-updatesclj

(get-updates config)
(get-updates config {:keys [limit offset timeout allowed-updates]})
https://core.telegram.org/bots/api#getupdates
sourceraw docstring

input-stream?clj

(input-stream? x)
source

media->multipart-readyclj

(media->multipart-ready media)
source

restrict-userclj

(restrict-user config chat-id user-id permissions)
(restrict-user config chat-id user-id permissions {:keys [until_date]})
source

send-documentclj

(send-document config chat-id document)
(send-document config
               chat-id
               document
               {:keys [message-thread-id thumbnail caption parse-mode
                       caption-entities disable-content-type-detection
                       disable-notification protect-content reply-to-message-id
                       allow-sending-without-reply reply-markup]})
https://core.telegram.org/bots/api#senddocument
sourceraw docstring

send-media-groupclj

(send-media-group config chat-id media)
(send-media-group config
                  chat-id
                  media
                  {:keys [message-thread-id disable-notification protect-content
                          reply-to-message-id allow-sending-without-reply]})
https://core.telegram.org/bots/api#sendmediagroup
sourceraw docstring

send-messageclj

(send-message config chat-id text)
(send-message config
              chat-id
              text
              {:keys [parse-mode entities disable-web-page-preview
                      disable-notification protect-content reply-to-message-id
                      allow-sending-without-reply reply-markup]})
https://core.telegram.org/bots/api#sendmessage
sourceraw docstring

send-photoclj

(send-photo config chat-id photo)
(send-photo config
            chat-id
            photo
            {:keys [message-thread-id caption parse-mode caption-entities
                    has-spoiler disable-notification protect-content
                    reply-to-message-id allow-sending-without-reply
                    reply-markup]})
https://core.telegram.org/bots/api#sendphoto
sourceraw docstring

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

× close