{"push_id":2898235948,"size":3,"distinct_size":3,"ref":"refs/heads/master","head":"629df14ee10bf393d2ed641de81246c29d1e4505","before":"2ec50cb2c2c65f38301c65ac2f657a5170cfabe9","commits":[{"sha":"ceb2baf039bb84068433726f6c675e806fb40b98","author":{"name":"dafner","email":"40504a8970abaee1187496e723b009c8c3105e74@integri-sys.com"},"message":"Add files via upload\n\nWhen I connect to the bot using whatsapp bussines the name of the contact appears with the cell phone number instead of using the registered name.\r\nformattedName returns the phone number formatted instead of the registered name\r\n\r\nI found that the fields pushname and shortName do not contain data but the field verifiedName has the correct name.\r\n\r\nBased on the above, I added a new attribute to the contact structure (self.verified_name) and modify the function get_safe_name so that it returns the name used by verifiedName when the first character is a + sign.\r\n\r\nI do not know if this problem are present in another situations.\r\n\r\nHere is the contact's structure:\r\n\r\n             'chat': {'archive': False,\r\n                      'changeNumberNewJid': None,\r\n                      'changeNumberOldJid': None,\r\n                      'contact': {'formattedName': '+54 9 11 XXXX-XXXX',\r\n                                  'id': {'_serialized': '54911XXXXXXXX@c.us',\r\n                                         'server': 'c.us',\r\n                                         'user': '54911XXXXXXXX'},\r\n                                  'isBusiness': True,\r\n                                  'isContactBlocked': False,\r\n                                  'isEnterprise': False,\r\n                                  'isHighLevelVerified': None,\r\n                                  'isMe': False,\r\n                                  'isMyContact': False,\r\n                                  'isPSA': False,\r\n                                  'isUser': True,\r\n                                  'isVerified': None,\r\n                                  'isWAContact': True,\r\n                                  'labels': [],\r\n                                  'msgs': None,\r\n                                  'name': None,\r\n                                  'plaintextDisabled': True,\r\n                                  'profilePicThumbObj': {'eurl': None,\r\n                                                         'id': {'_serialized': '54911XXXXXXXX@c.us',\r\n                                                                'server': 'c.us',\r\n                                                                'user': '54911XXXXXXXX'},\r\n                                                         'img': None,\r\n                                                         'imgFull': None,\r\n                                                         'raw': None,\r\n                                                         'tag': None},\r\n                                  'pushname': None,\r\n                                  'sectionHeader': None,\r\n                                 'shortName': None,\r\n                                 'statusMute': False,\r\n                                 'type': 'in',\r\n                                 'verifiedLevel': 0,\r\n                                 'verifiedName': 'Maximiliano'},","distinct":true,"url":"https://api.github.com/repos/mukulhase/WebWhatsapp-Wrapper/commits/ceb2baf039bb84068433726f6c675e806fb40b98"},{"sha":"13c1cd8ea7bf2cf42da5ecbfaf51e79bed199c9b","author":{"name":"dafner","email":"40504a8970abaee1187496e723b009c8c3105e74@integri-sys.com"},"message":"Update contact.py","distinct":true,"url":"https://api.github.com/repos/mukulhase/WebWhatsapp-Wrapper/commits/13c1cd8ea7bf2cf42da5ecbfaf51e79bed199c9b"},{"sha":"629df14ee10bf393d2ed641de81246c29d1e4505","author":{"name":"Mukul Hase","email":"44f017da557da6f1056ca2d239ed22202a093668@gmail.com"},"message":"Merge pull request #419 from dafner/master\n\nproblems getting the user's name","distinct":true,"url":"https://api.github.com/repos/mukulhase/WebWhatsapp-Wrapper/commits/629df14ee10bf393d2ed641de81246c29d1e4505"}]}
{"actor":{"display_login":"mukulhase"}}