westacks / telebot

Easy way to create Telegram bots in PHP
https://westacks.github.io/telebot/
MIT License
282 stars 44 forks source link

Cannot cast value of type NULL to type string in Inline mode #59

Closed DyarWeb closed 1 year ago

DyarWeb commented 1 year ago

Hello, The library does not support Inline mode and I tested it with a simple bot and got Cannot cast value of type NULL to type string error in log channel

punyflash commented 1 year ago

Your description is unclear. Please follow a template to report a bug

DyarWeb commented 1 year ago

The library does not support Inline mode and I tested it with a simple bot and got an error

  1. Turn on Inline mode in BotFather
  2. use Inline mode : @bot_username some_thing

Then you will receive the following error in log channel if you add it: Laravel ERROR (local): Cannot cast value of type NULL to type string {"exception":"[object] (WeStacks\\TeleBot\\Exceptions\\TeleBotException(code: 0): Cannot cast value of type NULL to type string at /var/www/vendor/westacks/telebot/src/Helpers/Type.php:96)"} []

punyflash commented 1 year ago

Inline mode works well. Issue will not be worked on.