Files
tdesktop/Telegram/SourceFiles/boxes/url_auth_box.h
John Preston 45493fdfb1 Show button rows in rich messages
Task: 2026/07/27/show-block-button-rows-in-rich-messages
2026-08-10 18:42:48 +04:00

37 lines
754 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
#include "api/api_bot.h"
class HistoryItem;
struct HistoryMessageMarkupButton;
namespace Main {
class Session;
} // namespace Main
namespace Ui {
class GenericBox;
class Show;
} // namespace Ui
namespace UrlAuthBox {
void ActivateButton(
std::shared_ptr<Ui::Show> show,
not_null<const HistoryItem*> message,
Api::BotButtonLookup lookup);
void ActivateUrl(
std::shared_ptr<Ui::Show> show,
not_null<Main::Session*> session,
const QString &url,
QVariant context);
} // namespace UrlAuthBox