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

this.url undefined #333

Open
dmiric opened this issue Oct 18, 2022 · 1 comment
Open

this.url undefined #333

dmiric opened this issue Oct 18, 2022 · 1 comment

Comments

@dmiric
Copy link

dmiric commented Oct 18, 2022

When I try to make a request axios dosen't get the first part of url from:

this.url = https://api.telegram.org/bot${this.options.botKey}/;

when I move that line to constructor from on moduleInit it works fine.

@fromage9747
Copy link

I moved it to the constructor, but I still get
https://api.telegram.org/botundefined/getMe
I have tested and confirmed that my code is pulling my API key variable from .env everywhere else.

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

2 participants