bytesnake/telebot

how upload photo from disk ?

robatipoor opened this issue · 2 comments

how upload photo from disk ?

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.

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