| 1090 | } |
| 1091 | |
| 1092 | Ui::BotVerifyDetails ParseBotVerifyDetails(const MTPBotVerification *info) { |
| 1093 | if (!info) { |
| 1094 | return {}; |
| 1095 | } |
| 1096 | const auto &data = info->data(); |
| 1097 | const auto description = qs(data.vdescription()); |
| 1098 | const auto flags = TextParseLinks; |
| 1099 | return { |
| 1100 | .botId = UserId(data.vbot_id().v), |
| 1101 | .iconId = DocumentId(data.vicon().v), |
| 1102 | .description = TextUtilities::ParseEntities(description, flags), |
| 1103 | }; |
| 1104 | } |
| 1105 | |
| 1106 | } // namespace Data |
no test coverage detected