tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
6.73k stars 1.37k forks source link

why every time you send a message, the RAM always increases? but reduced slightly #2890

Open shpiaadev opened 1 month ago

shpiaadev commented 1 month ago

I made an AI userbot for all group and private chats, but I have tried a lot to keep the RAM to a minimum, but due to many requests, I ended up sending a message every time, I have set a limit of 1 second, limiting sending messages to no more than 30, I also limit it to 1 hour. not more than 1500, but ram usage is no less automatic, it needs to be closed/destroyed first, what else should I do? Is creating a library to connect mtproto good?

levlam commented 1 month ago

Check that you have message database enabled in setTdlibParameters.

Also, see https://github.com/tdlib/td/issues/2807.

shpiaadev commented 1 month ago

yes, I've done that, including setOption, but to no avail, the RAM keeps getting bigger,

levlam commented 1 month ago

What do you mean by setOption?