diff options
Diffstat (limited to 'example/echo.scm')
-rw-r--r-- | example/echo.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/example/echo.scm b/example/echo.scm index 7afd5ae..2e190a7 100644 --- a/example/echo.scm +++ b/example/echo.scm @@ -27,5 +27,6 @@ (telebot:pollUpdates token (lambda (u) - (begin (print-message u) - (echo-message u)))) + (if (telebot:is-message? u) + (begin (print-message u) + (echo-message u))))) |