In this post, you will learn how to make a simple cryptocurrency Telegram bot.
You can contact me with Telegram if you need to hire a full stack b...
For further actions, you may consider blocking this person and/or reporting abuse
Hi, I got this error, is there any solution? Thank you so much.
thread 'tokio-runtime-worker' panicked at 'Cannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.
Did you use the exact same version of tokio crate used for this post?
tokio = { version = "1.3", features = ["rt-multi-thread", "macros"]I asked the author of Teloxide and he told me no recent change currently. So, it could be relevant to the tokio crate.
Yes, I used your code completely, without any changes.
I have just confirmed that it is not a Tokio version issue, I used "=1.3.0", and I tried Ubuntu(x86), Windows, MacOS (M1), all with the same error :(
What rust version you used? (I used rustup 1.24.1) I think it can be better to get help from the teloxide Telegram group.
Did you make the dice example work first?
If you can, please join the group t.me/teloxide and ask questions there. I think it can save your time much better. There are more experienced one and authors that can help you to solve that issue all long.
Ok, I'm using version 1.24.3, and I can use dice example as well as binance's example
Ok, so is everything ok now?
@steadylearner It is impossible that the code above works. For the simple reason that @Scy has mentioned.
We need a async version of binance-re, thee are two repo, that they have done it, I made my own solution.
Ok, can you share the code or repository that works?
I invited you to the github repo, I got the initial code from openlimits. Their code was not working and even if we could there were lot of mismatching in versions of libraries so I copied it and remove some unnecessary part of their code and fixed the versions. In long run I like to improve it as I really need it for my trading algos. My algos are not fully automatic so I need a telgram bot that generates some alerts for me.
Thank you for your initial code.
Ok, I accepted, can you contact me with t.me/steadylearner and explain what can be done by me to help you?