GithubHelp home page GithubHelp logo

erfanbahramali / telegram-bot-php Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 0.0 220 KB

Telegram-Bot-PHP is a PHP library for interacting with the official Telegram Bot API

License: MIT License

PHP 100.00%
bot hacktoberfest hacktoberfest2023 php psr-4 telegram telegram-bot telegram-bot-api telegram-bot-php

telegram-bot-php's People

Contributors

erfanbahramali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

telegram-bot-php's Issues

PHP Warning: curl_getinfo(): supplied resource is not a valid cURL handle resource

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);

Uncaught Error: Access to undeclared static property: TelegramBotPHP\Config\MainConfig::$logDatabase

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.