Giter Site home page Giter Site logo

telegram-bot-php / core Goto Github PK

View Code? Open in Web Editor NEW
48.0 1.0 6.0 378 KB

A PHP library that makes using Telegram Bot API much easier.

Home Page: https://telegram.litehex.com/

License: MIT License

PHP 100.00%
php telegram api bot bot-api php-telegram-bot sdk-php

core's Issues

DEPRECATED: Creation of dynamic property

This is my cod:

   
        <?php
        $br = PHP_EOL;
        $sp = DIRECTORY_SEPARATOR;
        require_once __DIR__ . $sp . "vendor" . $sp . "autoload.php";

        use TelegramBot\Entities\Update;
        use TelegramBot\Telegram;
        use TelegramBot\Request;

        $admin_id = 1269777916;
        $bot_token = "5801896630:AAEd0Z1FhgLZCFQqIbDOxe5E5KUj0ZlgRKw";
        $hook_url = "WEB HOOK URL";

        Telegram::setToken($bot_token);
        Telegram::setAdminId($admin_id);

        $response = Request::setWebhook([
            "url" => $hook_url,
            "certificate" => "./.cert/cert.crt"
        ]);

        if ($response->isOk()) {
            $result = Request::sendMessage([
                "chat_id" => $admin_id,
                "text" => $response->getResult()
            ]);
            echo $response->getDescription();
            exit(0);
        }

        print_r(Update::TYPE_MESSAGE);
        print_r($result->getRawData(false));

        ?>
      

This is my output:

      Deprecated:  Creation of dynamic property EasyHttp\Model\HttpResponse::$curlHandle is deprecated in /data/data/com.termux/files/home/IA/vendor/shahradelahi/easy-http/src/Model/HttpResponse.php on line 46



      Deprecated:  Creation of dynamic property EasyHttp\Model\HttpResponse::$statusCode is deprecated in /data/data/com.termux/files/home/IA/vendor/shahradelahi/easy-http/src/Model/HttpResponse.php on line 117



      Deprecated:  Creation of dynamic property EasyHttp\Model\HttpResponse::$headerSize is deprecated in /data/data/com.termux/files/home/IA/vendor/shahradelahi/easy-http/src/Model/HttpResponse.php on line 117



      Deprecated:  Creation of dynamic property EasyHttp\Model\HttpResponse::$headers is deprecated in /data/data/com.termux/files/home/IA/vendor/shahradelahi/easy-http/src/Model/HttpResponse.php on line 80



      Deprecated:  Creation of dynamic property EasyHttp\Model\HttpResponse::$body is deprecated in /data/data/com.termux/files/home/IA/vendor/shahradelahi/easy-http/src/Model/HttpResponse.php on line 117



      Deprecated:  Creation of dynamic property TelegramBot\Entities\Response::$ok is deprecated in /data/data/com.termux/files/home/IA/vendor/telegram-bot-php/core/src/Entity.php on line 42



      Deprecated:  Creation of dynamic property TelegramBot\Entities\Response::$result is deprecated in /data/data/com.termux/files/home/IA/vendor/telegram-bot-php/core/src/Entity.php on line 42



      Deprecated:  Creation of dynamic property TelegramBot\Entities\Response::$description is deprecated in /data/data/com.termux/files/home/IA/vendor/telegram-bot-php/core/src/Entity.php on line 42



      Deprecated:  Creation of dynamic property EasyHttp\Model\HttpResponse::$curlHandle is deprecated in /data/data/com.termux/files/home/IA/vendor/shahradelahi/easy-http/src/Model/HttpResponse.php on line 46



      Deprecated:  Creation of dynamic property EasyHttp\Model\HttpResponse::$statusCode is deprecated in /data/data/com.termux/files/home/IA/vendor/shahradelahi/easy-http/src/Model/HttpResponse.php on line 117



      Deprecated:  Creation of dynamic property EasyHttp\Model\HttpResponse::$headerSize is deprecated in /data/data/com.termux/files/home/IA/vendor/shahradelahi/easy-http/src/Model/HttpResponse.php on line 117



      Deprecated:  Creation of dynamic property EasyHttp\Model\HttpResponse::$headers is deprecated in /data/data/com.termux/files/home/IA/vendor/shahradelahi/easy-http/src/Model/HttpResponse.php on line 80



      Deprecated:  Creation of dynamic property EasyHttp\Model\HttpResponse::$body is deprecated in /data/data/com.termux/files/home/IA/vendor/shahradelahi/easy-http/src/Model/HttpResponse.php on line 117



      Deprecated:  Creation of dynamic property TelegramBot\Entities\Response::$ok is deprecated in /data/data/com.termux/files/home/IA/vendor/telegram-bot-php/core/src/Entity.php on line 42



      Deprecated:  Creation of dynamic property TelegramBot\Entities\Response::$result is deprecated in /data/data/com.termux/files/home/IA/vendor/telegram-bot-php/core/src/Entity.php on line 42
    

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.