Telegram HTTP API.
Telegram HTTP API.
(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
(api-request {:keys [token user-agent timeout keepalive test-server
local-server]}
api-method
http-method
params)
(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
(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
(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
(delete-message config chat-id message-id)
https://core.telegram.org/bots/api#deletemessage
(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
(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
(encode-params params)
JSON-encode complex values of a map.
JSON-encode complex values of a map.
(filter-params params)
Filter out nil values from a map.
Filter out nil values from a map.
(get-updates config)
(get-updates config {:keys [limit offset timeout allowed-updates]})
https://core.telegram.org/bots/api#getupdates
(restrict-user config chat-id user-id permissions)
(restrict-user config chat-id user-id permissions {:keys [until_date]})
(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
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close