whatsapp-framework icon indicating copy to clipboard operation
whatsapp-framework copied to clipboard

problem getting phone number from whatsapp group.

Open gabrieru opened this issue 6 years ago • 1 comments

i tried to save the phone number from people in a group wich sends a command, so i used:

get_groups = re.split(r"-", message.conversation) telefono = get_group[0] print(telefono)

it gives me a diferent phone number than wich the guy sended, someone knows what is the best method?

gabrieru avatar Nov 24 '18 09:11 gabrieru

message.who.split("@")[0]

georgeshachem avatar Dec 26 '18 21:12 georgeshachem