ZaStoGram_desktop/Telegram/SourceFiles/tgw/tgw_wallet.h
John Preston 4bf186c57b Let widgets pay through Gram Wallet's TON Connect window
Task: 2026/10/31/let-widgets-pay-and-sign-data-through-gram-wallet-for-their-bot
2026-11-05 17:14:31 +04:00

28 lines
653 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
class HistoryItem;
class UserData;
namespace twidget {
struct WalletCall;
struct WidgetRequestOutcome;
} // namespace twidget
namespace Tgw {
[[nodiscard]] UserData *QueryBot(not_null<HistoryItem*> item);
void RunWalletCall(
not_null<HistoryItem*> item,
not_null<QWidget*> window,
const twidget::WalletCall &call,
Fn<void(const twidget::WidgetRequestOutcome&)> respond);
} // namespace Tgw