Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LazyJsonMapper Error #2

Closed
yusufusta opened this issue Jan 15, 2020 · 1 comment
Closed

LazyJsonMapper Error #2

yusufusta opened this issue Jan 15, 2020 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@yusufusta
Copy link

OS: Ubuntu 16.04
PHP Version: 7.4

I'm using example code.

Error:
PHP Fatal error: Uncaught TypeError: Argument 1 passed to LazyJsonMapper\LazyJsonMapper::__construct() must be of the type array, null given, called in /root/turklirasi/vendor/ffb255/botter/src/BotterFactory.php on line 38 and defined in /root/turklirasi/vendor/lazyjsonmapper/lazyjsonmapper/src/LazyJsonMapper.php:683 Stack trace: #0 /root/turklirasi/vendor/ffb255/botter/src/BotterFactory.php(38): LazyJsonMapper\LazyJsonMapper->__construct() #1 /root/turklirasi/bot.php(7): ffb255\Botter\BotterFactory::create() #2 {main} thrown in /root/turklirasi/vendor/lazyjsonmapper/lazyjsonmapper/src/LazyJsonMapper.php on line 683

@ff4m1r
Copy link
Owner

ff4m1r commented Jan 16, 2020

Currently Botter only works with webhook. So please set a webhook for your bot, then use Botter.
Long-Polling will be added soon.

@ff4m1r ff4m1r pinned this issue Jan 16, 2020
@ff4m1r ff4m1r added good first issue Good for newcomers help wanted Extra attention is needed labels Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants