Better error message on incorrect inputMessageContact.

GitOrigin-RevId: 0bd74bbb6cd42b6a68d436e8f40317a4ed180972
This commit is contained in:
levlam 2020-03-04 01:45:37 +03:00
parent f752f3fade
commit 5bea5f83b2

View File

@ -23338,6 +23338,8 @@ void MessagesManager::on_send_message_fail(int64 random_id, Status error) {
error_message = "Wrong invoice information specified"; error_message = "Wrong invoice information specified";
} else if (content_type == MessageContentType::Poll) { } else if (content_type == MessageContentType::Poll) {
error_message = "Wrong poll data specified"; error_message = "Wrong poll data specified";
} else if (content_type == MessageContentType::Contact) {
error_message = "Wrong phone number specified";
} else { } else {
error_message = "Wrong file identifier/HTTP URL specified"; error_message = "Wrong file identifier/HTTP URL specified";
} }