Closed lunaticsm closed 1 year ago
@lunaticsm Thank you Sorry for late response
for command /broadcast can you explain more with the example please
i asume /broadcast
is something like send announcement about the bot to users and the command will look like this
/broadcast <message>
-> /broadcast hello everyone
.
but basicly for broadcast we should store user id telegram on database permanently, for now i will hold /broadcast
.
i will work on command /users
to check how many people use the bot in current time, this is posible because we have room and queue as temporary data.
i asume
/broadcast
is something like send announcement about the bot to users and the command will look like this/broadcast <message>
->/broadcast hello everyone
.but basicly for broadcast we should store user id telegram on database permanently, for now i will hold
/broadcast
.i will work on command
/users
to check how many people use the bot in current time, this is posible because we have room and queue as temporary data.
You can get length of all users from database, if im not wrong database save all users
i asume
/broadcast
is something like send announcement about the bot to users and the command will look like this/broadcast <message>
->/broadcast hello everyone
. but basicly for broadcast we should store user id telegram on database permanently, for now i will hold/broadcast
. i will work on command/users
to check how many people use the bot in current time, this is posible because we have room and queue as temporary data.You can get length of all users from database, if im not wrong database save all users
Hi @winqdev sorry for the late response.
Yes, of course, we can retrieve the length of all users. However, please note that we don't save the userId permanently in the database. It is only temporarily stored for the queue and roommate purposes.
So, we can simply query the database to check the current number of queues and the current number of roommates.
The /users
command will display the current active users by combining the data from the queue and the room.
example:
command-> /users
response:-> Currently, there are 100
people using the bot.
Currently, there are 2 people using the anonim-chat.
Queue: 0 Conversations: 2
already merge to master, i will close this issue.
note: command /broadcast
not include
Sorry for very late response, thank's for making this, i thougt it'll not updating. thank's btw. gonna use this script soon. :)
already merge to master, i will close this issue.
note: command
/broadcast
not include
where do i contact you?
already merge to master, i will close this issue. note: command
/broadcast
not includewhere do i contact you?
email on my github bio
great code, but can you add new command like /users to check how many people use the bot or /broadcast to broadcast message to everyone ?