├── .editorconfig ├── .formatter.yml ├── .overcommit.yml ├── .scrutinizer.yml ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── composer.json ├── docs ├── Makefile ├── chat_id.rst ├── commands.rst ├── conf.py ├── create_command.rst ├── database.rst ├── index.rst ├── inline_queries.rst ├── keyboards.rst ├── logging.rst ├── overview.rst ├── payments.rst └── quickstart.rst ├── examples ├── CounterBot │ ├── Bot.php │ └── schema.sql ├── DonateBot │ └── Bot.php ├── EchoBot │ └── Bot.php ├── WhoAmIBot │ └── Bot.php ├── localization.sql └── user.sql ├── logo.png ├── phpcs.xml ├── src ├── Bot.php ├── Commands │ ├── AdminCommand.php │ ├── BasicCommand.php │ ├── CallbackCommand.php │ ├── CommandHandler.php │ ├── MessageCommand.php │ ├── MessageRegexCommand.php │ ├── MultiCharacterCommand.php │ └── PingCommand.php ├── Core │ ├── BasicBot.php │ ├── Chat.php │ ├── CoreBot.php │ ├── Edit.php │ ├── Games.php │ ├── Inline.php │ ├── Run.php │ ├── Send.php │ └── Updates.php ├── Database │ ├── Database.php │ ├── Getter.php │ └── User.php ├── Entities │ ├── CallbackQuery.php │ ├── ChosenInlineResult.php │ ├── EntityAccess.php │ ├── File.php │ ├── InlineKeyboard.php │ ├── InlineQuery.php │ ├── InlineQueryResults.php │ ├── Message.php │ ├── PreCheckoutQuery.php │ ├── ShippingQuery.php │ └── Text.php ├── Exceptions │ └── BotException.php ├── Localization │ ├── Button.php │ ├── File.php │ ├── Localization.php │ └── LocalizedString.php ├── Logging │ ├── Logging.php │ └── TelegramHandler.php ├── Test │ ├── FakeUpdate.php │ └── TestBot.php └── Utilities │ ├── BotState.php │ └── Paginator.php ├── start_mock_server.sh └── tests ├── bottest.php ├── corebottest.php ├── databasehandlertest.php ├── keyboardtest.php ├── message_1.json ├── message_2.json ├── message_command.json └── responses.yml /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/.editorconfig -------------------------------------------------------------------------------- /.formatter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/.formatter.yml -------------------------------------------------------------------------------- /.overcommit.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/.overcommit.yml -------------------------------------------------------------------------------- /.scrutinizer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/.scrutinizer.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/LICENSE -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/composer.json -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/chat_id.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/chat_id.rst -------------------------------------------------------------------------------- /docs/commands.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/commands.rst -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/create_command.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/create_command.rst -------------------------------------------------------------------------------- /docs/database.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/database.rst -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/inline_queries.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/inline_queries.rst -------------------------------------------------------------------------------- /docs/keyboards.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/keyboards.rst -------------------------------------------------------------------------------- /docs/logging.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/logging.rst -------------------------------------------------------------------------------- /docs/overview.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/overview.rst -------------------------------------------------------------------------------- /docs/payments.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/payments.rst -------------------------------------------------------------------------------- /docs/quickstart.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/docs/quickstart.rst -------------------------------------------------------------------------------- /examples/CounterBot/Bot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/examples/CounterBot/Bot.php -------------------------------------------------------------------------------- /examples/CounterBot/schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/examples/CounterBot/schema.sql -------------------------------------------------------------------------------- /examples/DonateBot/Bot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/examples/DonateBot/Bot.php -------------------------------------------------------------------------------- /examples/EchoBot/Bot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/examples/EchoBot/Bot.php -------------------------------------------------------------------------------- /examples/WhoAmIBot/Bot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/examples/WhoAmIBot/Bot.php -------------------------------------------------------------------------------- /examples/localization.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/examples/localization.sql -------------------------------------------------------------------------------- /examples/user.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/examples/user.sql -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/logo.png -------------------------------------------------------------------------------- /phpcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/phpcs.xml -------------------------------------------------------------------------------- /src/Bot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Bot.php -------------------------------------------------------------------------------- /src/Commands/AdminCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Commands/AdminCommand.php -------------------------------------------------------------------------------- /src/Commands/BasicCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Commands/BasicCommand.php -------------------------------------------------------------------------------- /src/Commands/CallbackCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Commands/CallbackCommand.php -------------------------------------------------------------------------------- /src/Commands/CommandHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Commands/CommandHandler.php -------------------------------------------------------------------------------- /src/Commands/MessageCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Commands/MessageCommand.php -------------------------------------------------------------------------------- /src/Commands/MessageRegexCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Commands/MessageRegexCommand.php -------------------------------------------------------------------------------- /src/Commands/MultiCharacterCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Commands/MultiCharacterCommand.php -------------------------------------------------------------------------------- /src/Commands/PingCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Commands/PingCommand.php -------------------------------------------------------------------------------- /src/Core/BasicBot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Core/BasicBot.php -------------------------------------------------------------------------------- /src/Core/Chat.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Core/Chat.php -------------------------------------------------------------------------------- /src/Core/CoreBot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Core/CoreBot.php -------------------------------------------------------------------------------- /src/Core/Edit.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Core/Edit.php -------------------------------------------------------------------------------- /src/Core/Games.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Core/Inline.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Core/Inline.php -------------------------------------------------------------------------------- /src/Core/Run.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Core/Run.php -------------------------------------------------------------------------------- /src/Core/Send.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Core/Send.php -------------------------------------------------------------------------------- /src/Core/Updates.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Core/Updates.php -------------------------------------------------------------------------------- /src/Database/Database.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Database/Database.php -------------------------------------------------------------------------------- /src/Database/Getter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Database/Getter.php -------------------------------------------------------------------------------- /src/Database/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Database/User.php -------------------------------------------------------------------------------- /src/Entities/CallbackQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Entities/CallbackQuery.php -------------------------------------------------------------------------------- /src/Entities/ChosenInlineResult.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Entities/ChosenInlineResult.php -------------------------------------------------------------------------------- /src/Entities/EntityAccess.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Entities/EntityAccess.php -------------------------------------------------------------------------------- /src/Entities/File.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Entities/File.php -------------------------------------------------------------------------------- /src/Entities/InlineKeyboard.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Entities/InlineKeyboard.php -------------------------------------------------------------------------------- /src/Entities/InlineQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Entities/InlineQuery.php -------------------------------------------------------------------------------- /src/Entities/InlineQueryResults.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Entities/InlineQueryResults.php -------------------------------------------------------------------------------- /src/Entities/Message.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Entities/Message.php -------------------------------------------------------------------------------- /src/Entities/PreCheckoutQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Entities/PreCheckoutQuery.php -------------------------------------------------------------------------------- /src/Entities/ShippingQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Entities/ShippingQuery.php -------------------------------------------------------------------------------- /src/Entities/Text.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Entities/Text.php -------------------------------------------------------------------------------- /src/Exceptions/BotException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Exceptions/BotException.php -------------------------------------------------------------------------------- /src/Localization/Button.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Localization/Button.php -------------------------------------------------------------------------------- /src/Localization/File.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Localization/File.php -------------------------------------------------------------------------------- /src/Localization/Localization.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Localization/Localization.php -------------------------------------------------------------------------------- /src/Localization/LocalizedString.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Localization/LocalizedString.php -------------------------------------------------------------------------------- /src/Logging/Logging.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Logging/Logging.php -------------------------------------------------------------------------------- /src/Logging/TelegramHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Logging/TelegramHandler.php -------------------------------------------------------------------------------- /src/Test/FakeUpdate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Test/FakeUpdate.php -------------------------------------------------------------------------------- /src/Test/TestBot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Test/TestBot.php -------------------------------------------------------------------------------- /src/Utilities/BotState.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Utilities/BotState.php -------------------------------------------------------------------------------- /src/Utilities/Paginator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/src/Utilities/Paginator.php -------------------------------------------------------------------------------- /start_mock_server.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd tutu/web 4 | php -S localhost:$MOCK_SERVER_PORT 5 | -------------------------------------------------------------------------------- /tests/bottest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/tests/bottest.php -------------------------------------------------------------------------------- /tests/corebottest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/tests/corebottest.php -------------------------------------------------------------------------------- /tests/databasehandlertest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/tests/databasehandlertest.php -------------------------------------------------------------------------------- /tests/keyboardtest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/tests/keyboardtest.php -------------------------------------------------------------------------------- /tests/message_1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/tests/message_1.json -------------------------------------------------------------------------------- /tests/message_2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/tests/message_2.json -------------------------------------------------------------------------------- /tests/message_command.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/tests/message_command.json -------------------------------------------------------------------------------- /tests/responses.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danyspin97/PhpBotFramework/HEAD/tests/responses.yml --------------------------------------------------------------------------------