Closed bugworm closed 6 years ago
Hey, the structure of telebot is a bit complicated, because everything is async. If you just call the corresponding function, you get a struct which contains all configurations for the method call. You need to call send() on it and then feed the result to the event loop. You can do it in the same way as you call bot.message(..).send() in examples/reply.rs. I hope this will help you, just ask if you have further questions.
Got it, thanks
I'm a bit confused. Telegram documentation says:
On success, returns an Array of ChatMember objects
, function.rs has#[answer = "Vector<objects::ChatMember>"]
, but it returns metelebot::functions::WrapperGetChatAdministrators
. I can'tunwrap()
it, I can't usefor
, and I don't sure what I can do with it.also error about iterator