Skip to content

Trying to use not-lambda function with repl results in runtime rror #734

Answered by WaffleLapkin
Amomum asked this question in Q&A
Discussion options

You must be logged in to vote

I think the problem isn't the lambda/function, but instead it's that the bot types that you are giving to the repl and then requesting from it don't match:

teloxide_core::adaptors::auto_send::AutoSend<teloxide_core::bot::Bot> was requested, but not provided.
Available types: teloxide_core::bot::Bot

You either need to make bot: Bot argument or use the auto send adapter:

let bot = bot.auto_send();

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@Amomum
Comment options

Comment options

You must be logged in to vote
5 replies
@Amomum
Comment options

@Hirrolot
Comment options

@Amomum
Comment options

@Hirrolot
Comment options

@Amomum
Comment options

Answer selected by Hirrolot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants