Closed robatipoor closed 5 years ago
You can find an example for a document here https://github.com/bytesnake/telebot/blob/master/examples/send_self.rs. The procedure is the same, you just replace the document with photo.
document
photo
let handle = bot.new_cmd("/send_self") .and_then(|(bot, msg)| bot.photo(msg.chat.id).file("photo.png").send()) .for_each(|_| Ok(()));
If you have further questions, please reopen the issue :)
thank you
You can find an example for a document here https://github.com/bytesnake/telebot/blob/master/examples/send_self.rs. The procedure is the same, you just replace the
document
withphoto
.If you have further questions, please reopen the issue :)