Closed ah-rahimi closed 5 months ago
Can you check this @fabio-ivona? We really have a performance problem...
fixed
Hello @fabio-ivona , I want to know why chat is needed here?
And now you send two queries.
That function automatically loads the chat when a bot has just one
it sends one query to count the bot's chats, if there are more than one, it should not send the second query
Yes, you are right. But isn't it better to use a chat only where it is needed? Even the count query is heavy.
I get your point and found a solution
let me know if v1.43.1 solves your issue
thank you so much I will definitely let you know...
Hi why
replyWebhook()
function inTelegraphBot
model send a query for get all users?in the
bot()
function get all chats (users) to check chat is set:why query to the database and get all users? We have a lot of users and that's too bad.
Please remove this, as there is no need for chat in the
replyWebhook()
function:Thanks!