Telegram: Add reply-chain detection to bypass mention requirement (#1038)

* Telegram: add reply-chain detection to bypass mention requirement

* fix: allow telegram reply-chain mention bypass (#1038) (thanks @adityashaw2)

---------

Co-authored-by: Aditya Shaw <aditya@adityashaw.dev>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
adityashaw2
2026-01-17 02:54:45 +05:30
committed by GitHub
parent 9072e35f08
commit e9d6869290
4 changed files with 43 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ export type TelegramStreamMode = "off" | "partial" | "block";
export type TelegramContext = {
message: TelegramMessage;
me?: { username?: string };
me?: { id?: number; username?: string };
getFile: () => Promise<{
file_path?: string;
}>;