data_bot_app.h 646 B

123456789101112131415161718192021222324252627
  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 "data/data_photo.h"
  9. #include "data/data_document.h"
  10. struct BotAppData {
  11. BotAppData(not_null<Data::Session*> owner, const BotAppId &id);
  12. const not_null<Data::Session*> owner;
  13. BotAppId id = 0;
  14. PeerId botId = 0;
  15. QString shortName;
  16. QString title;
  17. QString description;
  18. PhotoData *photo = nullptr;
  19. DocumentData *document = nullptr;
  20. uint64 accessHash = 0;
  21. uint64 hash = 0;
  22. };