Send a Telegram message with the data.

    :param ret:     The data to be sent.
    :return:        Boolean if message was sent successfully.

def returner(ret):
    '''
    Send a Telegram message with the data.

    :param ret:     The data to be sent.
    :return:        Boolean if message was sent successfully.
    '''
    _options = _get_options(ret)

    chat_id = _options.get('chat_id')
    token = _options.get('token')

    if not chat_id:
        log.error('telegram.chat_id not defined in salt config')
    if not token:
        log.error('telegram.token not defined in salt config')

    returns = ret.get('return')

    message = ('id: {0}\r\n'
               'function: {1}\r\n'
               'function args: {2}\r\n'
               'jid: {3}\r\n'
               'return: {4}\r\n').format(
                    ret.get('id'),
                    ret.get('fun'),
                    ret.get('fun_args'),
                    ret.get('jid'),
                    returns)

    return __salt__['telegram.post_message'](message,
                                             chat_id=chat_id,
                                             token=token)