Hi, I’ve just released the first officially available version of Telegex,
0.1.0. It can be used to build Telegram bots, and supports the latest bot API version 4.9 (and will keep the latest version supported).
There are two existing libraries, Nadia and ExGram, which are also very good, but I’m trying to make it easier to get to the root of the problem with the to replace them, and it worked.
Telegex not only supports all methods of bot API, but also has perfect typespecs. You can even see the name of each optional field.
For the method of including attachments, it can automatically determine whether the attachment is a remote file ID or a local file. And automatically correct to attach-syntax (when a method contains multiple attachments, it is necessary, but you only need to simply provide the file path).
And, it is very safe to pattern match the return value of Telegex, because it returns the model struct instead of map.
I love Elixir, I love Telegram