Api
Api copied to clipboard
Native PHP Wrapper for Telegram BOT API
Uncaught Error: Call to undefined method TelegramBot\Api\Types\Inline\InlineKeyboardMarkup::toJson()

Support for VideoNote Object. This object represents a video message (available in Telegram apps as of v.4.0). https://core.telegram.org/bots/api#videonote
hello i'm about to test payment capabilities, but it seem that SuccessfulPayment event not trigger, i'm i doing something wrong or what? preCheckoutQuery and answerPreCheckoutQuery phase work great! ``` $bot->preCheckoutQuery(function...
У кого нибудь есть пример использования библиотеки на laravel? Поделитесь пожалуйста. Буду благодарен
Для воспроизведение проблемы можно использовать функцию ``` $bot->command('test', function ($message) use ($bot) { $userid = $message->getChat()->getId(); sleep(300); $bot->sendMessage($userid, "TEST"); }); ``` В таком случае после отправки команды /test телеграм начинает...
strlen(): Passing null to parameter #1 ($string) of type string is deprecated
Added support for placeholder property
```php $bot->inlineQuery(function($update) use ($bot){ $content = new \TelegramBot\Api\Types\Inline\InputMessageContent\Text('*Test*', 'html'); $result = new \TelegramBot\Api\Types\Inline\QueryResult\Article(time(),'Title', null,null,null,null, $content); $bot->answerInlineQuery($update->getId(), $result); $bot->sendMessage(808542421, $update->getid().$update->getQuery()); //FOR TESTING }); ``` No matter how much I test, **no...