erfanbahramali / telegram-bot-php Goto Github PK
View Code? Open in Web Editor NEWTelegram-Bot-PHP is a PHP library for interacting with the official Telegram Bot API
License: MIT License
Telegram-Bot-PHP is a PHP library for interacting with the official Telegram Bot API
License: MIT License
PHP Warning: curl_getinfo(): supplied resource is not a valid cURL handle resource in vendor/bahramali/telegram-bot-php/src/Bot.php on line 144
PHP Fatal error: Uncaught TelegramBotPHP\Exceptions\BotException: something went wrong. Request failed Error: {"request":{"method":"sendMessage","parameters":{"chat_id":204378180,"text":"Example Text"}},"response":{"ok":true,"result":{"message_id":1052,"from":{"id":1396776987,"is_bot":true,"first_name":"Soon...","username":"MMBot"},"chat":{"id":204378180,"first_name":"Mr Mohammed","username":"xX0Xx","type":"private"},"date":1629662069,"text":"Example Text"}},"http_code":false} in vendor/bahramali/telegram-bot-php/src/Bot.php:165
Stack trace:
#0 vendor/bahramali/telegram-bot-php/src/Method.php(459): TelegramBotPHP\Bot::sendRequest()
#1 vendor/bahramali/telegram-bot-php/src/Method.php(483): TelegramBotPHP\Bot::executeMethod()
#2 vendor/bahramali/telegram-bot-php/src/Method.php(145): TelegramBotPHP\Bot::__callStatic()
#3 /var/www/codar.mo-0 in vendor/bahramali/telegram-bot-php/src/Bot.php on line 165
edit bahramali/telegram-bot-php/src/Bot.php
Move the line of $responseHttpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
before curl_close($ch);
Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /vendor/bahramali/telegram-bot-php/src/Config/Config.php on line 57
PHP Fatal error: Uncaught Error: Access to undeclared static property: TelegramBotPHP\Config\MainConfig::$logDatabase in /vendor/bahramali/telegram-bot-php/src/Config/Config.php:106
Stack trace:
#0 /vendor/bahramali/telegram-bot-php/src/Bot.php(45): TelegramBotPHP\Config\Config->__construct()
#1 /index.php(9): TelegramBotPHP\Bot->__construct()
#2 {main}
thrown in /vendor/bahramali/telegram-bot-php/src/Config/Config.php on line 106
Fatal error: Uncaught Error: Access to undeclared static property: TelegramBotPHP\Config\MainConfig::$logDatabase in /vendor/bahramali/telegram-bot-php/src/Config/Config.php:106
Stack trace:
#0 /vendor/bahramali/telegram-bot-php/src/Bot.php(45): TelegramBotPHP\Config\Config->__construct()
#1 /index.php(9): TelegramBotPHP\Bot->__construct()
#2 {main}
thrown in /vendor/bahramali/telegram-bot-php/src/Config/Config.php on line 106
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.