PokemonGo-Bot-Backup icon indicating copy to clipboard operation
PokemonGo-Bot-Backup copied to clipboard

Subscribe to Telegram event through config file

Open Lntnam opened this issue 8 years ago • 2 comments

Short Description

At the moment Telegram task allows us to subscribe through command /sub. It'd be better if we can pre-set the subscription through config file, say telegram.json.

Possible solution

Modify the task construction/initialization to parse the config, and perform necessary subscription.

How it would help others

People are interested in only a certain set of events, and that's unlikely to change. Hence having to re-sub one by one every time restart the bot would be very troublesome.

Config file would be the starting point, then we can still subscribe for more as per usual.

Lntnam avatar Sep 14 '16 22:09 Lntnam

I think we don't need another conf file. We can do this in auth.json @lntn

avexus avatar Sep 21 '16 20:09 avexus

The subs are saved in a database....you shouldnt have to resubscribe everytime you start the bot.

javajohnHub avatar Sep 21 '16 20:09 javajohnHub