update entity telegram

This commit is contained in:
2024-12-29 17:01:17 +07:00
parent 2cfcfccfaa
commit 3ed8494aa6
2 changed files with 34 additions and 0 deletions

31
src/types/telegram.ts Normal file
View File

@ -0,0 +1,31 @@
export class TelegramBody {
to: string;
message: string;
}
export interface TelegramResponseSend {
ok: boolean
result: ResultResponseSend
}
export interface ResultResponseSend {
message_id: number
from: FromResponseSend
chat: ChatResponseSend
date: number
text: string
}
export interface FromResponseSend {
id: number
is_bot: boolean
first_name: string
username: string
}
export interface ChatResponseSend {
id: number
title: string
type: string
all_members_are_administrators: boolean
}