Replies: 2 comments 1 reply
-
I understood that you will receive a form from a web page, and this form contains the user’s ID and you want to send a message to him, correct? |
Beta Was this translation helpful? Give feedback.
1 reply
-
This question is not about teloxide, it's about dependency injection / managing state in Rocket. You can refer to Rocket's documentation: https://rocket.rs/v0.5-rc/guide/state/. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm trying to create a function that will send a message to users when receiving data from a web form. I am interested in whether it is possible to pass a bot to a function without an argument.
If the bot is passed as an argument to async fn test_message_data, then it (the bot) must be specified in the arguments in async fn post.
async fn post works with the Rocket crate and cannot accept teloxide. How to implement the bot transfer?
Beta Was this translation helpful? Give feedback.
All reactions