Skip to content

Instantly share code, notes, and snippets.

@delivrance
Created October 9, 2018 16:15
Show Gist options
  • Save delivrance/6a6b27fbeb6f48bed36bc2812dfe162a to your computer and use it in GitHub Desktop.
Save delivrance/6a6b27fbeb6f48bed36bc2812dfe162a to your computer and use it in GitHub Desktop.
Pyrogram example written in Hy
;; Example ported from https://github.com/pyrogram/pyrogram
(import [pyrogram [Client Filters]])
(setv app (Client "my_account"))
(with-decorator (.on_message app (. Filters private))
(defn hello [client message]
(.reply message (.format "Hello {}" (. message from_user first_name)))))
(.run app)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment