skpy to send a message to a group with user mention

955 views Asked by At

I need to mention particular user in the message that I sent to a group in Skype. I can send the message easily with the skpy but can't figure it out how to mention someone in the message.

sk=Skype("userid","paasword")
SendMsgTo=sk.chats["group-id"]
SendMsgTo.sendMsg("hello")

there is this sendRaw() thing in skpy which I think I'll have to use, but can't figure it out how to use.

I am new to python and finding my way through the google and the great community of stackoverflow and the similar. So a little help will greatly be appreciated

1

There are 1 answers

3
Danial Moafi On

You can use

SendMsgTo.sendMsg('<at id="8:USER_ID">USER_NAME</at> ', rich=True)

also, if you don't know USER_ID use the SendMsgTo.userIds to find all USER_ID in the group