Closed Kamran1991 closed 1 year ago
@danog can you help with this? I faced the same issue
First of all, please switch to MadelineProto 8, MadelineProto 7 has some severe bugs that were fixed in v8.
Regarding the files: it's normal, they still will be created even when using the DB, but they will be a lot smaller (a few kb, mostly containing db connection URIs+IPC sockets), and all of the actual session data will be stored in the database (in multiple tables, yes, which is why I also recommend creating a separate database just for MadelineProto).
Hi @danog I'm using MadelineProto in Laravel using Docker. I need to store unique telegram sessions for multiple users. Previously I was not using a database and so I was facing memory issues but now I am using MYSQL as per documentation (https://docs.madelineproto.xyz/docs/DATABASE.html). Still, session files are getting created in my project directory, and I can see a lot of tables in the database as well. is it normal to have multiple tables in a database? How can i prevent MadelineProto from creating session files in the project directory?
Session files in the project directory![image](https://github.com/danog/MadelineProto/assets/23184092/c046e8da-4883-40cd-8395-53db4e8198e9)
Tables in database![image](https://github.com/danog/MadelineProto/assets/23184092/0f2d084e-ade2-4074-94e3-a55dc931e60d)
Here is the code, you can see the phoneLogin method in the below code