Replies: 1 comment 2 replies
-
Just set your bot token inside the Nutgram instance: $bot = new Nutgram('your-token'); For more info, see the doc: https://nutgram.dev/docs/usage/bulk_messenger |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Could you please suggest what I am doing wrong?
Warning: Undefined array key "TOKEN" in /var/www/vhosts/west.space/apps.west.space/bulk_messenger.php on line 7
Fatal error: Uncaught TypeError: SergiX44\Nutgram\Nutgram::__construct(): Argument #1 ($token) must be of type string, null given, called in /var/www/vhosts/west.space/apps.westking.space/bulk_messenger.php on line 7 and defined in /var/www/vhosts/westspace/apps.west.space/vendor/nutgram/nutgram/src/Nutgram.php:90 Stack trace: #0 /var/www/vhosts/west.space/apps.west.space/bulk_messenger.php(7): SergiX44\Nutgram\Nutgram->__construct() #1 {main} thrown in /var/www/vhosts/west.space/apps.west.space/vendor/nutgram/nutgram/src/Nutgram.php on line 90
Beta Was this translation helpful? Give feedback.
All reactions