def send_image(self, recipient, path):

        '''
            Send Image

            Sends a an image to a Telegram Recipient. The image needs
            to be readable to the telegram-cli instance where the
            socket is created.
            From telegram-cli:
                send_photo <peer> <file>        Sends photo to peer

            --
            @param  recipient:str   The telegram recipient the message is intended
                                    for. Can be either a Person or a Group.
            @param  path:str        The full path to the image to send.
            @return None
        '''

        payload = 'send_photo {recipient} {path}'.format(
            recipient = strings.escape_recipient(recipient),
            path = path
        )
        self._send(payload)

        return
def send_image ( self , recipient , path ) : payload = 'send_photo {recipient} {path}' . format ( recipient = strings . escape_recipient ( recipient ) , path = path ) self . _send ( payload ) return
Send Image

            Sends a an image to a Telegram Recipient. The image needs
            to be readable to the telegram-cli instance where the
            socket is created.
            From telegram-cli:
                send_photo <peer> <file>        Sends photo to peer

            --
            @param  recipient:str   The telegram recipient the message is intended
                                    for. Can be either a Person or a Group.
            @param  path:str        The full path to the image to send.
            @return None