<commit_before># LaravelTelegram
A simple and lightweight Laravel 4 and 5 wrapper to interact with Telegram Bot.

## Get Started:
* First of all, you should create a Telegram Bot, you can use [Bot Father](https://core.telegram.org/bots#6-botfather) to do that;
* Create a Telegram chat room (group) and add the Bot to this group, now the Bot can send messages!

## Installation

The Laravel Telegram Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the
`ricardofontanelli/laravel-telegram` package in your project's `composer.json`.

```json
{
    "require": {
        "ricardofontanelli/laravel-telegram": "~1.0"
    }
}
```

Then run a composer update
```sh
php composer update
```

To use the Laravel Telegram Service Provider, you must register the provider when bootstrapping your application.

In Laravel find the `providers` key in your `config/app.php` and register the Laravel Telegram Service Provider.

```php
    'providers' => array(
        // ...
        LaravelTelegram\Providers\TelegramServiceProvider::class,
    )
```

Find the `aliases` key in your `config/app.php` and add the Laravel Telegram facade alias.

```php
    'aliases' => array(
        // ...
        'Telegram' => LaravelTelegram\Facades\Telegram::class,
    )
```

After that, run ```php artisan vendor:publish config```, to publish the Telegram config file, you must to provide you Telegram Bot credentials and chat room information.

Now you can use it by ```php artisan tinker``` and run ```Telegram::async()->sendMessage(\Config::get('telegram.chats.default'), 'Test message');```<commit_msg>ADD composer.json<commit_after># LaravelTelegram
A simple and lightweight Laravel 4 and 5 wrapper to interact with Telegram Bot.

## Get Started:
* First of all, you should create a Telegram Bot, you can use [Bot Father](https://core.telegram.org/bots#6-botfather) to do that;
* Create a Telegram chat room (group) and add the Bot to this group, now the Bot can send messages!
* Open the ```config/telegram.php``` and provide all the information;

## Installation

The Laravel Telegram Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the
`ricardofontanelli/laravel-telegram` package in your project's `composer.json`.

```json
{
    "require": {
        "ricardofontanelli/laravel-telegram": "~1.0"
    }
}
```

Then run a composer update
```sh
php composer update
```

To use the Laravel Telegram Service Provider, you must register the provider when bootstrapping your application.

In Laravel find the `providers` key in your `config/app.php` and register the Laravel Telegram Service Provider.

```php
    'providers' => array(
        // ...
        LaravelTelegram\Providers\TelegramServiceProvider::class,
    )
```

Find the `aliases` key in your `config/app.php` and add the Laravel Telegram facade alias.

```php
    'aliases' => array(
        // ...
        'Telegram' => LaravelTelegram\Facades\Telegram::class,
    )
```

After that, run ```php artisan vendor:publish config```, to publish the Telegram config file, you must to provide you Telegram Bot credentials and chat room information.

Now you can use it by ```php artisan tinker``` and run: 

```php 
Telegram::async()->sendMessage(\Config::get('telegram.chats.default'), 'Test message');
```
{'fraction_non_alphanumeric': 0.11442336645588679, 'fraction_numerical': 0.0030111412225233363, 'mean_word_length': 4.040971168437026, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1475517', 'n_tokens_mistral': 1004, 'n_tokens_neox': 968, 'n_words': 371}