-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending to a specific client #66
Comments
I just do a for loop looping over all the clients and selecting only the one i want. Here's my function:
Hope it helps |
This is a bad design decision at the time - using a list instead of a dict. The workaround is to loop through the clients and once you find your client, use the handler |
Maybe there should be a |
Yes, probably a |
I might pick this up. Shouldn't be too difficult. |
Thanks for that. It helped me to solve this problem. |
I noticed that you have instructions to send to a specific client, but when I print our the value of "client", I just get back the current user's information. If I have to use "client" when I use send_message(), how do I actually specify the client ID?
I have to use: send_message(client, "message here.)
If I change "client" to "client['id']" or something, it won't work. How do you actually specify which use it should go to?
The text was updated successfully, but these errors were encountered: