Closed devsdocs closed 4 months ago
Hey, thanks for looking into this. I just did some checks on my end as well.
The only change actually required was to change this line:
To this one - because the api
getter does all the work implicitly to create a RawAPI instance.
fetcher.setApi(api);
Just a side note: we didn't had to initialize the _api instance in the Bot's constructor at all.
Being said that thank you so much for the contribution ❤️, if you're sitting on this please let me know. We can close this PR and switch to a new one with the right changes.
So basically, changes needed are:
fetcher.setApi(api);
It should work just fine. Please let me know if you're on this :)
Hey, don't worry. I've made those mentioned changes. I'll quickly release a new version along with Bot API 7.7 :)
Thanks for reporting the issue ❤️
When running using Bot.local, it keep fetch api.telegram.org, this will fix it.