nestjs-telegram icon indicating copy to clipboard operation
nestjs-telegram copied to clipboard

this.url undefined

Open dmiric opened this issue 2 years ago • 1 comments

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.

dmiric avatar Oct 18 '22 21:10 dmiric

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.

fromage9747 avatar Mar 07 '23 05:03 fromage9747