-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example poll.rs: thread 'main' panicked at 'there is no timer running, must be called from the context of a Tokio 0.2.x runtime' #270
Comments
Are you using an async tokio::main main as an entry point? |
yes of course same as in example
|
Same problem for me, here's my [package]
name = "telegram-bot-sample"
version = "0.1.0"
edition = "2021"
[dependencies]
anyhow = "1.0"
tokio = { version = "1.2", features = ["full"] }
futures = "0.3"
telegram-bot = "0.8" |
Root causeI run cargo tree and see that latest version(0.8) on crates.io is published about 2 years ago and depends on
Potential solutions for this problem
I can confirm that second option worked for me. I hope @robertpauson or @gugahoa can publish new version. |
Same issue for me [dependencies]
telegram-bot = "0.8.0"
tokio = { version = "1.26.0", features = ["fs", "rt", "macros", "rt-multi-thread"]}
futures = { version = "0.3.26", default-features = false }
dotenv = "0.15.0" |
My Cargo.toml:
The text was updated successfully, but these errors were encountered: