/* 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 "base/weak_ptr.h" class ChannelData; namespace Main { class Session; } // namespace Main namespace Ui { class Show; } // namespace Ui namespace Window { class SessionController; } // namespace Window namespace Api { void CheckChatInvite( not_null controller, const QString &hash, ChannelData *invitePeekChannel = nullptr, Fn loaded = nullptr); void ProcessChatInviteJoinResult( not_null session, std::shared_ptr show, const MTPmessages_ChatInviteJoinResult &result, Fn done, base::weak_ptr controller = {}); } // namespace Api