Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/morse/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
query {:url webhook-url}]
(http/get url {:as :json :query-params query})))

(defn delete-webhook
"Removes WebHook to stop receiving updates from chats"
[token]
(let [url (str base-url token "/deleteWebhook")]
(http/get url {:as :json})))

(defn get-file
"Gets url of the file"
Expand Down