| 326 | } |
| 327 | |
| 328 | void SendExistingPhoto( |
| 329 | MessageToSend &&message, |
| 330 | not_null<PhotoData*> photo, |
| 331 | std::optional<MsgId> localMessageId) { |
| 332 | const auto inputMedia = [=] { |
| 333 | return MTP_inputMediaPhoto( |
| 334 | MTP_flags(0), |
| 335 | photo->mtpInput(), |
| 336 | MTPint(), // ttl_seconds |
| 337 | MTPInputDocument()); // video |
| 338 | }; |
| 339 | SendExistingMedia( |
| 340 | std::move(message), |
| 341 | photo, |
| 342 | inputMedia, |
| 343 | Data::FileOrigin(), |
| 344 | std::move(localMessageId)); |
| 345 | } |
| 346 | |
| 347 | bool SendDice(MessageToSend &message) { |
| 348 | const auto full = QStringView(message.textWithTags.text).trimmed(); |
no test coverage detected