Created
October 9, 2018 16:15
-
-
Save delivrance/6a6b27fbeb6f48bed36bc2812dfe162a to your computer and use it in GitHub Desktop.
Pyrogram example written in Hy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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