def send_message(key, channel_loc, message, get_info):
    """
    Bot will send a message to Slack
    :param channel where the message wants to be send.
        :type str
    :param message that wants to be sent to Slack
        :type str
    :param see return
        :type boolean
    :return will return the action's data only if get_info is True
        :type dictonary
    """
    sc = key
    action = sc.api_call(
        "chat.postMessage",
        channel=channel_loc,
        text=message,
        as_user="false"
    )
    if action["ok"]:
        print("Poll has been posted")
    elif not action["ok"]:
        print("Error posting message")
    if get_info:
        return action