feat: вродь диплинки и /start

This commit is contained in:
Jganenokk
2026-07-30 21:23:20 +07:00
parent f6de41f11d
commit 25f13f0492
15 changed files with 1352 additions and 156 deletions
+11 -3
View File
@@ -412,11 +412,19 @@ class CachedMessage {
this.editHistory,
});
bool get isBotStartMarker {
final control = attachments?.whereType<ControlAttachment>().firstOrNull;
return control != null && control.isBotStart;
ControlAttachment? get controlAttachment =>
attachments?.whereType<ControlAttachment>().firstOrNull;
String? get botStartPayload {
final control = controlAttachment;
if (control == null || !control.isBotStart) return null;
final payload = (control.startPayload ?? text)?.trim();
return (payload == null || payload.isEmpty) ? null : payload;
}
bool get isSilentBotStart =>
(controlAttachment?.isBotStart ?? false) && botStartPayload == null;
CachedMessage copyWith({
String? status,
bool? deleted,