Skip to content

Commit c002afe

Browse files
committed
Fixes for refactoring after move to GitHub
1 parent 2f0e1fc commit c002afe

25 files changed

+68
-58
lines changed

composer.json

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "tii/laravel-telegram-bot",
2+
"name": "php-telegram-bot/laravel",
33
"description": "Integrates PHP Telegram Bot into Laravel.",
44
"license": "MIT",
55
"authors": [
@@ -8,11 +8,11 @@
88
"email": "mail@tii.one"
99
}
1010
],
11-
"homepage": "https://github.com/tii/laravel-telegram-bot",
11+
"homepage": "https://github.com/php-telegram-bot/laravel",
1212
"keywords": ["laravel", "telegram", "bot"],
1313
"require": {
1414
"illuminate/support": "~7|~8|~9",
15-
"longman/telegram-bot": "^0.77",
15+
"longman/telegram-bot": "^0.79",
1616
"ext-pcntl": "*"
1717
},
1818
"require-dev": {
@@ -21,22 +21,17 @@
2121
},
2222
"autoload": {
2323
"psr-4": {
24-
"Tii\\LaravelTelegramBot\\": "src/"
25-
}
26-
},
27-
"autoload-dev": {
28-
"psr-4": {
29-
"Tii\\LaravelTelegramBot\\Tests\\": "tests"
24+
"PhpTelegramBot\\Laravel\\": "src/"
3025
}
3126
},
3227
"extra": {
3328
"laravel": {
3429
"providers": [
35-
"Tii\\LaravelTelegramBot\\TelegramServiceProvider"
30+
"PhpTelegramBot\\Laravel\\TelegramServiceProvider"
3631
],
3732
"aliases": {
38-
"CallbackButton": "Tii\\LaravelTelegramBot\\Facades\\CallbackButton",
39-
"Telegram": "Tii\\LaravelTelegramBot\\Facades\\Telegram"
33+
"CallbackButton": "PhpTelegramBot\\Laravel\\Facades\\CallbackButton",
34+
"Telegram": "PhpTelegramBot\\Laravel\\Facades\\Telegram"
4035
}
4136
}
4237
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
5+
return new class extends Migration {
6+
public function up()
7+
{
8+
DB::unprepared(file_get_contents(__DIR__ . '/sql/0.77.1-0.78.0.sql'));
9+
}
10+
11+
public function down()
12+
{
13+
//
14+
}
15+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE `bot_user` ADD COLUMN `is_premium` tinyint(1) DEFAULT 0 COMMENT 'True, if this user is a Telegram Premium user' AFTER `language_code`;
2+
ALTER TABLE `bot_user` ADD COLUMN `added_to_attachment_menu` tinyint(1) DEFAULT 0 COMMENT 'True, if this user added the bot to the attachment menu' AFTER `is_premium`;

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This is where your description should go. Take a look at [contributing.md](contr
1212
Via Composer
1313

1414
``` bash
15-
$ composer require tii/laravel-telegram-bot
15+
$ composer require php-telegram-bot/laravel
1616
```
1717

1818
## Usage

src/Console/Commands/GeneratorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
namespace Tii\LaravelTelegramBot\Console\Commands;
4+
namespace PhpTelegramBot\Laravel\Console\Commands;
55

66

77
use Illuminate\Console\Command;

src/Console/Commands/MakeTelegramCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tii\LaravelTelegramBot\Console\Commands;
3+
namespace PhpTelegramBot\Laravel\Console\Commands;
44

55
use Illuminate\Support\Str;
66

src/Console/Commands/TelegramCloseCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tii\LaravelTelegramBot\Console\Commands;
3+
namespace PhpTelegramBot\Laravel\Console\Commands;
44

55
use Illuminate\Console\Command;
66
use Longman\TelegramBot\Request;

src/Console/Commands/TelegramDeleteWebhookCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tii\LaravelTelegramBot\Console\Commands;
3+
namespace PhpTelegramBot\Laravel\Console\Commands;
44

55
use Illuminate\Console\Command;
66
use Longman\TelegramBot\Request;

src/Console/Commands/TelegramFetchCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
namespace Tii\LaravelTelegramBot\Console\Commands;
4+
namespace PhpTelegramBot\Laravel\Console\Commands;
55

66

77
use Illuminate\Console\Command;

src/Console/Commands/TelegramLogoutCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tii\LaravelTelegramBot\Console\Commands;
3+
namespace PhpTelegramBot\Laravel\Console\Commands;
44

55
use Illuminate\Console\Command;
66
use Longman\TelegramBot\Request;

0 commit comments

Comments
 (0)