def METHOD_NAME():
    with patch("salt.beacons.telegram_bot_msg.telegram") as telegram_api:
        token = "abc"
        username = "tester"
        config = [{"token": token, "accept_from": [username]}]
        inst = MagicMock(name="telegram.Bot()")
        telegram_api.Bot = MagicMock(name="telegram", return_value=inst)
        user = telegram.User(id=1, first_name="", username=username, is_bot=True)
        chat = telegram.Chat(1, "private", username=username)
        date = time.mktime(datetime.datetime(2016, 12, 18, 0, 0).timetuple())
        message = telegram.Message(message_id=1, from_user=user, date=date, chat=chat)
        update = telegram.update.Update(update_id=1, message=message)
        inst.get_updates.return_value = [update]
        ret = telegram_bot_msg.validate(config)
        assert ret == (True, "Valid beacon configuration.")
        ret = telegram_bot_msg.beacon(config)
        telegram_api.Bot.assert_called_once_with(token)
        assert ret
        assert ret[0]["msgs"][0] == message.to_dict()