to get the file.
23 | */
24 | class File extends Entity
25 | {
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Monolog\Handler;
13 |
14 | use Monolog\TestCase;
15 |
16 | /**
17 | * @covers Monolog\Handler\SamplingHandler::handle
18 | */
19 | class SamplingHandlerTest extends TestCase
20 | {
21 | public function testHandle()
22 | {
23 | $testHandler = new TestHandler();
24 | $handler = new SamplingHandler($testHandler, 2);
25 | for ($i = 0; $i < 10000; $i++) {
26 | $handler->handle($this->getRecord());
27 | }
28 | $count = count($testHandler->getRecords());
29 | // $count should be half of 10k, so between 4k and 6k
30 | $this->assertLessThan(6000, $count);
31 | $this->assertGreaterThan(4000, $count);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/composer/platform_check.php:
--------------------------------------------------------------------------------
1 | = 80100)) {
8 | $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
9 | }
10 |
11 | if ($issues) {
12 | if (!headers_sent()) {
13 | header('HTTP/1.1 500 Internal Server Error');
14 | }
15 | if (!ini_get('display_errors')) {
16 | if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
17 | fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
18 | } elseif (!headers_sent()) {
19 | echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
20 | }
21 | }
22 | trigger_error(
23 | 'Composer detected issues in your platform: ' . implode(' ', $issues),
24 | E_USER_ERROR
25 | );
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/ChatLocation.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities;
13 |
14 | /**
15 | * Class ChatLocation
16 | *
17 | * Represents a location to which a chat is connected.
18 | *
19 | * @link https://core.telegram.org/bots/api#chatlocation
20 | *
21 | * @method Location getLocation() The location to which the supergroup is connected. Can't be a live location.
22 | * @method string getAddress() Location address; 1-64 characters, as defined by the chat owner
23 | */
24 | class ChatLocation extends Entity
25 | {
26 | /**
27 | * {@inheritdoc}
28 | */
29 | protected function subEntities(): array
30 | {
31 | return [
32 | 'location' => Location::class,
33 | ];
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Monolog\Processor;
13 |
14 | /**
15 | * Adds a tags array into record
16 | *
17 | * @author Martijn Riemers
18 | */
19 | class TagProcessor
20 | {
21 | private $tags;
22 |
23 | public function __construct(array $tags = array())
24 | {
25 | $this->setTags($tags);
26 | }
27 |
28 | public function addTags(array $tags = array())
29 | {
30 | $this->tags = array_merge($this->tags, $tags);
31 | }
32 |
33 | public function setTags(array $tags = array())
34 | {
35 | $this->tags = $tags;
36 | }
37 |
38 | public function __invoke(array $record)
39 | {
40 | $record['extra']['tags'] = $this->tags;
41 |
42 | return $record;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/SwitchInlineQueryChosenChat.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities\Payments;
13 |
14 | use Longman\TelegramBot\Entities\Entity;
15 |
16 | /**
17 | * Class ShippingAddress
18 | *
19 | * This object represents a shipping address.
20 | *
21 | * @link https://core.telegram.org/bots/api#shippingaddress
22 | *
23 | * @method string getCountryCode() ISO 3166-1 alpha-2 country code
24 | * @method string getState() State, if applicable
25 | * @method string getCity() City
26 | * @method string getStreetLine1() First line for the address
27 | * @method string getStreetLine2() Second line for the address
28 | * @method string getPostCode() Address post code
29 | **/
30 | class ShippingAddress extends Entity
31 | {
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/Locale/cs_CZ/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/da_DK/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/fi_FI/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/fr_FR/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/id_ID/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/ja_JP/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/nb_NO/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/nl_NL/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/pl_PL/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/pt_PT/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/sv_SE/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/th_TH/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/tr_TR/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/zh_CN/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/sr_Latn_RS/translations.php:
--------------------------------------------------------------------------------
1 | '',
5 | // 'Telegram bot username' => '',
6 | // 'Telegram bot API key' => '',
7 | // 'Chat id of private chat with bot' => '',
8 | // 'Chat id of group chat with bot' => '',
9 | // 'Help on how to generate a bot' => '',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/Voice.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities;
13 |
14 | /**
15 | * Class Voice
16 | *
17 | * @link https://core.telegram.org/bots/api#voice
18 | *
19 | * @method string getFileId() Identifier for this file, which can be used to download or reuse the file
20 | * @method string getFileUniqueId() Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
21 | * @method int getDuration() Duration of the audio in seconds as defined by sender
22 | * @method string getMimeType() Optional. MIME type of the file as defined by sender
23 | * @method int getFileSize() Optional. File size
24 | */
25 | class Voice extends Entity
26 | {
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/Payments/ShippingOption.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities\Payments;
13 |
14 | use Longman\TelegramBot\Entities\Entity;
15 |
16 | /**
17 | * Class ShippingOption
18 | *
19 | * This object represents one shipping option.
20 | *
21 | * @link https://core.telegram.org/bots/api#shippingoption
22 | *
23 | * @method string getId() Shipping option identifier
24 | * @method string getTitle() Option title
25 | * @method LabeledPrice[] getPrices() List of price portions
26 | **/
27 | class ShippingOption extends Entity
28 | {
29 | /**
30 | * {@inheritdoc}
31 | */
32 | protected function subEntities(): array
33 | {
34 | return [
35 | 'prices' => [LabeledPrice::class],
36 | ];
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/monolog/monolog/tests/Monolog/ErrorHandlerTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Monolog;
13 |
14 | use Monolog\Handler\TestHandler;
15 |
16 | class ErrorHandlerTest extends \PHPUnit_Framework_TestCase
17 | {
18 | public function testHandleError()
19 | {
20 | $logger = new Logger('test', array($handler = new TestHandler));
21 | $errHandler = new ErrorHandler($logger);
22 |
23 | $errHandler->registerErrorHandler(array(E_USER_NOTICE => Logger::EMERGENCY), false);
24 | trigger_error('Foo', E_USER_ERROR);
25 | $this->assertCount(1, $handler->getRecords());
26 | $this->assertTrue($handler->hasErrorRecords());
27 | trigger_error('Foo', E_USER_NOTICE);
28 | $this->assertCount(2, $handler->getRecords());
29 | $this->assertTrue($handler->hasEmergencyRecords());
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/BotCommandScope/BotCommandScopeChatAdministrators.php:
--------------------------------------------------------------------------------
1 |
13 | * $data = [
14 | * 'chat_id' => '123456'
15 | * ];
16 | *
17 | *
18 | * @method string getType() Scope type, must be chat_administrators
19 | * @method string getChatId() Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
20 | *
21 | * @method $this setChatId(string $chat_id) Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
22 | */
23 | class BotCommandScopeChatAdministrators extends Entity implements BotCommandScope
24 | {
25 | public function __construct(array $data = [])
26 | {
27 | $data['type'] = 'chat_administrators';
28 | parent::__construct($data);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/Games/GameHighScore.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities\Games;
13 |
14 | use Longman\TelegramBot\Entities\Entity;
15 | use Longman\TelegramBot\Entities\User;
16 |
17 | /**
18 | * Class GameHighScore
19 | *
20 | * This object represents one row of the high scores table for a game.
21 | *
22 | * @link https://core.telegram.org/bots/api#gamehighscore
23 | *
24 | * @method int getPosition() Position in high score table for the game
25 | * @method User getUser() User
26 | * @method int getScore() Score
27 | **/
28 | class GameHighScore extends Entity
29 | {
30 | /**
31 | * {@inheritdoc}
32 | */
33 | protected function subEntities(): array
34 | {
35 | return [
36 | 'user' => User::class,
37 | ];
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/Payments/Invoice.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities\Payments;
13 |
14 | use Longman\TelegramBot\Entities\Entity;
15 |
16 | /**
17 | * Class Invoice
18 | *
19 | * This object contains basic information about an invoice.
20 | *
21 | * @link https://core.telegram.org/bots/api#invoice
22 | *
23 | * @method string getTitle() Product name
24 | * @method string getDescription() Product description
25 | * @method string getStartParameter() Unique bot deep-linking parameter that can be used to generate this invoice
26 | * @method string getCurrency() Three-letter ISO 4217 currency code
27 | * @method int getTotalAmount() Total price in the smallest units of the currency (integer, not float/double).
28 | **/
29 | class Invoice extends Entity
30 | {
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/guzzlehttp/promises/src/Is.php:
--------------------------------------------------------------------------------
1 | getState() === PromiseInterface::PENDING;
15 | }
16 |
17 | /**
18 | * Returns true if a promise is fulfilled or rejected.
19 | */
20 | public static function settled(PromiseInterface $promise): bool
21 | {
22 | return $promise->getState() !== PromiseInterface::PENDING;
23 | }
24 |
25 | /**
26 | * Returns true if a promise is fulfilled.
27 | */
28 | public static function fulfilled(PromiseInterface $promise): bool
29 | {
30 | return $promise->getState() === PromiseInterface::FULFILLED;
31 | }
32 |
33 | /**
34 | * Returns true if a promise is rejected.
35 | */
36 | public static function rejected(PromiseInterface $promise): bool
37 | {
38 | return $promise->getState() === PromiseInterface::REJECTED;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/vendor/composer/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) Nils Adermann, Jordi Boggiano
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is furnished
8 | to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2017 Manu Varkey
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/vendor/monolog/monolog/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011-2016 Jordi Boggiano
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is furnished
8 | to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/ChatJoinRequest.php:
--------------------------------------------------------------------------------
1 | Chat::class,
25 | 'from' => User::class,
26 | 'invite_link' => ChatInviteLink::class,
27 | ];
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/psr/http-factory/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 PHP-FIG
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/vendor/psr/log/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2012 PHP Framework Interoperability Group
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendor/symfony/deprecation-contracts/function.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | if (!function_exists('trigger_deprecation')) {
13 | /**
14 | * Triggers a silenced deprecation notice.
15 | *
16 | * @param string $package The name of the Composer package that is triggering the deprecation
17 | * @param string $version The version of the package that introduced the deprecation
18 | * @param string $message The message of the deprecation
19 | * @param mixed ...$args Values to insert in the message using printf() formatting
20 | *
21 | * @author Nicolas Grekas
22 | */
23 | function trigger_deprecation(string $package, string $version, string $message, mixed ...$args): void
24 | {
25 | @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/symfony/deprecation-contracts/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2020-present Fabien Potencier
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is furnished
8 | to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/WebAppData.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities;
13 |
14 | /**
15 | * Class ProximityAlertTriggered
16 | *
17 | * Represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
18 | *
19 | * @link https://core.telegram.org/bots/api#proximityalerttriggered
20 | *
21 | * @method User getTraveler() User that triggered the alert
22 | * @method User getWatcher() User that set the alert
23 | * @method int getDistance() The distance between the users
24 | */
25 | class ProximityAlertTriggered extends Entity
26 | {
27 | /**
28 | * {@inheritdoc}
29 | */
30 | protected function subEntities(): array
31 | {
32 | return [
33 | 'traveler' => User::class,
34 | 'watcher' => User::class,
35 | ];
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/vendor/ralouphie/getallheaders/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Ralph Khattar
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/InlineQueryResultsButton.php:
--------------------------------------------------------------------------------
1 | WebAppInfo::class,
25 | ];
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Monolog\Handler;
13 |
14 | use Monolog\Logger;
15 |
16 | /**
17 | * Blackhole
18 | *
19 | * Any record it can handle will be thrown away. This can be used
20 | * to put on top of an existing stack to override it temporarily.
21 | *
22 | * @author Jordi Boggiano
23 | */
24 | class NullHandler extends AbstractHandler
25 | {
26 | /**
27 | * @param int $level The minimum logging level at which this handler will be triggered
28 | */
29 | public function __construct($level = Logger::DEBUG)
30 | {
31 | parent::__construct($level, false);
32 | }
33 |
34 | /**
35 | * {@inheritdoc}
36 | */
37 | public function handle(array $record)
38 | {
39 | if ($record['level'] < $this->level) {
40 | return false;
41 | }
42 |
43 | return true;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Monolog\Processor;
13 |
14 | /**
15 | * Adds a unique identifier into records
16 | *
17 | * @author Simon Mönch
18 | */
19 | class UidProcessor
20 | {
21 | private $uid;
22 |
23 | public function __construct($length = 7)
24 | {
25 | if (!is_int($length) || $length > 32 || $length < 1) {
26 | throw new \InvalidArgumentException('The uid length must be an integer between 1 and 32');
27 | }
28 |
29 | $this->uid = substr(hash('md5', uniqid('', true)), 0, $length);
30 | }
31 |
32 | public function __invoke(array $record)
33 | {
34 | $record['extra']['uid'] = $this->uid;
35 |
36 | return $record;
37 | }
38 |
39 | /**
40 | * @return string
41 | */
42 | public function getUid()
43 | {
44 | return $this->uid;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:
--------------------------------------------------------------------------------
1 | setPersistent(true);
27 |
28 | // Now add the handler
29 | $logger->pushHandler($handler, Logger::DEBUG);
30 |
31 | // You can now use your logger
32 | $logger->addInfo('My logger is now ready');
33 |
34 | ```
35 |
36 | In this example, using syslog-ng, you should see the log on the log server:
37 |
38 | cweb1 [2012-02-26 00:12:03] my_logger.INFO: My logger is now ready [] []
39 |
40 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Commands/SystemCommands/ChannelpostCommand.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * Channel post command
17 | */
18 | class ChannelpostCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'channelpost';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'Handle channel post';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Execute command
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$channel_post = $this->getUpdate()->getChannelPost();
44 |
45 | return parent::execute();
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/Payments/OrderInfo.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities\Payments;
13 |
14 | use Longman\TelegramBot\Entities\Entity;
15 |
16 | /**
17 | * Class OrderInfo
18 | *
19 | * This object represents information about an order.
20 | *
21 | * @link https://core.telegram.org/bots/api#orderinfo
22 | *
23 | * @method string getName() Optional. User name
24 | * @method string getPhoneNumber() Optional. User's phone number
25 | * @method string getEmail() Optional. User email
26 | * @method ShippingAddress getShippingAddress() Optional. User shipping address
27 | **/
28 | class OrderInfo extends Entity
29 | {
30 | /**
31 | * {@inheritdoc}
32 | */
33 | protected function subEntities(): array
34 | {
35 | return [
36 | 'shipping_address' => ShippingAddress::class,
37 | ];
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/utils/db-schema-update/0.80.0-0.81.0.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `message`
2 | ADD COLUMN `has_media_spoiler` TINYINT(1) DEFAULT 0 COMMENT 'True, if the message media is covered by a spoiler animation' AFTER `caption`,
3 | ADD COLUMN `write_access_allowed` TEXT DEFAULT NULL COMMENT 'Service message: the user allowed the bot added to the attachment menu to write messages' AFTER `connected_website`,
4 | ADD COLUMN `forum_topic_edited` TEXT DEFAULT NULL COMMENT 'Service message: forum topic edited' AFTER `forum_topic_created`,
5 | ADD COLUMN `general_forum_topic_hidden` TEXT DEFAULT NULL COMMENT 'Service message: the General forum topic hidden' AFTER `forum_topic_reopened`,
6 | ADD COLUMN `general_forum_topic_unhidden` TEXT DEFAULT NULL COMMENT 'Service message: the General forum topic unhidden' AFTER `general_forum_topic_hidden`,
7 | ADD COLUMN `user_shared` TEXT DEFAULT NULL COMMENT 'Optional. Service message: a user was shared with the bot' AFTER `successful_payment`,
8 | ADD COLUMN `chat_shared` TEXT DEFAULT NULL COMMENT 'Optional. Service message: a chat was shared with the bot' AFTER `user_shared`;
9 |
--------------------------------------------------------------------------------
/vendor/ralouphie/getallheaders/README.md:
--------------------------------------------------------------------------------
1 | getallheaders
2 | =============
3 |
4 | PHP `getallheaders()` polyfill. Compatible with PHP >= 5.3.
5 |
6 | [](https://travis-ci.org/ralouphie/getallheaders)
7 | [](https://coveralls.io/r/ralouphie/getallheaders?branch=master)
8 | [](https://packagist.org/packages/ralouphie/getallheaders)
9 | [](https://packagist.org/packages/ralouphie/getallheaders)
10 | [](https://packagist.org/packages/ralouphie/getallheaders)
11 |
12 |
13 | This is a simple polyfill for [`getallheaders()`](http://www.php.net/manual/en/function.getallheaders.php).
14 |
15 | ## Install
16 |
17 | For PHP version **`>= 5.6`**:
18 |
19 | ```
20 | composer require ralouphie/getallheaders
21 | ```
22 |
23 | For PHP version **`< 5.6`**:
24 |
25 | ```
26 | composer require ralouphie/getallheaders "^2"
27 | ```
28 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/MaskPosition.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities;
13 |
14 | /**
15 | * Class MaskPosition
16 | *
17 | * @link https://core.telegram.org/bots/api#maskposition
18 | *
19 | * @method string getPoint() The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.
20 | * @method float getXShift() Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.
21 | * @method float getYShift() Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.
22 | * @method float getScale() Mask scaling coefficient. For example, 2.0 means double size.
23 | */
24 | class MaskPosition extends Entity
25 | {
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/Locale/de_DE/translations.php:
--------------------------------------------------------------------------------
1 | 'Telegram',
5 | 'Telegram bot username' => 'Telegram Bot Benutzername',
6 | 'Telegram bot API key' => 'API Schlüssel für Telegram Bot',
7 | 'Chat id of private chat with bot' => 'Chat ID für privaten Chat mit dem Bot',
8 | 'Chat id of group chat with bot' => 'Chat ID für den Gruppen Chat mit dem Bot',
9 | 'Help on how to generate a bot' => 'Hilfe für das Erzeugen eines Bots',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/Locale/es_ES/translations.php:
--------------------------------------------------------------------------------
1 | 'Telegram',
5 | // 'Telegram bot username' => 'Nombre de usuario del bot de Telegram',
6 | // 'Telegram bot API key' => 'API key del bot de Telegram',
7 | // 'Chat id of private chat with bot' => 'Id del Chat privado con el bot',
8 | // 'Chat id of group chat with bot' => 'Id del Chat grupal con el bot',
9 | // 'Help on how to generate a bot' => 'Ayuda sobre cómo generar un bot',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/InputSticker.php:
--------------------------------------------------------------------------------
1 | ” to upload a new one using multipart/form-data under name. Animated and video stickers can't be uploaded via HTTP URL. More information on Sending Files »
13 | * @method string[] getEmojiList() List of 1-20 emoji associated with the sticker
14 | * @method MaskPosition getMaskPosition() Optional. Position where the mask should be placed on faces. For “mask” stickers only.
15 | * @method string[] getKeywords() Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For “regular” and “custom_emoji” stickers only.
16 | */
17 | class InputSticker extends Entity
18 | {
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/MenuButton/MenuButtonWebApp.php:
--------------------------------------------------------------------------------
1 | WebAppInfo::class,
28 | ];
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/psr/http-message/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | All notable changes to this project will be documented in this file, in reverse chronological order by release.
4 |
5 | ## 1.0.1 - 2016-08-06
6 |
7 | ### Added
8 |
9 | - Nothing.
10 |
11 | ### Deprecated
12 |
13 | - Nothing.
14 |
15 | ### Removed
16 |
17 | - Nothing.
18 |
19 | ### Fixed
20 |
21 | - Updated all `@return self` annotation references in interfaces to use
22 | `@return static`, which more closelly follows the semantics of the
23 | specification.
24 | - Updated the `MessageInterface::getHeaders()` return annotation to use the
25 | value `string[][]`, indicating the format is a nested array of strings.
26 | - Updated the `@link` annotation for `RequestInterface::withRequestTarget()`
27 | to point to the correct section of RFC 7230.
28 | - Updated the `ServerRequestInterface::withUploadedFiles()` parameter annotation
29 | to add the parameter name (`$uploadedFiles`).
30 | - Updated a `@throws` annotation for the `UploadedFileInterface::moveTo()`
31 | method to correctly reference the method parameter (it was referencing an
32 | incorrect parameter name previously).
33 |
34 | ## 1.0.0 - 2016-05-18
35 |
36 | Initial stable release; reflects accepted PSR-7 specification.
37 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/BotCommandScope/BotCommandScopeChatMember.php:
--------------------------------------------------------------------------------
1 |
13 | * $data = [
14 | * 'chat_id' => '123456',
15 | * 'user_id' => 987654,
16 | * ];
17 | *
18 | *
19 | * @method string getType() Scope type, must be chat_member
20 | * @method string getChatId() Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
21 | * @method int getUserId() Unique identifier of the target user
22 | *
23 | * @method $this setChatId(string $chat_id) Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
24 | * @method $this setUserId(int $user_id) Unique identifier of the target user
25 | */
26 | class BotCommandScopeChatMember extends Entity implements BotCommandScope
27 | {
28 | public function __construct(array $data = [])
29 | {
30 | $data['type'] = 'chat_member';
31 | parent::__construct($data);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/TelegramPassport/PassportFile.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities\TelegramPassport;
13 |
14 | use Longman\TelegramBot\Entities\Entity;
15 |
16 | /**
17 | * Class PassportFile
18 | *
19 | * This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.
20 | *
21 | * @link https://core.telegram.org/bots/api#passportfile
22 | *
23 | * @method string getFileId() Identifier for this file, which can be used to download or reuse the file
24 | * @method string getFileUniqueId() Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
25 | * @method int getFileSize() File size
26 | * @method int getFileDate() Unix time when the file was uploaded
27 | **/
28 | class PassportFile extends Entity
29 | {
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Monolog\Handler;
13 |
14 | use Monolog\Logger;
15 | use Monolog\Formatter\NormalizerFormatter;
16 | use Doctrine\CouchDB\CouchDBClient;
17 |
18 | /**
19 | * CouchDB handler for Doctrine CouchDB ODM
20 | *
21 | * @author Markus Bachmann
22 | */
23 | class DoctrineCouchDBHandler extends AbstractProcessingHandler
24 | {
25 | private $client;
26 |
27 | public function __construct(CouchDBClient $client, $level = Logger::DEBUG, $bubble = true)
28 | {
29 | $this->client = $client;
30 | parent::__construct($level, $bubble);
31 | }
32 |
33 | /**
34 | * {@inheritDoc}
35 | */
36 | protected function write(array $record)
37 | {
38 | $this->client->postDocument($record['formatted']);
39 | }
40 |
41 | protected function getDefaultFormatter()
42 | {
43 | return new NormalizerFormatter;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Locale/hu_HU/translations.php:
--------------------------------------------------------------------------------
1 | 'Telegram',
5 | 'Telegram bot username' => 'Telegram bot felhasználónév',
6 | 'Telegram bot API key' => 'Telegram bot API kulcs',
7 | 'Chat id of private chat with bot' => 'A bottal történő személyes csevegés csevegés-azonosítója',
8 | 'Chat id of group chat with bot' => 'A bottal történő csoportos csevegés csevegés-azonosítója',
9 | 'Help on how to generate a bot' => 'Segítség egy bot előállításához',
10 | // 'Sent attachments along with notification' => '',
11 | // 'Telegram bot is not configured in Kanboard settings.' => '',
12 | // 'Go to ' => '',
13 | // 'Settings > Integrations > Telegram' => '',
14 | // ' and fill the form:' => '',
15 | // 'Telegram bot username: Username of your Telegram Bot' => '',
16 | // 'Telegram bot API key: HTTP API token generated by BotFather after bot creation' => '',
17 | // 'Save Chat ID' => '',
18 | // 'Message %s not found!' => '',
19 | // 'Please send message %s ' => '',
20 | // 'Save chat id="%s" from "%s"?' => '',
21 | // 'To get your Telegram chat id,' => '',
22 | // '1. Send the message %s to' => '',
23 | // '2. Press' => '',
24 | // 'Get chat id' => '',
25 | );
26 |
27 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/KeyboardButtonPollType.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities;
13 |
14 | /**
15 | * Class KeyboardButtonPollType
16 | *
17 | * This entity represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
18 | *
19 | * @link https://core.telegram.org/bots/api#keyboardbutton
20 | *
21 | * @method string getType() Optional. If 'quiz' is passed, the user will be allowed to create only polls in the quiz mode. If 'regular' is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.
22 | *
23 | * @method $this setType(string $type) Optional. If 'quiz' is passed, the user will be allowed to create only polls in the quiz mode. If 'regular' is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.
24 | */
25 | class KeyboardButtonPollType extends Entity
26 | {
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Commands/SystemCommands/EditedchannelpostCommand.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * Edited channel post command
17 | */
18 | class EditedchannelpostCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'editedchannelpost';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'Handle edited channel post';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Execute command
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$edited_channel_post = $this->getUpdate()->getEditedChannelPost();
44 |
45 | return parent::execute();
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Commands/SystemCommands/NewchatphotoCommand.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * New chat photo command
17 | */
18 | class NewchatphotoCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'newchatphoto';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'New chat Photo';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Command execute method
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$message = $this->getMessage();
44 | //$new_chat_photo = $message->getNewChatPhoto();
45 |
46 | return parent::execute();
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Commands/SystemCommands/NewchattitleCommand.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * New chat title command
17 | */
18 | class NewchattitleCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'newchattitle';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'New chat Title';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Command execute method
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$message = $this->getMessage();
44 | //$new_chat_title = $message->getNewChatTitle();
45 |
46 | return parent::execute();
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Commands/SystemCommands/PinnedmessageCommand.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * Pinned message command
17 | */
18 | class PinnedmessageCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'pinnedmessage';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'Message was pinned';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Execute command
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$message = $this->getMessage();
44 | //$pinned_message = $message->getPinnedMessage();
45 |
46 | return parent::execute();
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Commands/SystemCommands/EditedmessageCommand.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * Edited message command
17 | */
18 | class EditedmessageCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'editedmessage';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'User edited message';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Command execute method
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$update = $this->getUpdate();
44 | //$edited_message = $update->getEditedMessage();
45 |
46 | return parent::execute();
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Commands/SystemCommands/LeftchatmemberCommand.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * Left chat member command
17 | */
18 | class LeftchatmemberCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'leftchatmember';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'Left Chat Member';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Command execute method
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$message = $this->getMessage();
44 | //$member = $message->getLeftChatMember();
45 |
46 | return parent::execute();
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Commands/SystemCommands/NewchatmembersCommand.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * New chat members command
17 | */
18 | class NewchatmembersCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'newchatmembers';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'New Chat Member(s)';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Command execute method
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$message = $this->getMessage();
44 | //$members = $message->getNewChatMembers();
45 |
46 | return parent::execute();
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * Delete chat photo command
17 | */
18 | class DeletechatphotoCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'deletechatphoto';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'Delete chat photo';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Command execute method
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$message = $this->getMessage();
44 | //$delete_chat_photo = $message->getDeleteChatPhoto();
45 |
46 | return parent::execute();
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Commands/SystemCommands/GroupchatcreatedCommand.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * Group chat created command
17 | */
18 | class GroupchatcreatedCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'groupchatcreated';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'Group chat created';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Command execute method
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$message = $this->getMessage();
44 | //$group_chat_created = $message->getGroupChatCreated();
45 |
46 | return parent::execute();
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Commands/SystemCommands/MigratetochatidCommand.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * Migrate to chat id command
17 | */
18 | class MigratetochatidCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'migratetochatid';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'Migrate to chat id';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Command execute method
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$message = $this->getMessage();
44 | //$migrate_to_chat_id = $message->getMigrateToChatId();
45 |
46 | return parent::execute();
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/psr/http-factory/src/UploadedFileFactoryInterface.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * Migrate from chat id command
17 | */
18 | class MigratefromchatidCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'migratefromchatid';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'Migrate from chat id';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Command execute method
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$message = $this->getMessage();
44 | //$migrate_from_chat_id = $message->getMigrateFromChatId();
45 |
46 | return parent::execute();
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/PollAnswer.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities;
13 |
14 | /**
15 | * Class PollAnswer
16 | *
17 | * This entity represents an answer of a user in a non-anonymous poll.
18 | *
19 | * @link https://core.telegram.org/bots/api#pollanswer
20 | *
21 | * @method string getPollId() Unique poll identifier
22 | * @method Chat getVoterChat() Optional. The chat that changed the answer to the poll, if the voter is anonymous
23 | * @method User getUser() Optional. The user, who changed the answer to the poll
24 | * @method array getOptionIds() 0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.
25 | */
26 | class PollAnswer extends Entity
27 | {
28 | /**
29 | * {@inheritdoc}
30 | */
31 | protected function subEntities(): array
32 | {
33 | return [
34 | 'voter_chat' => Chat::class,
35 | 'user' => User::class,
36 | ];
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Monolog\Formatter;
13 |
14 | /**
15 | * Formats data into an associative array of scalar values.
16 | * Objects and arrays will be JSON encoded.
17 | *
18 | * @author Andrew Lawson
19 | */
20 | class ScalarFormatter extends NormalizerFormatter
21 | {
22 | /**
23 | * {@inheritdoc}
24 | */
25 | public function format(array $record)
26 | {
27 | foreach ($record as $key => $value) {
28 | $record[$key] = $this->normalizeValue($value);
29 | }
30 |
31 | return $record;
32 | }
33 |
34 | /**
35 | * @param mixed $value
36 | * @return mixed
37 | */
38 | protected function normalizeValue($value)
39 | {
40 | $normalized = $this->normalize($value);
41 |
42 | if (is_array($normalized) || is_object($normalized)) {
43 | return $this->toJson($normalized, true);
44 | }
45 |
46 | return $normalized;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Commands/SystemCommands/ChannelchatcreatedCommand.php:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * For the full copyright and license information, please view the LICENSE
8 | * file that was distributed with this source code.
9 | */
10 |
11 | namespace Longman\TelegramBot\Commands\SystemCommands;
12 |
13 | use Longman\TelegramBot\Commands\SystemCommand;
14 |
15 | /**
16 | * Channel chat created command
17 | */
18 | class ChannelchatcreatedCommand extends SystemCommand
19 | {
20 | /**
21 | * @var string
22 | */
23 | protected $name = 'channelchatcreated';
24 |
25 | /**
26 | * @var string
27 | */
28 | protected $description = 'Channel chat created';
29 |
30 | /**
31 | * @var string
32 | */
33 | protected $version = '1.0.0';
34 |
35 | /**
36 | * Command execute method
37 | *
38 | * @return mixed
39 | * @throws \Longman\TelegramBot\Exception\TelegramException
40 | */
41 | public function execute()
42 | {
43 | //$message = $this->getMessage();
44 | //$channel_chat_created = $message->getChannelChatCreated();
45 |
46 | return parent::execute();
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/TelegramPassport/EncryptedCredentials.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities\TelegramPassport;
13 |
14 | use Longman\TelegramBot\Entities\Entity;
15 |
16 | /**
17 | * Class EncryptedCredentials
18 | *
19 | * Contains data required for decrypting and authenticating EncryptedCredentials. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.
20 | *
21 | * @link https://core.telegram.org/bots/api#encryptedcredentials
22 | *
23 | * @method string getData() Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication
24 | * @method string getHash() Base64-encoded data hash for data authentication
25 | * @method string getSecret() Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
26 | **/
27 | class EncryptedCredentials extends Entity
28 | {
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Monolog\Processor;
13 |
14 | class PsrLogMessageProcessorTest extends \PHPUnit_Framework_TestCase
15 | {
16 | /**
17 | * @dataProvider getPairs
18 | */
19 | public function testReplacement($val, $expected)
20 | {
21 | $proc = new PsrLogMessageProcessor;
22 |
23 | $message = $proc(array(
24 | 'message' => '{foo}',
25 | 'context' => array('foo' => $val),
26 | ));
27 | $this->assertEquals($expected, $message['message']);
28 | }
29 |
30 | public function getPairs()
31 | {
32 | return array(
33 | array('foo', 'foo'),
34 | array('3', '3'),
35 | array(3, '3'),
36 | array(null, ''),
37 | array(true, '1'),
38 | array(false, ''),
39 | array(new \stdClass, '[object stdClass]'),
40 | array(array(), '[array]'),
41 | );
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/src/Entities/TelegramPassport/PassportData.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Longman\TelegramBot\Entities\TelegramPassport;
13 |
14 | use Longman\TelegramBot\Entities\Entity;
15 |
16 | /**
17 | * Class PassportData
18 | *
19 | * Contains information about Telegram Passport data shared with the bot by the user.
20 | *
21 | * @link https://core.telegram.org/bots/api#passportdata
22 | *
23 | * @method EncryptedPassportElement[] getData() Array with information about documents and other Telegram Passport elements that was shared with the bot
24 | * @method EncryptedCredentials getCredentials() Encrypted credentials required to decrypt the data
25 | **/
26 | class PassportData extends Entity
27 | {
28 | /**
29 | * {@inheritdoc}
30 | */
31 | protected function subEntities(): array
32 | {
33 | return [
34 | 'data' => [EncryptedPassportElement::class],
35 | 'credentials' => EncryptedCredentials::class,
36 | ];
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/longman/telegram-bot/utils/db-schema-update/0.62.0-0.63.0.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `poll` ADD COLUMN `explanation` varchar(255) DEFAULT NULL COMMENT 'Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters' AFTER `correct_option_id`;
2 | ALTER TABLE `poll` ADD COLUMN `explanation_entities` text DEFAULT NULL COMMENT 'Special entities like usernames, URLs, bot commands, etc. that appear in the explanation' AFTER `explanation`;
3 | ALTER TABLE `poll` ADD COLUMN `open_period` int UNSIGNED DEFAULT NULL COMMENT 'Amount of time in seconds the poll will be active after creation' AFTER `explanation_entities`;
4 | ALTER TABLE `poll` ADD COLUMN `close_date` timestamp NULL DEFAULT NULL COMMENT 'Point in time (Unix timestamp) when the poll will be automatically closed' AFTER `open_period`;
5 |
6 | ALTER TABLE `poll_answer` DROP PRIMARY KEY, ADD PRIMARY KEY (`poll_id`, `user_id`);
7 |
8 | ALTER TABLE `message`
9 | DROP FOREIGN KEY IF EXISTS `message_ibfk_6`,
10 | DROP INDEX IF EXISTS `message_ibfk_6`;
11 |
12 | ALTER TABLE `message`
13 | ADD COLUMN `via_bot` bigint NULL DEFAULT NULL COMMENT 'Optional. Bot through which the message was sent' AFTER `reply_to_message`,
14 | ADD KEY `via_bot` (`via_bot`),
15 | ADD FOREIGN KEY (`via_bot`) REFERENCES `user` (`id`);
16 |
--------------------------------------------------------------------------------
/vendor/symfony/deprecation-contracts/README.md:
--------------------------------------------------------------------------------
1 | Symfony Deprecation Contracts
2 | =============================
3 |
4 | A generic function and convention to trigger deprecation notices.
5 |
6 | This package provides a single global function named `trigger_deprecation()` that triggers silenced deprecation notices.
7 |
8 | By using a custom PHP error handler such as the one provided by the Symfony ErrorHandler component,
9 | the triggered deprecations can be caught and logged for later discovery, both on dev and prod environments.
10 |
11 | The function requires at least 3 arguments:
12 | - the name of the Composer package that is triggering the deprecation
13 | - the version of the package that introduced the deprecation
14 | - the message of the deprecation
15 | - more arguments can be provided: they will be inserted in the message using `printf()` formatting
16 |
17 | Example:
18 | ```php
19 | trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use "%s" instead.', 'bitcoin', 'fabcoin');
20 | ```
21 |
22 | This will generate the following message:
23 | `Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.`
24 |
25 | While not recommended, the deprecation notices can be completely ignored by declaring an empty
26 | `function trigger_deprecation() {}` in your application.
27 |
--------------------------------------------------------------------------------