Skip to content

Instantly share code, notes, and snippets.

@jonnywilliamson
Created September 10, 2015 18:42
Show Gist options
  • Select an option

  • Save jonnywilliamson/64feef946def79741b25 to your computer and use it in GitHub Desktop.

Select an option

Save jonnywilliamson/64feef946def79741b25 to your computer and use it in GitHub Desktop.
Route::get('/bot', function (\Telegram\Bot\Api $telegram) {
$facade = Telegram::getAccessToken();
echo "Facade says: $facade <br />";
$di = $telegram->getAccessToken();
echo "DI says says: $di <br />";
$tg = app('\Telegram\Bot\Api');
$make = $tg->getAccessToken();
echo "App make says: $make <br />";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment