/** * Telegram Bot API types — re-exported from the code-generated `@yaebal/types`, * the single source of truth (generated from the official schema on every API * release). core only keeps the API-response envelope and the `UpdateName` * helper, which aren't part of the object schema. */ import type { ResponseParameters, Update } from "@yaebal/types"; export type { Animation, Audio, CallbackQuery, Chat, ChatMember, ChatMemberAdministrator, ChatMemberUpdated, Contact, Dice, Document, Game, InlineQuery, Invoice, Location, Message, MessageEntity, MessageOrigin, PhotoSize, Poll, ResponseParameters, Sticker, SuccessfulPayment, Update, User, Venue, Video, VideoNote, Voice, WebAppData, WebhookInfo, } from "@yaebal/types"; export { updateNames } from "@yaebal/types"; /** the keys of `Update` that carry a payload (everything except `update_id`). */ export type UpdateName = Exclude; export interface ApiResponseOk { ok: true; result: T; } export interface ApiResponseError { ok: false; error_code: number; description: string; parameters?: ResponseParameters; } export type ApiResponse = ApiResponseOk | ApiResponseError; //# sourceMappingURL=telegram-types.d.ts.map