Добавил отображение форматированных сообщений, возможность их форматировать

This commit is contained in:
jganenok
2025-12-04 21:07:23 +07:00
parent d344adf035
commit c945d57371
7 changed files with 374 additions and 105 deletions

View File

@@ -1031,6 +1031,7 @@ extension ApiServiceChats on ApiService {
String text, {
String? replyToMessageId,
int? cid,
List<Map<String, dynamic>>? elements,
}) {
final int clientMessageId = cid ?? DateTime.now().millisecondsSinceEpoch;
final payload = {
@@ -1038,7 +1039,7 @@ extension ApiServiceChats on ApiService {
"message": {
"text": text,
"cid": clientMessageId,
"elements": [],
"elements": elements ?? [],
"attaches": [],
if (replyToMessageId != null)
"link": {"type": "REPLY", "messageId": replyToMessageId},