How to mention all users in a group chat
Closed this issue · 4 comments
Kyllingene commented
I do not know how to mention everyone in a group chat. No errors occurring, just a question.
Microsoft Account
Group Chat
Example of how it may work:
ch = sk.chats["chat_id"]
ch.mention("all") OR ch.mention_all()
Desired outcome: Mentions all users.
Note: I do realize I could simply get all users in a group, then mention them individually, but that would be relatively undesirable compared to mentioning using something like "@ALL". Thanks for the good work, keep it up!
Terrance commented
You'll need to add the markup manually:
<at id="*">all</at>
Kyllingene commented
Thank you!
hastimal commented
I still didn't get it. Can I see an example of this, please? @Terrance @Kyllingene
Kyllingene commented
I still didn't get it. Can I see an example of this, please? @Terrance @Kyllingene
An example would be:
from skpy import Skype
sk = Skype(username,password)
chat = sk.chats["chat_id_123"]
chat.sendMsg("<at id="*">all</at> This mentions everyone!", rich=True)