verify_peers_box.h 852 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "base/object_ptr.h"
  9. #include "lang/lang_keys.h"
  10. class PeerData;
  11. class UserData;
  12. namespace Ui {
  13. class BoxContent;
  14. } // namespace Ui
  15. namespace Window {
  16. class SessionController;
  17. } // namespace Window
  18. [[nodiscard]] object_ptr<Ui::BoxContent> MakeVerifyPeersBox(
  19. not_null<Window::SessionController*> window,
  20. not_null<UserData*> bot);
  21. struct BotVerifyPhrases {
  22. tr::phrase<> title;
  23. tr::phrase<lngtag_name> text;
  24. tr::phrase<> about;
  25. tr::phrase<> submit;
  26. tr::phrase<lngtag_name> sent;
  27. tr::phrase<> remove;
  28. };
  29. [[nodiscard]] BotVerifyPhrases PeerVerifyPhrases(not_null<PeerData*> peer);