Open bbonia opened 3 months ago
Please authorise in interactive mode. It is one time operation.
After you successfully login you need to stop temporary container and start it in background with "up -d" command.
If you need to start multiple sessions, create docker-compose.override.yml. Add additional containers there. Use unique ports and session names in command.
You can autorize sessions remotely, but i do not support this function anymore, use it at your own risk: https://github.com/xtrime-ru/TelegramApiServer?tab=readme-ov-file#multiple-sessions-support
To enable multi session mode and skip session creation during start use -s=*
instead of session name here: https://github.com/xtrime-ru/TelegramApiServer/blob/master/docker-compose.yml#L24
After you successfully login you need to stop temporary container and start it in background with "up -d" command.
If you need to start multiple sessions, create docker-compose.override.yml. Add additional containers there. Use unique ports and session names in command.
You can autorize sessions remotely, but i do not support this function anymore, use it at your own risk: https://github.com/xtrime-ru/TelegramApiServer?tab=readme-ov-file#multiple-sessions-support
To enable multi session mode and skip session creation during start use
-s=*
instead of session name here: https://github.com/xtrime-ru/TelegramApiServer/blob/master/docker-compose.yml#L24
Have I just to create file docker-compose.override.yml and just start container like docker compose up -d? Is there anything else?
I lost session after reload container. Why are sessions not saved? I need session files required for start. It needs for multiple sessions
I did that you said but I`ve get an error when I try to connect remotely. But session is created. help please
create file docker-compose.override.yml and just start container like docker compose up -d
Yes. Override port and command, or add new container.
I lost session after reload container.
How you created the session?
remotely. with link http://IP:9503/system/addSession?session=users/xtrime
have done all requests to authorize it? https://github.com/xtrime-ru/TelegramApiServer?tab=readme-ov-file#authorizing-session-remotely
You could try to call http://127.0.0.1:9503/api/%session%/serialize
after authorisation.
But as i said, i provide no support for this feature...
ok. thanks a lot
I solved the problem with session. But It doesn`t write session correctly after restart container.
You need to authorise this session, and make sure its serialized before restarting (call serialize method, or wait 10 minutes before automatic serialization happens)
Do you mean my session didn't have time to save at vps? But there is file with session on vps. I just stop and start again the container
and I`ve get this mistake all time but chats download well. Can you explain this one please?
http://IP:9521/api/users/number/serialize gives me that error
Serialization method was moved in other place, probably this is why your session not saved after manual login via http. I pushed fix: https://github.com/xtrime-ru/TelegramApiServer/commit/6a045fdfb1c59cfc0d065e30d40e3fbe4eb6fa75
Please update to latest master and try to call serizalize again after manual login.
Dont know anything about Undefined array key "user"
What method you calling? Also i suggest to ask in madelineProto support group.
Dont know anything about
Undefined array key "user"
What method you calling? Also i suggest to ask in madelineProto support group.
Everything is from https://github.com/xtrime-ru/TelegramApiServer/tree/master#session-management
Serialization method was moved in other place, probably this is why your session not saved after manual login via http. I pushed fix: 6a045fd
Please update to latest master and try to call serizalize again after manual login.
thanks. It works well
hi. help me one else please After successful logging I have good working app but I can`t delete the session. I deleted container and session files from server, reboot the OS but it says me error when I try to log in again with the same number
that error goes when I add new session. It is copied to each container.
Is you use -s=* it means to load all sessions in container. Please use globe syntax to select sessions for each container: https://en.wikipedia.org/wiki/Glob_(programming)
Deleting session is complicated. You need to stop container, then remove session folder, then remove session tables from mysql database.
hi. thanks a lot. But how can I do that (deleting from table)? Is it real only by modifying table with another program or something docker command? And one else question/ What is the different to use session in mysql or memory?
Hi. I try to start container like it`s written here but it goes to error. Help me please.
There is the same error with memory usage settings. That works interactively only