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

Required "token" not supplied in config even its already there #747

Closed
nizam27391 opened this issue May 14, 2020 · 2 comments
Closed

Required "token" not supplied in config even its already there #747

nizam27391 opened this issue May 14, 2020 · 2 comments

Comments

@nizam27391
Copy link

Hi.

image

I received the error like the above. However I have the token both in the config and also in .env as TELEGRAM_BOT_TOKEN.

I'm using Laravel and already cleared the cache and config.

Thanks in advance for the help. :)

@KielD-01
Copy link

@nizam27391 Looks like You are trying to instantiate new Api() with no token passed.
If You are not passing the token it will try to get the token from the file of .env, where the default TELEGRAM_BOT_TOKEN variable may be placed with the appropriate token.
But, looks like You are missing it.

It's possible to auto-resolve if You have set all the needed webhooks, which has been described in the conf/telegram.php file. But all those would be within the specified route, which would be handling and update with Telegram::commandsHandler(true);

I hope, this helps.

@zloadmin
Copy link

I had the same error when I used Redis for queue and cache. When back to files and sync - all work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants