Liking cljdoc? Tell your friends :D

tg-bot-api.telegram

Telegram HTTP API.

Telegram HTTP API.
raw docstring

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
raw docstring

api-requestclj

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

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
raw docstring

chat-permission-typesclj


chat-permissions-offclj


chat-permissions-onclj


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
raw 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
raw docstring

delete-messageclj

(delete-message config chat-id message-id)
https://core.telegram.org/bots/api#deletemessage
raw 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
raw 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
raw 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
raw docstring

encode-paramsclj

(encode-params params)

JSON-encode complex values of a map.

JSON-encode complex values of a map.
raw docstring

filter-paramsclj

(filter-params params)

Filter out nil values from a map.

Filter out nil values from a map.
raw docstring

get-chatclj

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

get-fileclj

(get-file config file-id)

get-meclj

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

get-updatesclj

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

restrict-userclj

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

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
raw 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
raw 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
raw docstring

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

× close