def sendPhoto(chat_id, image_file):
    resp = multipart.post_multipart('https://a...content-available-to-author-only...m.org/botbottokens/' + 'sendPhoto', [
        ('chat_id', str(chat_id)),
        ('caption', 'Image'),
    ], [
        ('photo', 'image_file', output.getvalue()),
    ])