Eleirbag89 / TelegramBotPHP

A very simple PHP Telegram Bot API for sending messages.
http://eleirbag89.github.io/TelegramBotPHP
MIT License
807 stars 341 forks source link

local-bot-api-server #302

Closed tancyit3 closed 1 month ago

tancyit3 commented 1 month ago

Is it possible to somehow run the bot on the local host using https://core.telegram.org/bots/api#using-a-local-bot-api-server ?

Eleirbag89 commented 1 month ago

It should be easy. You gest need to add the API as constructor parameter, with default value https://api.telegram.org and use it in the endpoint function on line 122.

I'll do it when I have some spare time. You can open a PR with the changes if you want.