ZaStoGram_desktop/Telegram/SourceFiles/tgw/tgw_state.h
John Preston 60d60f95ad Deliver bot state edits and polled shared state to widgets
Task: 2026/10/26/deliver-bot-state-edits-and-poll-watched-shared-state-to-running-widgets
2026-11-05 17:12:55 +04:00

26 lines
596 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
namespace Main {
class Session;
} // namespace Main
namespace Tgw {
class WidgetMedia;
void RegisterCarrier(not_null<WidgetMedia*> media);
void UnregisterCarrier(not_null<WidgetMedia*> media);
void ApplyStateUpdate(
not_null<Main::Session*> session,
const MTPDupdateMessageWidgetData &data);
void WatchersChanged();
} // namespace Tgw