xtrime-ru / TelegramApiServer

Fast, simple, async php telegram api server: MadelineProto + Amp HTTP Server
https://tg.i-c-a.su
MIT License
575 stars 129 forks source link

Custom Sessions Path and Auto Adding Sessions #32

Closed artin closed 4 years ago

artin commented 4 years ago

Hi,

It could be good idea to being able to define custom Session(s) path and also adding an option to Add all available sessions to the server.

I have few sessions and every time on starting the TelegramApiServer I have to add(register) all of them to the server..

Thanks

xtrime-ru commented 4 years ago

Hi! Thank for your feedback.

It could be good idea to being able to define custom Session(s) path

To define custom path you can try symlinks. Also, subfolders supported in session paths.

adding an option to Add all available sessions to the server

Please, use --session=* or --session=subfolder/* to add all sessions from folder (and all of its subfolder) on start. You can also try other paths with glob syntax.

artin commented 4 years ago

:+1: