我尝试在[promise catch callback]中尝试发送带有空错误的照片/文件消息时发送photoMessage.Socket断开连接 我不知道为什么?我该如何解决?
[2018-05-07 13:31:40.432] [TRACE] [default] - Sending on socket: {"$type":"Request","id":"3","service":"messaging","body":{"$type":"SendMessage","peer":{"$type":"User","id":XXX,"accessHash":"YYY"},"randomId":"796200377717532288","message":{"$type":"Document","fileId":"-5218264593238523391","accessHash":6687875,"fileSize":"157727","name":"871073.jpg","mimeType":"image/jpg","thumb":{},"ext":{"$type":"Photo"},"caption":{"$type":"Text","text":"test"},"checkSum":"checkSum","algorithm":"algorithm","fileStorageVersion":1}}}
[2018-05-07 13:31:40.435] [TRACE] [default] - send callback: err: undefined
[2018-05-07 13:31:43.221] [INFO] [default] - Connecting...
[2018-05-07 13:31:43.913] [INFO] [default] - Socket Connected!
答案 0 :(得分:1)
有必要在photoMessage中指定缩略图,宽度和高度。