Photodotbot : The bot.send_photo method accepts as photo parameter either a file object or an id of the file on the telegram's server, so you should pass something like open(pic, rb) instead of simply pic.

Join the conversation
Post a Comment
Top comments
Newest first
Table of Contents
Link copied successfully.