├── .gitignore ├── vendor ├── psr │ ├── log │ │ ├── .gitignore │ │ ├── src │ │ │ ├── InvalidArgumentException.php │ │ │ ├── LoggerAwareInterface.php │ │ │ ├── LogLevel.php │ │ │ ├── AbstractLogger.php │ │ │ ├── LoggerAwareTrait.php │ │ │ └── NullLogger.php │ │ ├── Psr │ │ │ └── Log │ │ │ │ ├── InvalidArgumentException.php │ │ │ │ ├── LoggerAwareInterface.php │ │ │ │ ├── LogLevel.php │ │ │ │ ├── LoggerAwareTrait.php │ │ │ │ └── NullLogger.php │ │ ├── composer.json │ │ └── LICENSE │ ├── http-client │ │ ├── src │ │ │ ├── ClientExceptionInterface.php │ │ │ ├── ClientInterface.php │ │ │ ├── RequestExceptionInterface.php │ │ │ └── NetworkExceptionInterface.php │ │ ├── README.md │ │ ├── CHANGELOG.md │ │ ├── composer.json │ │ └── LICENSE │ ├── http-factory │ │ ├── src │ │ │ ├── UriFactoryInterface.php │ │ │ ├── RequestFactoryInterface.php │ │ │ ├── ResponseFactoryInterface.php │ │ │ ├── ServerRequestFactoryInterface.php │ │ │ └── UploadedFileFactoryInterface.php │ │ ├── README.md │ │ ├── composer.json │ │ └── LICENSE │ └── http-message │ │ ├── README.md │ │ ├── composer.json │ │ ├── LICENSE │ │ └── CHANGELOG.md ├── longman │ └── telegram-bot │ │ ├── build │ │ └── .gitkeep │ │ ├── logo.png │ │ ├── src │ │ ├── Entities │ │ │ ├── InputMedia │ │ │ │ └── InputMedia.php │ │ │ ├── BotCommandScope │ │ │ │ ├── BotCommandScope.php │ │ │ │ ├── BotCommandScopeDefault.php │ │ │ │ ├── BotCommandScopeAllGroupChats.php │ │ │ │ ├── BotCommandScopeAllPrivateChats.php │ │ │ │ ├── BotCommandScopeAllChatAdministrators.php │ │ │ │ ├── BotCommandScopeChat.php │ │ │ │ ├── BotCommandScopeChatAdministrators.php │ │ │ │ └── BotCommandScopeChatMember.php │ │ │ ├── InlineQuery │ │ │ │ ├── InlineQueryResult.php │ │ │ │ └── InlineEntity.php │ │ │ ├── InputMessageContent │ │ │ │ └── InputMessageContent.php │ │ │ ├── MenuButton │ │ │ │ ├── MenuButtonNotImplemented.php │ │ │ │ ├── MenuButton.php │ │ │ │ ├── MenuButtonDefault.php │ │ │ │ ├── MenuButtonCommands.php │ │ │ │ ├── Factory.php │ │ │ │ └── MenuButtonWebApp.php │ │ │ ├── BotName.php │ │ │ ├── ChatMember │ │ │ │ ├── ChatMember.php │ │ │ │ ├── ChatMemberNotImplemented.php │ │ │ │ ├── ChatMemberLeft.php │ │ │ │ ├── ChatMemberMember.php │ │ │ │ ├── ChatMemberBanned.php │ │ │ │ ├── ChatMemberOwner.php │ │ │ │ └── Factory.php │ │ │ ├── BotDescription.php │ │ │ ├── BotShortDescription.php │ │ │ ├── ChannelPost.php │ │ │ ├── EditedMessage.php │ │ │ ├── EditedChannelPost.php │ │ │ ├── Topics │ │ │ │ ├── ForumTopicClosed.php │ │ │ │ ├── ForumTopicReopened.php │ │ │ │ ├── GeneralForumTopicHidden.php │ │ │ │ ├── GeneralForumTopicUnhidden.php │ │ │ │ ├── ForumTopicEdited.php │ │ │ │ └── ForumTopicCreated.php │ │ │ ├── TelegramPassport │ │ │ │ ├── PassportElementError │ │ │ │ │ └── PassportElementError.php │ │ │ │ ├── PassportFile.php │ │ │ │ ├── EncryptedCredentials.php │ │ │ │ └── PassportData.php │ │ │ ├── Story.php │ │ │ ├── ChatShared.php │ │ │ ├── UserShared.php │ │ │ ├── InlineKeyboard.php │ │ │ ├── Factory.php │ │ │ ├── VideoChatStarted.php │ │ │ ├── WebAppInfo.php │ │ │ ├── VideoChatEnded.php │ │ │ ├── Games │ │ │ │ ├── CallbackGame.php │ │ │ │ └── GameHighScore.php │ │ │ ├── VideoChatScheduled.php │ │ │ ├── PollOption.php │ │ │ ├── MessageAutoDeleteTimerChanged.php │ │ │ ├── Dice.php │ │ │ ├── BotCommand.php │ │ │ ├── Payments │ │ │ │ ├── LabeledPrice.php │ │ │ │ ├── ShippingAddress.php │ │ │ │ ├── ShippingOption.php │ │ │ │ ├── Invoice.php │ │ │ │ └── OrderInfo.php │ │ │ ├── SentWebAppMessage.php │ │ │ ├── WriteAccessAllowed.php │ │ │ ├── Contact.php │ │ │ ├── VideoChatParticipantsInvited.php │ │ │ ├── PhotoSize.php │ │ │ ├── ReplyToMessage.php │ │ │ ├── File.php │ │ │ ├── ChatLocation.php │ │ │ ├── SwitchInlineQueryChosenChat.php │ │ │ ├── Voice.php │ │ │ ├── ChatJoinRequest.php │ │ │ ├── WebAppData.php │ │ │ ├── ProximityAlertTriggered.php │ │ │ ├── InlineQueryResultsButton.php │ │ │ ├── MaskPosition.php │ │ │ ├── InputSticker.php │ │ │ ├── KeyboardButtonPollType.php │ │ │ └── PollAnswer.php │ │ ├── Commands │ │ │ ├── UserCommand.php │ │ │ ├── AdminCommand.php │ │ │ └── SystemCommands │ │ │ │ ├── GenericCommand.php │ │ │ │ ├── ChannelpostCommand.php │ │ │ │ ├── EditedchannelpostCommand.php │ │ │ │ ├── NewchatphotoCommand.php │ │ │ │ ├── NewchattitleCommand.php │ │ │ │ ├── PinnedmessageCommand.php │ │ │ │ ├── EditedmessageCommand.php │ │ │ │ ├── LeftchatmemberCommand.php │ │ │ │ ├── NewchatmembersCommand.php │ │ │ │ ├── DeletechatphotoCommand.php │ │ │ │ ├── GroupchatcreatedCommand.php │ │ │ │ ├── MigratetochatidCommand.php │ │ │ │ ├── MigratefromchatidCommand.php │ │ │ │ └── ChannelchatcreatedCommand.php │ │ └── Exception │ │ │ ├── TelegramLogException.php │ │ │ ├── TelegramException.php │ │ │ └── InvalidBotTokenException.php │ │ ├── utils │ │ └── db-schema-update │ │ │ ├── 0.47.1-0.48.0.sql │ │ │ ├── 0.53.0-0.54.0.sql │ │ │ ├── 0.57.0-0.58.0.sql │ │ │ ├── 0.81.0-0.82.0.sql │ │ │ ├── 0.52.0-0.53.0.sql │ │ │ ├── 0.50.0-0.51.0.sql │ │ │ ├── 0.54.1-0.55.0.sql │ │ │ ├── 0.60.0-0.61.0.sql │ │ │ ├── 0.77.1-0.78.0.sql │ │ │ ├── 0.72.0-0.73.0.sql │ │ │ ├── 0.64.0-0.70.0.sql │ │ │ ├── 0.44.1-0.45.0.sql │ │ │ ├── 0.76.1-0.77.0.sql │ │ │ ├── 0.79.0-0.80.0.sql │ │ │ ├── 0.80.0-0.81.0.sql │ │ │ └── 0.62.0-0.63.0.sql │ │ ├── SECURITY.md │ │ ├── .editorconfig │ │ ├── .github │ │ ├── PULL_REQUEST_TEMPLATE.md │ │ └── ISSUE_TEMPLATE.md │ │ ├── .gitignore │ │ ├── .scrutinizer.yml │ │ ├── CREDITS │ │ ├── tests │ │ ├── unit │ │ │ └── TestCase.php │ │ └── bootstrap.php │ │ ├── LICENSE │ │ └── LICENSE.md ├── monolog │ └── monolog │ │ ├── tests │ │ └── Monolog │ │ │ ├── Handler │ │ │ ├── Fixtures │ │ │ │ └── .gitkeep │ │ │ ├── GelfMockMessagePublisher.php │ │ │ ├── MockRavenClient.php │ │ │ ├── CouchDBHandlerTest.php │ │ │ ├── NullHandlerTest.php │ │ │ └── SamplingHandlerTest.php │ │ │ ├── Processor │ │ │ ├── GitProcessorTest.php │ │ │ ├── UidProcessorTest.php │ │ │ ├── ProcessIdProcessorTest.php │ │ │ └── PsrLogMessageProcessorTest.php │ │ │ └── ErrorHandlerTest.php │ │ ├── phpunit.xml.dist │ │ ├── src │ │ └── Monolog │ │ │ ├── Handler │ │ │ ├── MissingExtensionException.php │ │ │ ├── FingersCrossed │ │ │ │ ├── ActivationStrategyInterface.php │ │ │ │ └── ErrorLevelActivationStrategy.php │ │ │ ├── NullHandler.php │ │ │ └── DoctrineCouchDBHandler.php │ │ │ ├── Processor │ │ │ ├── ProcessIdProcessor.php │ │ │ ├── MemoryUsageProcessor.php │ │ │ ├── MemoryPeakUsageProcessor.php │ │ │ ├── TagProcessor.php │ │ │ └── UidProcessor.php │ │ │ └── Formatter │ │ │ ├── FormatterInterface.php │ │ │ └── ScalarFormatter.php │ │ ├── doc │ │ ├── 03-utilities.md │ │ └── sockets.md │ │ └── LICENSE ├── guzzlehttp │ ├── guzzle │ │ └── src │ │ │ ├── Exception │ │ │ ├── TooManyRedirectsException.php │ │ │ ├── TransferException.php │ │ │ ├── InvalidArgumentException.php │ │ │ ├── GuzzleException.php │ │ │ ├── ClientException.php │ │ │ ├── ServerException.php │ │ │ ├── SeekException.php │ │ │ └── BadResponseException.php │ │ │ ├── functions_include.php │ │ │ ├── BodySummarizerInterface.php │ │ │ ├── MessageFormatterInterface.php │ │ │ ├── BodySummarizer.php │ │ │ └── Handler │ │ │ ├── CurlFactoryInterface.php │ │ │ └── HeaderProcessor.php │ ├── psr7 │ │ └── src │ │ │ ├── functions_include.php │ │ │ ├── Exception │ │ │ └── MalformedUriException.php │ │ │ ├── NoSeekStream.php │ │ │ └── Rfc7230.php │ └── promises │ │ ├── src │ │ ├── functions_include.php │ │ ├── CancellationException.php │ │ ├── PromisorInterface.php │ │ ├── AggregateException.php │ │ ├── TaskQueueInterface.php │ │ └── Is.php │ │ └── Makefile ├── autoload.php ├── symfony │ └── deprecation-contracts │ │ ├── CHANGELOG.md │ │ ├── composer.json │ │ ├── function.php │ │ ├── LICENSE │ │ └── README.md ├── composer │ ├── autoload_namespaces.php │ ├── autoload_files.php │ ├── autoload_psr4.php │ ├── platform_check.php │ └── LICENSE └── ralouphie │ └── getallheaders │ ├── composer.json │ ├── LICENSE │ └── README.md ├── Asset └── telegram-icon.png ├── Makefile ├── composer.json ├── Test └── PluginTest.php ├── Template └── user │ └── save_chat_id.php ├── Locale ├── cs_CZ │ └── translations.php ├── da_DK │ └── translations.php ├── fi_FI │ └── translations.php ├── fr_FR │ └── translations.php ├── id_ID │ └── translations.php ├── ja_JP │ └── translations.php ├── nb_NO │ └── translations.php ├── nl_NL │ └── translations.php ├── pl_PL │ └── translations.php ├── pt_PT │ └── translations.php ├── sv_SE │ └── translations.php ├── th_TH │ └── translations.php ├── tr_TR │ └── translations.php ├── zh_CN │ └── translations.php ├── sr_Latn_RS │ └── translations.php ├── de_DE │ └── translations.php ├── es_ES │ └── translations.php └── hu_HU │ └── translations.php └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | *.zip 2 | -------------------------------------------------------------------------------- /vendor/psr/log/.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/build/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Asset/telegram-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manuvarkey/kanboard-plugin-telegram/HEAD/Asset/telegram-icon.png -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manuvarkey/kanboard-plugin-telegram/HEAD/vendor/longman/telegram-bot/logo.png -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | @ echo "Build archive for plugin ${plugin} version=${version}" 3 | @ git archive HEAD --prefix=${plugin}/ --format=zip -o ${plugin}-${version}.zip 4 | -------------------------------------------------------------------------------- /vendor/psr/log/src/InvalidArgumentException.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/ChatMember/ChatMember.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 | class ChannelPost extends Message 15 | { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/EditedMessage.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 | class EditedMessage extends Message 15 | { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Commands/UserCommand.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\Commands; 13 | 14 | abstract class UserCommand extends Command 15 | { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/EditedChannelPost.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 | class EditedChannelPost extends Message 15 | { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/Topics/ForumTopicClosed.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 Entities\TelegramPassport\PassportElementError; 13 | 14 | interface PassportElementError 15 | { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /vendor/composer/autoload_files.php: -------------------------------------------------------------------------------- 1 | $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', 10 | '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', 11 | '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', 12 | ); 13 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/ChatMember/ChatMemberNotImplemented.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 Story 16 | * 17 | * @link https://core.telegram.org/bots/api#story 18 | */ 19 | class Story extends Entity 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vendor/psr/log/Psr/Log/LoggerAwareTrait.php: -------------------------------------------------------------------------------- 1 | logger = $logger; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Commands/AdminCommand.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\Commands; 13 | 14 | abstract class AdminCommand extends Command 15 | { 16 | /** 17 | * @var bool 18 | */ 19 | protected $private_only = true; 20 | } 21 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/ChatShared.php: -------------------------------------------------------------------------------- 1 | =7.3|>=8.0", 18 | "longman/telegram-bot" : "0.82.0" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Exception/TelegramLogException.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\Exception; 13 | 14 | /** 15 | * Main exception class used for exception handling 16 | */ 17 | class TelegramLogException extends TelegramException 18 | { 19 | 20 | } 21 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Exception/TelegramException.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\Exception; 13 | 14 | use Exception; 15 | 16 | /** 17 | * Main exception class used for exception handling 18 | */ 19 | class TelegramException extends Exception 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | tests/Monolog/ 7 | 8 | 9 | 10 | 11 | 12 | src/Monolog/ 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/BotCommandScope/BotCommandScopeDefault.php: -------------------------------------------------------------------------------- 1 | logger = $logger; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/InlineKeyboard.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 InlineKeyboard 16 | * 17 | * @link https://core.telegram.org/bots/api#inlinekeyboardmarkup 18 | */ 19 | class InlineKeyboard extends Keyboard 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /vendor/psr/http-message/README.md: -------------------------------------------------------------------------------- 1 | PSR Http Message 2 | ================ 3 | 4 | This repository holds all interfaces/classes/traits related to 5 | [PSR-7](http://www.php-fig.org/psr/psr-7/). 6 | 7 | Note that this is not a HTTP message implementation of its own. It is merely an 8 | interface that describes a HTTP message. See the specification for more details. 9 | 10 | Usage 11 | ----- 12 | 13 | Before reading the usage guide we recommend reading the PSR-7 interfaces method list: 14 | 15 | * [`PSR-7 Interfaces Method List`](docs/PSR7-Interfaces.md) 16 | * [`PSR-7 Usage Guide`](docs/PSR7-Usage.md) -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/TaskQueueInterface.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 | /** 15 | * Exception can be thrown if an extension for an handler is missing 16 | * 17 | * @author Christian Bergau 18 | */ 19 | class MissingExtensionException extends \Exception 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/BotCommandScope/BotCommandScopeAllGroupChats.php: -------------------------------------------------------------------------------- 1 | =5.6" 13 | }, 14 | "require-dev": { 15 | "phpunit/phpunit": "^5 || ^6.5", 16 | "php-coveralls/php-coveralls": "^2.1" 17 | }, 18 | "autoload": { 19 | "files": ["src/getallheaders.php"] 20 | }, 21 | "autoload-dev": { 22 | "psr-4": { 23 | "getallheaders\\Tests\\": "tests/" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/BotCommandScope/BotCommandScopeAllPrivateChats.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\InlineQuery; 13 | 14 | use Longman\TelegramBot\Entities\Entity; 15 | 16 | /** 17 | * Class InlineEntity 18 | * 19 | * This is the base class for all inline entities. 20 | */ 21 | abstract class InlineEntity extends Entity 22 | { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /vendor/psr/http-factory/src/ResponseFactoryInterface.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 | * This object represents a service message about a video chat started in the chat. Currently holds no information. 16 | * 17 | * @link https://core.telegram.org/bots/api#videochatstarted 18 | */ 19 | class VideoChatStarted extends Entity 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/tests/Monolog/Handler/GelfMockMessagePublisher.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 Gelf\MessagePublisher; 15 | use Gelf\Message; 16 | 17 | class GelfMockMessagePublisher extends MessagePublisher 18 | { 19 | public function publish(Message $message) 20 | { 21 | $this->lastMessage = $message; 22 | } 23 | 24 | public $lastMessage = null; 25 | } 26 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/MessageFormatterInterface.php: -------------------------------------------------------------------------------- 1 | =8.0.0" 15 | }, 16 | "autoload": { 17 | "psr-4": { 18 | "Psr\\Log\\": "src" 19 | } 20 | }, 21 | "extra": { 22 | "branch-alias": { 23 | "dev-master": "3.x-dev" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Test/PluginTest.php: -------------------------------------------------------------------------------- 1 | container); 12 | $this->assertSame(null, $plugin->initialize()); 13 | $this->assertSame(null, $plugin->onStartup()); 14 | $this->assertNotEmpty($plugin->getPluginName()); 15 | $this->assertNotEmpty($plugin->getPluginDescription()); 16 | $this->assertNotEmpty($plugin->getPluginAuthor()); 17 | $this->assertNotEmpty($plugin->getPluginVersion()); 18 | $this->assertNotEmpty($plugin->getPluginHomepage()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/Topics/ForumTopicEdited.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 | * This object represents a service message about a video chat ended in the chat. 16 | * 17 | * @link https://core.telegram.org/bots/api#videochatended 18 | * 19 | * @method int getDuration() Video chat duration in seconds 20 | */ 21 | class VideoChatEnded extends Entity 22 | { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/utils/db-schema-update/0.76.1-0.77.0.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `message` ADD COLUMN `web_app_data` TEXT NULL DEFAULT NULL COMMENT 'Service message: data sent by a Web App' AFTER `voice_chat_participants_invited`; 2 | 3 | ALTER TABLE `message` 4 | CHANGE `voice_chat_scheduled` `video_chat_scheduled` TEXT COMMENT 'Service message: video chat scheduled', 5 | CHANGE `voice_chat_started` `video_chat_started` TEXT COMMENT 'Service message: video chat started', 6 | CHANGE `voice_chat_ended` `video_chat_ended` TEXT COMMENT 'Service message: video chat ended', 7 | CHANGE `voice_chat_participants_invited` `video_chat_participants_invited` TEXT COMMENT 'Service message: new participants invited to a video chat'; 8 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/Games/CallbackGame.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 | 16 | /** 17 | * Class CallbackGame 18 | * 19 | * A placeholder, currently holds no information. Use BotFather to set up your game. 20 | * 21 | * @link https://core.telegram.org/bots/api#callbackgame 22 | **/ 23 | class CallbackGame extends Entity 24 | { 25 | 26 | } 27 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/Topics/ForumTopicCreated.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\Exception; 13 | 14 | /** 15 | * Thrown when bot token is invalid 16 | */ 17 | class InvalidBotTokenException extends TelegramException 18 | { 19 | /** 20 | * InvalidBotTokenException constructor 21 | */ 22 | public function __construct() 23 | { 24 | parent::__construct('Invalid bot token!'); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/tests/Monolog/Handler/MockRavenClient.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 Raven_Client; 15 | 16 | class MockRavenClient extends Raven_Client 17 | { 18 | public function capture($data, $stack, $vars = null) 19 | { 20 | $data = array_merge($this->get_user_data(), $data); 21 | $this->lastData = $data; 22 | $this->lastStack = $stack; 23 | } 24 | 25 | public $lastData; 26 | public $lastStack; 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/SeekException.php: -------------------------------------------------------------------------------- 1 | stream = $stream; 16 | $msg = $msg ?: 'Could not seek the stream to position ' . $pos; 17 | parent::__construct($msg); 18 | } 19 | 20 | /** 21 | * @return StreamInterface 22 | */ 23 | public function getStream() 24 | { 25 | return $this->stream; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/ChatMember/ChatMemberLeft.php: -------------------------------------------------------------------------------- 1 | User::class, 25 | ]; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.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 value of getmypid into records 16 | * 17 | * @author Andreas Hörnicke 18 | */ 19 | class ProcessIdProcessor 20 | { 21 | /** 22 | * @param array $record 23 | * @return array 24 | */ 25 | public function __invoke(array $record) 26 | { 27 | $record['extra']['process_id'] = getmypid(); 28 | 29 | return $record; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/psr/http-message/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psr/http-message", 3 | "description": "Common interface for HTTP messages", 4 | "keywords": ["psr", "psr-7", "http", "http-message", "request", "response"], 5 | "homepage": "https://github.com/php-fig/http-message", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "PHP-FIG", 10 | "homepage": "https://www.php-fig.org/" 11 | } 12 | ], 13 | "require": { 14 | "php": "^7.2 || ^8.0" 15 | }, 16 | "autoload": { 17 | "psr-4": { 18 | "Psr\\Http\\Message\\": "src/" 19 | } 20 | }, 21 | "extra": { 22 | "branch-alias": { 23 | "dev-master": "2.0.x-dev" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/psr/log/src'), 10 | 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'), 11 | 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), 12 | 'Longman\\TelegramBot\\' => array($vendorDir . '/longman/telegram-bot/src'), 13 | 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), 14 | 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), 15 | 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), 16 | ); 17 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/ChatMember/ChatMemberMember.php: -------------------------------------------------------------------------------- 1 | User::class, 25 | ]; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/Rfc7230.php: -------------------------------------------------------------------------------- 1 | @,;:\\\"/[\]?={}\x01-\x20\x7F]++):[ \t]*+((?:[ \t]*+[\x21-\x7E\x80-\xFF]++)*+)[ \t]*+\r?\n)m"; 22 | public const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)"; 23 | } 24 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/BodySummarizer.php: -------------------------------------------------------------------------------- 1 | truncateAt = $truncateAt; 17 | } 18 | 19 | /** 20 | * Returns a summarized message body. 21 | */ 22 | public function summarize(MessageInterface $message): ?string 23 | { 24 | return $this->truncateAt === null 25 | ? \GuzzleHttp\Psr7\Message::bodySummary($message) 26 | : \GuzzleHttp\Psr7\Message::bodySummary($message, $this->truncateAt); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/VideoChatScheduled.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 | * This object represents a service message about a video chat scheduled in the chat. 16 | * 17 | * @link https://core.telegram.org/bots/api#videochatscheduled 18 | * 19 | * @method int getStartDate() Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator 20 | */ 21 | class VideoChatScheduled extends Entity 22 | { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/PollOption.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 PollOption 16 | * 17 | * This entity contains information about one answer option in a poll. 18 | * 19 | * @link https://core.telegram.org/bots/api#polloption 20 | * 21 | * @method string getText() Option text, 1-100 characters 22 | * @method int getVoterCount() Number of users that voted for this option 23 | */ 24 | class PollOption extends Entity 25 | { 26 | 27 | } 28 | -------------------------------------------------------------------------------- /vendor/psr/log/Psr/Log/NullLogger.php: -------------------------------------------------------------------------------- 1 | logger) { }` 11 | * blocks. 12 | */ 13 | class NullLogger extends AbstractLogger 14 | { 15 | /** 16 | * Logs with an arbitrary level. 17 | * 18 | * @param mixed $level 19 | * @param string $message 20 | * @param array $context 21 | * 22 | * @return void 23 | */ 24 | public function log($level, $message, array $context = array()) 25 | { 26 | // noop 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/psr/http-client/src/NetworkExceptionInterface.php: -------------------------------------------------------------------------------- 1 | MenuButtonCommands::class, 13 | 'web_app' => MenuButtonWebApp::class, 14 | 'default' => MenuButtonDefault::class, 15 | ]; 16 | 17 | if (! isset($type[$data['type'] ?? ''])) { 18 | return new MenuButtonNotImplemented($data, $bot_username); 19 | } 20 | 21 | $class = $type[$data['type']]; 22 | return new $class($data, $bot_username); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.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 MessageAutoDeleteTimerChanged 16 | * 17 | * Represents a service message about a change in auto-delete timer settings 18 | * 19 | * @link https://core.telegram.org/bots/api#messageautodeletetimerchanged 20 | * 21 | * @method int getMessageAutoDeleteTime() New auto-delete time for messages in the chat 22 | */ 23 | class MessageAutoDeleteTimerChanged extends Entity 24 | { 25 | 26 | } 27 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/Dice.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 Dice 16 | * 17 | * This entity represents a dice with random value from 1 to 6. 18 | * 19 | * @link https://core.telegram.org/bots/api#dice 20 | * 21 | * @method string getEmoji() Emoji on which the dice throw animation is based 22 | * @method int getValue() Value of the dice, 1-6 for “🎲” and “🎯” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji 23 | */ 24 | class Dice extends Entity 25 | { 26 | 27 | } 28 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/BotCommand.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 BotCommand 16 | * 17 | * This entity represents a bot command. 18 | * 19 | * @link https://core.telegram.org/bots/api#botcommand 20 | * 21 | * @method string getCommand() Text of the command, 1-32 characters. Can contain only lowercase English letters, digits and underscores. 22 | * @method string getDescription() Description of the command, 3-256 characters. 23 | */ 24 | class BotCommand extends Entity 25 | { 26 | 27 | } 28 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.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\FingersCrossed; 13 | 14 | /** 15 | * Interface for activation strategies for the FingersCrossedHandler. 16 | * 17 | * @author Johannes M. Schmitt 18 | */ 19 | interface ActivationStrategyInterface 20 | { 21 | /** 22 | * Returns whether the given record activates the handler. 23 | * 24 | * @param array $record 25 | * @return Boolean 26 | */ 27 | public function isHandlerActivated(array $record); 28 | } 29 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/tests/unit/TestCase.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\Tests\Unit; 12 | 13 | class TestCase extends \PHPUnit\Framework\TestCase 14 | { 15 | /** 16 | * @var string 17 | */ 18 | public static $dummy_api_key = '123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11'; 19 | 20 | protected function skip64BitTest() 21 | { 22 | if (PHP_INT_SIZE === 4) { 23 | $this->markTestSkipped( 24 | 'Skipping test that can run only on a 64-bit build of PHP.' 25 | ); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.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 | use Monolog\TestCase; 15 | 16 | class GitProcessorTest extends TestCase 17 | { 18 | /** 19 | * @covers Monolog\Processor\GitProcessor::__invoke 20 | */ 21 | public function testProcessor() 22 | { 23 | $processor = new GitProcessor(); 24 | $record = $processor($this->getRecord()); 25 | 26 | $this->assertArrayHasKey('git', $record['extra']); 27 | $this->assertTrue(!is_array($record['extra']['git']['branch'])); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/doc/03-utilities.md: -------------------------------------------------------------------------------- 1 | # Utilities 2 | 3 | - _Registry_: The `Monolog\Registry` class lets you configure global loggers that you 4 | can then statically access from anywhere. It is not really a best practice but can 5 | help in some older codebases or for ease of use. 6 | - _ErrorHandler_: The `Monolog\ErrorHandler` class allows you to easily register 7 | a Logger instance as an exception handler, error handler or fatal error handler. 8 | - _ErrorLevelActivationStrategy_: Activates a FingersCrossedHandler when a certain log 9 | level is reached. 10 | - _ChannelLevelActivationStrategy_: Activates a FingersCrossedHandler when a certain 11 | log level is reached, depending on which channel received the log record. 12 | 13 | ← [Handlers, Formatters and Processors](02-handlers-formatters-processors.md) | [Extending Monolog](04-extending.md) → 14 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/ChatMember/ChatMemberBanned.php: -------------------------------------------------------------------------------- 1 | User::class, 26 | ]; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/psr/http-client/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psr/http-client", 3 | "description": "Common interface for HTTP clients", 4 | "keywords": ["psr", "psr-18", "http", "http-client"], 5 | "homepage": "https://github.com/php-fig/http-client", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "PHP-FIG", 10 | "homepage": "https://www.php-fig.org/" 11 | } 12 | ], 13 | "support": { 14 | "source": "https://github.com/php-fig/http-client" 15 | }, 16 | "require": { 17 | "php": "^7.0 || ^8.0", 18 | "psr/http-message": "^1.0 || ^2.0" 19 | }, 20 | "autoload": { 21 | "psr-4": { 22 | "Psr\\Http\\Client\\": "src/" 23 | } 24 | }, 25 | "extra": { 26 | "branch-alias": { 27 | "dev-master": "1.0.x-dev" 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/psr/http-factory/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psr/http-factory", 3 | "description": "Common interfaces for PSR-7 HTTP message factories", 4 | "keywords": [ 5 | "psr", 6 | "psr-7", 7 | "psr-17", 8 | "http", 9 | "factory", 10 | "message", 11 | "request", 12 | "response" 13 | ], 14 | "license": "MIT", 15 | "authors": [ 16 | { 17 | "name": "PHP-FIG", 18 | "homepage": "https://www.php-fig.org/" 19 | } 20 | ], 21 | "require": { 22 | "php": ">=7.0.0", 23 | "psr/http-message": "^1.0 || ^2.0" 24 | }, 25 | "autoload": { 26 | "psr-4": { 27 | "Psr\\Http\\Message\\": "src/" 28 | } 29 | }, 30 | "extra": { 31 | "branch-alias": { 32 | "dev-master": "1.0.x-dev" 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/psr/log/src/NullLogger.php: -------------------------------------------------------------------------------- 1 | logger) { }` 11 | * blocks. 12 | */ 13 | class NullLogger extends AbstractLogger 14 | { 15 | /** 16 | * Logs with an arbitrary level. 17 | * 18 | * @param mixed $level 19 | * @param string|\Stringable $message 20 | * @param array $context 21 | * 22 | * @return void 23 | * 24 | * @throws \Psr\Log\InvalidArgumentException 25 | */ 26 | public function log($level, string|\Stringable $message, array $context = []): void 27 | { 28 | // noop 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/Payments/LabeledPrice.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 LabeledPrice 18 | * 19 | * This object represents a portion of the price for goods or services. 20 | * 21 | * @link https://core.telegram.org/bots/api#labeledprice 22 | * 23 | * @method string getLabel() Portion label 24 | * @method int getAmount() Price of the product in the smallest units of the currency (integer, not float/double). 25 | **/ 26 | class LabeledPrice extends Entity 27 | { 28 | 29 | } 30 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/SentWebAppMessage.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\Commands\SystemCommands; 13 | 14 | use Longman\TelegramBot\Commands\SystemCommand; 15 | 16 | /** 17 | * Generic command 18 | */ 19 | class GenericCommand extends SystemCommand 20 | { 21 | /** 22 | * @var string 23 | */ 24 | protected $name = 'generic'; 25 | 26 | /** 27 | * @var string 28 | */ 29 | protected $description = 'Handles generic commands or is executed by default when a command is not found'; 30 | 31 | /** 32 | * @var string 33 | */ 34 | protected $version = '1.1.0'; 35 | } 36 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/ChatMember/ChatMemberOwner.php: -------------------------------------------------------------------------------- 1 | User::class, 27 | ]; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/WriteAccessAllowed.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 Contact 16 | * 17 | * @link https://core.telegram.org/bots/api#contact 18 | * 19 | * @method string getPhoneNumber() Contact's phone number 20 | * @method string getFirstName() Contact's first name 21 | * @method string getLastName() Optional. Contact's last name 22 | * @method int getUserId() Optional. Contact's user identifier in Telegram 23 | * @method string getVcard() Optional. Additional data about the contact in the form of a vCard 24 | */ 25 | class Contact extends Entity 26 | { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/tests/Monolog/Handler/CouchDBHandlerTest.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 | use Monolog\Logger; 16 | 17 | class CouchDBHandlerTest extends TestCase 18 | { 19 | public function testHandle() 20 | { 21 | $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34)); 22 | 23 | $handler = new CouchDBHandler(); 24 | 25 | try { 26 | $handler->handle($record); 27 | } catch (\RuntimeException $e) { 28 | $this->markTestSkipped('Could not connect to couchdb server on http://localhost:5984'); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/tests/Monolog/Handler/NullHandlerTest.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 | use Monolog\Logger; 16 | 17 | /** 18 | * @covers Monolog\Handler\NullHandler::handle 19 | */ 20 | class NullHandlerTest extends TestCase 21 | { 22 | public function testHandle() 23 | { 24 | $handler = new NullHandler(); 25 | $this->assertTrue($handler->handle($this->getRecord())); 26 | } 27 | 28 | public function testHandleLowerLevelRecord() 29 | { 30 | $handler = new NullHandler(Logger::WARNING); 31 | $this->assertFalse($handler->handle($this->getRecord(Logger::DEBUG))); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.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 | use Monolog\TestCase; 15 | 16 | class UidProcessorTest extends TestCase 17 | { 18 | /** 19 | * @covers Monolog\Processor\UidProcessor::__invoke 20 | */ 21 | public function testProcessor() 22 | { 23 | $processor = new UidProcessor(); 24 | $record = $processor($this->getRecord()); 25 | $this->assertArrayHasKey('uid', $record['extra']); 26 | } 27 | 28 | public function testGetUid() 29 | { 30 | $processor = new UidProcessor(10); 31 | $this->assertEquals(10, strlen($processor->getUid())); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ### Required Information 6 | 7 | - Operating system: 8 | - PHP version: 9 | - PHP Telegram Bot version: 10 | - Using MySQL database: yes / no 11 | - MySQL version: 12 | - Update Method: Webhook / getUpdates 13 | - Self-signed certificate: yes / no 14 | - RAW update (if available): 15 | 16 | ### Expected behaviour 17 | 18 | 19 | ### Actual behaviour 20 | 21 | 22 | ### Steps to reproduce 23 | 24 | 25 | ### Extra details 26 | 27 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/VideoChatParticipantsInvited.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 | * This object represents a service message about new members invited to a video chat. 16 | * 17 | * @link https://core.telegram.org/bots/api#videochatparticipantsinvited 18 | * 19 | * @method User[] getUsers() New members that were invited to the video chat 20 | */ 21 | class VideoChatParticipantsInvited extends Entity 22 | { 23 | /** 24 | * {@inheritdoc} 25 | */ 26 | protected function subEntities(): array 27 | { 28 | return [ 29 | 'users' => [User::class], 30 | ]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/utils/db-schema-update/0.79.0-0.80.0.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `message` 2 | ADD COLUMN `is_topic_message` TINYINT(1) DEFAULT 0 COMMENT 'True, if the message is sent to a forum topic' AFTER `forward_date`, 3 | ADD COLUMN `message_thread_id` BIGINT(20) NULL DEFAULT NULL COMMENT 'Unique identifier of a message thread to which the message belongs; for supergroups only' AFTER `id`, 4 | ADD COLUMN `forum_topic_created` TEXT NULL DEFAULT NULL COMMENT 'Service message: forum topic created' AFTER `proximity_alert_triggered`, 5 | ADD COLUMN `forum_topic_closed` TEXT NULL DEFAULT NULL COMMENT 'Service message: forum topic closed' AFTER `forum_topic_created`, 6 | ADD COLUMN `forum_topic_reopened` TEXT NULL DEFAULT NULL COMMENT 'Service message: forum topic reopened' AFTER `forum_topic_closed`; 7 | 8 | ALTER TABLE `chat` 9 | ADD COLUMN `is_forum` TINYINT(1) DEFAULT 0 COMMENT 'True, if the supergroup chat is a forum (has topics enabled)' AFTER `last_name`; 10 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.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 | * Injects memory_get_usage in all records 16 | * 17 | * @see Monolog\Processor\MemoryProcessor::__construct() for options 18 | * @author Rob Jensen 19 | */ 20 | class MemoryUsageProcessor extends MemoryProcessor 21 | { 22 | /** 23 | * @param array $record 24 | * @return array 25 | */ 26 | public function __invoke(array $record) 27 | { 28 | $bytes = memory_get_usage($this->realUsage); 29 | $formatted = $this->formatBytes($bytes); 30 | 31 | $record['extra']['memory_usage'] = $formatted; 32 | 33 | return $record; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.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\FingersCrossed; 13 | 14 | use Monolog\Logger; 15 | 16 | /** 17 | * Error level based activation strategy. 18 | * 19 | * @author Johannes M. Schmitt 20 | */ 21 | class ErrorLevelActivationStrategy implements ActivationStrategyInterface 22 | { 23 | private $actionLevel; 24 | 25 | public function __construct($actionLevel) 26 | { 27 | $this->actionLevel = Logger::toMonologLevel($actionLevel); 28 | } 29 | 30 | public function isHandlerActivated(array $record) 31 | { 32 | return $record['level'] >= $this->actionLevel; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.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 | * Interface for formatters 16 | * 17 | * @author Jordi Boggiano 18 | */ 19 | interface FormatterInterface 20 | { 21 | /** 22 | * Formats a log record. 23 | * 24 | * @param array $record A record to format 25 | * @return mixed The formatted record 26 | */ 27 | public function format(array $record); 28 | 29 | /** 30 | * Formats a set of log records. 31 | * 32 | * @param array $records A set of records to format 33 | * @return mixed The formatted set of records 34 | */ 35 | public function formatBatch(array $records); 36 | } 37 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.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 | * Injects memory_get_peak_usage in all records 16 | * 17 | * @see Monolog\Processor\MemoryProcessor::__construct() for options 18 | * @author Rob Jensen 19 | */ 20 | class MemoryPeakUsageProcessor extends MemoryProcessor 21 | { 22 | /** 23 | * @param array $record 24 | * @return array 25 | */ 26 | public function __invoke(array $record) 27 | { 28 | $bytes = memory_get_peak_usage($this->realUsage); 29 | $formatted = $this->formatBytes($bytes); 30 | 31 | $record['extra']['memory_peak_usage'] = $formatted; 32 | 33 | return $record; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Template/user/save_chat_id.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 |
7 |

8 |


9 | to

10 |
11 |

If you wish connect the bot to chat room, please ensure that the bot have admin rights!

12 |
13 | 14 |
15 |

16 | text->e($chat_id), $this->text->e($user_name)) ?> 17 |

18 | 19 | modal->confirmButtons( 20 | 'TelegramController', 21 | 'save_user_chat_id', 22 | array('plugin' => 'Telegram', 'chat_id' => $chat_id) 23 | ) ?> 24 |
25 | 26 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/ChatMember/Factory.php: -------------------------------------------------------------------------------- 1 | ChatMemberOwner::class, 13 | 'administrator' => ChatMemberAdministrator::class, 14 | 'member' => ChatMemberMember::class, 15 | 'restricted' => ChatMemberRestricted::class, 16 | 'left' => ChatMemberLeft::class, 17 | 'kicked' => ChatMemberBanned::class, 18 | ]; 19 | 20 | if (!isset($type[$data['status'] ?? ''])) { 21 | return new ChatMemberNotImplemented($data, $bot_username); 22 | } 23 | 24 | $class = $type[$data['status']]; 25 | return new $class($data, $bot_username); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/PhotoSize.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 PhotoSize 16 | * 17 | * @link https://core.telegram.org/bots/api#photosize 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 getWidth() Photo width 22 | * @method int getHeight() Photo height 23 | * @method int getFileSize() Optional. File size 24 | */ 25 | class PhotoSize extends Entity 26 | { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/ReplyToMessage.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 ReplyToMessage 16 | * 17 | * @todo Is this even required?! 18 | */ 19 | class ReplyToMessage extends Message 20 | { 21 | /** 22 | * ReplyToMessage constructor. 23 | * 24 | * @param array $data 25 | * @param string $bot_username 26 | */ 27 | public function __construct(array $data, string $bot_username = '') 28 | { 29 | //As explained in the documentation 30 | //Reply to message can't contain other reply to message entities 31 | unset($data['reply_to_message']); 32 | 33 | parent::__construct($data, $bot_username); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/tests/bootstrap.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 | /* 12 | * Set error reporting to the max level. 13 | */ 14 | error_reporting(-1); 15 | 16 | /* 17 | * Set UTC timezone. 18 | */ 19 | date_default_timezone_set('UTC'); 20 | 21 | $autoloader = __DIR__ . '/../vendor/autoload.php'; 22 | 23 | /* 24 | * Check that composer installation was done. 25 | */ 26 | if (!file_exists($autoloader)) { 27 | throw new Exception( 28 | 'Please run "composer install" in root directory to setup unit test dependencies before running the tests' 29 | ); 30 | } 31 | 32 | // Include the Composer autoloader. 33 | require_once $autoloader; 34 | 35 | /* 36 | * Unset global variables that are no longer needed. 37 | */ 38 | unset($autoloader); 39 | -------------------------------------------------------------------------------- /vendor/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.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 | use Monolog\TestCase; 15 | 16 | class ProcessIdProcessorTest extends TestCase 17 | { 18 | /** 19 | * @covers Monolog\Processor\ProcessIdProcessor::__invoke 20 | */ 21 | public function testProcessor() 22 | { 23 | $processor = new ProcessIdProcessor(); 24 | $record = $processor($this->getRecord()); 25 | $this->assertArrayHasKey('process_id', $record['extra']); 26 | $this->assertInternalType('int', $record['extra']['process_id']); 27 | $this->assertGreaterThan(0, $record['extra']['process_id']); 28 | $this->assertEquals(getmypid(), $record['extra']['process_id']); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/symfony/deprecation-contracts/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/deprecation-contracts", 3 | "type": "library", 4 | "description": "A generic function and convention to trigger deprecation notices", 5 | "homepage": "https://symfony.com", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Nicolas Grekas", 10 | "email": "p@tchwork.com" 11 | }, 12 | { 13 | "name": "Symfony Community", 14 | "homepage": "https://symfony.com/contributors" 15 | } 16 | ], 17 | "require": { 18 | "php": ">=8.1" 19 | }, 20 | "autoload": { 21 | "files": [ 22 | "function.php" 23 | ] 24 | }, 25 | "minimum-stability": "dev", 26 | "extra": { 27 | "branch-alias": { 28 | "dev-main": "3.4-dev" 29 | }, 30 | "thanks": { 31 | "name": "symfony/contracts", 32 | "url": "https://github.com/symfony/contracts" 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/BotCommandScope/BotCommandScopeChat.php: -------------------------------------------------------------------------------- 1 | 13 | * $data = [ 14 | * 'chat_id' => '123456' 15 | * ]; 16 | * 17 | * 18 | * @method string getType() Scope type, must be chat 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 BotCommandScopeChat extends Entity implements BotCommandScope 24 | { 25 | public function __construct(array $data = []) 26 | { 27 | $data['type'] = 'chat'; 28 | parent::__construct($data); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/longman/telegram-bot/src/Entities/File.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 File 16 | * 17 | * @link https://core.telegram.org/bots/api#file 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 getFileSize() Optional. File size, if known 22 | * @method string getFilePath() Optional. File path. Use https://api.telegram.org/file/bot/ 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 | [![Build Status](https://travis-ci.org/ralouphie/getallheaders.svg?branch=master)](https://travis-ci.org/ralouphie/getallheaders) 7 | [![Coverage Status](https://coveralls.io/repos/ralouphie/getallheaders/badge.png?branch=master)](https://coveralls.io/r/ralouphie/getallheaders?branch=master) 8 | [![Latest Stable Version](https://poser.pugx.org/ralouphie/getallheaders/v/stable.png)](https://packagist.org/packages/ralouphie/getallheaders) 9 | [![Latest Unstable Version](https://poser.pugx.org/ralouphie/getallheaders/v/unstable.png)](https://packagist.org/packages/ralouphie/getallheaders) 10 | [![License](https://poser.pugx.org/ralouphie/getallheaders/license.png)](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 | --------------------------------------------------------------------------------