Closed asonix closed 6 years ago
I get the same error when I try to run the send_self example btw
Thank you for the report, the form-data was serialized with the corresponding types and the chat_id number was therefore invalid https://github.com/bytesnake/telebot/blob/master/src/bot.rs#L93. The commit b3702d2 should fix the problem. By the way you don't need to convert the buffer to a file, you can just pass it to the file function as a tuple. See the example in https://github.com/bytesnake/telebot/blob/master/examples/send_memory.rs. Have a nice day! (I will try to update the version number to 0.2.4)
I'm trying to upload a file I have stored in memory as a
Vec<u8>
, so here's my ideaand I get back the following error:
Am I doing something wrong, or is this a bug?