Giter Club home page Giter Club logo

telegramlibrary's People

Contributors

tekook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

telegramlibrary's Issues

Infinite Loop with Webhook

Hey!

Thanks for the library.
When i try to run your sample code and add my URL to Telegram via Webhook the Bot never stops sending messages to the account.

Am I missing something here?

Copy message from other channel

Hi
Sorry,I have a question about your project(telegram).
Can I get the message channels that I'm not their admin?
I want write a script that read message from other chanel and write to
my chanel.
I can do it?
best regards
thanks

SendFile function

Good afternoon.
Thank you for your library.
There are problems with sending files.
In uploadFile better to use "new \ CurlFile ($ fileName)" than the "@" in the latest version of php.
But the main problem is that in "call" in curl_options without like CURLOPT_INFILESIZE => filesize ($ arguments ['photo']), does not want to work properly download files more than a few kb.
It took me a couple of days to understand the cause of the error. I think it will help someone.

class not found

hi

i give this error
Class 'Tekook\TelegramLibrary\TelegramBotApi' not found in

fatal error using WAMP

Hi, I tested the project on wamp but got this error
image

I'm using the below example in my index.php file:

<?php
function __autoload($class_name) {
    include $class_name . '.php';
}

use Tekook\TelegramLibrary;

$telegram = new TelegramLibrary\TelegramBotApi("119258014:AAFP2QbPBazeulQrRvxLJyVd-jHLrRElByw");


$eventHandler = $telegram->getEventHandler();
$eventHandler->addHook(TelegramLibrary\Events::TEXT,
        function(\Tekook\TelegramLibrary\Types\Message $message) {
    if ($message->getText() == "A") {
        $message->reply("OK", ["reply_markup" => new TelegramLibrary\Markups\ReplyKeyboardHide()]);
    } else {
        $message->reply("Hello, " . $message->getFrom()->getFirstName() . " please answer A!",
                [
            "reply_markup" => new TelegramLibrary\Markups\ReplyKeyboardMarkup([
                ["A", "B"],
                ["C", "D"],
                ["E", "F"],
                    ])
        ]);
    }
});

$telegram->pushUpdate();

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.