You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when we receive the friendship application, we only get the friendship or hallo_word(FriendshipType.FRIENDSHIP_TYPE_RECEIVE as the link you send). There are no 'msg', so if I use msg.say(mini programme), It does not work.
So If I want to indicate a new friend and send the mini programme or photo to him, how can I do that? (Not send because of the keyword activation)
All of Room, Contact and Message instance contains the say method which handle the message sending operation.
msg only appear in on_message event, so you can use msg.say to handle the message sending operation. If you handle the message sending in on_friendship event, you can use the contact.say to send message.
It's not the meaning that alway using msg.say to send message, you can use different module in different situation.
Hope that can help you. Please feel free tell us more about your problem.
Activity
wj-Mcat commentedon Jul 4, 2022
Answer:
Hyfred commentedon Jul 4, 2022
But when we receive the friendship application, we only get the friendship or hallo_word(FriendshipType.FRIENDSHIP_TYPE_RECEIVE as the link you send). There are no 'msg', so if I use msg.say(mini programme), It does not work.
So If I want to indicate a new friend and send the mini programme or photo to him, how can I do that? (Not send because of the keyword activation)
wj-Mcat commentedon Jul 5, 2022
All of
Room,ContactandMessageinstance contains thesaymethod which handle the message sending operation.msgonly appear inon_messageevent, so you can usemsg.sayto handle the message sending operation. If you handle the message sending inon_friendshipevent, you can use thecontact.sayto send message.It's not the meaning that alway using
msg.sayto send message, you can use different module in different situation.Hope that can help you. Please feel free tell us more about your problem.