Closed ayush000 closed 3 years ago
Sorry by chat-id you mean telegram id right? :o From this I can't quite identify what's wrong but perhaps you could look at my implementation of a angel and mortal bot https://github.com/zackteo/Angel-N-Mortal-telebot
Hi, I ran into the same issue. Fixed it by removing my own dependency on [clj-http "3.10.1"]
. Don't have time to further investigate what's exactly going wrong right now. But maybe this will also fix it for you.
Thanks @Sandarr95. That worked. I'm no longer getting the exception.
I tried sending the message as per the example in the docs
When I run the code using
TELEGRAM_TOKEN="..." TELEGRAM_CHAT_ID="..." lein run
, although I receive the message on my telegram, I get the exception (attached below). It seems it's trying to parse a JSON that isn't valid. When I comment the above line of code, everything is working.