telegram-bot-php / durger-king Goto Github PK
View Code? Open in Web Editor NEWA simple example to Telegram web-apps with JavaScript & PHP
License: MIT License
A simple example to Telegram web-apps with JavaScript & PHP
License: MIT License
Hello guys...
I have installed all composer dependencies and moved the app to the host. All settings are done as directed in README file but it is not working. No error and no response. My webhook is correct and it works fine from telegram API.
Hi,
When I install the dependencies, it throw the following errors:
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run composer update
or composer update <package name>
.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- shahradelahi/easy-http is locked to version v1.3.0 and an update of this package was not requested.
- shahradelahi/easy-http v1.3.0 requires ext-pcntl * -> it is missing from your system. Install or enable PHP's pcntl extension.
Problem 2
- utilities-php/auth is locked to version dev-master and an update of this package was not requested.
- utilities-php/auth dev-master requires ext-pcntl * -> it is missing from your system. Install or enable PHP's pcntl extension.
Problem 3
- utilities-php/common is locked to version dev-master and an update of this package was not requested.
- utilities-php/common dev-master requires ext-pcntl * -> it is missing from your system. Install or enable PHP's pcntl extension.
Problem 4
- shahradelahi/easy-http v1.3.0 requires ext-pcntl * -> it is missing from your system. Install or enable PHP's pcntl extension.
- telegram-bot-php/core v1.0.2 requires shahradelahi/easy-http ~v1.3.0 -> satisfiable by shahradelahi/easy-http[v1.3.0].
- telegram-bot-php/core is locked to version v1.0.2 and an update of this package was not requested.
After clicking on the Order Food Button, the Webview is supposed to open, but instead the following error shows up.
Would be very cool to receive any help or fixes, since this Webview is really cool.
Error:
Fatal error: Uncaught TypeError: TelegramBot\Telegram::processUpdate(): Argument #1 ($input) must be of type string, bool given, called in /app/vendor/telegram-bot-php/core/src/CrashPad.php on line 117 and defined in /app/vendor/telegram-bot-php/core/src/Telegram.php:141 Stack trace: #0 /app/vendor/telegram-bot-php/core/src/CrashPad.php(117): TelegramBot\Telegram::processUpdate() #1 [internal function]: TelegramBot\CrashPad::TelegramBot\{closure}() #2 {main} thrown in /app/vendor/telegram-bot-php/core/src/Telegram.php on line 141
Thank you in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.