refactor!: rewrite bot core; add AI (Ollama, Gemini), DB, new commands

This commit is contained in:
2026-01-12 15:32:50 +03:00
parent 9d74ad9861
commit df9471a7e4
137 changed files with 11341 additions and 2025 deletions
+8
View File
@@ -0,0 +1,8 @@
export type StoredMessage = {
chatId: number;
messageId: number;
replyToMessageId?: number | null;
fromId: number;
text: string;
date: number;
};
+8
View File
@@ -0,0 +1,8 @@
export type StoredUser = {
id: number;
isBot: boolean;
firstName: string;
lastName?: string;
userName?: string;
isPremium?: boolean;
}
+5
View File
@@ -0,0 +1,5 @@
export interface WebSearchResponse {
title: string;
url: string;
content: string;
}