Other Bot Api Result Bot Api Result: Record < string , any >
Fail Api Result Fail Api Result: { description?: string ; error_code: number ; ok: false ; parameters?: { migrate_to_chat_id?: number ; retry_after?: number } }
Type declaration Optional description?: string error_ code: number ok: false Optional parameters?: { migrate_to_chat_id?: number ; retry_after?: number } Optional migrate_ to_ chat_ id?: number Optional retry_ after?: number Raw Animation Raw Animation: any
Raw Callback Query Raw Callback Query: any
Raw Chat Raw
Chat
: { bio
?: string ; description
?: string ; first_name
?: string ; id
: number ; last_name
?: string ; title
?: string ; type
: TelegramChatType ; username
?: string } Type declaration Optional bio?: string Optional description?: string Optional first_ name?: string id: number Optional last_ name?: string Optional title?: string Optional username?: string Raw Chat Member Raw Chat Member: any
Raw Chat Member Updated Raw Chat Member Updated: any
Raw Chosen Inline Result Raw Chosen Inline Result: any
Raw Contact Raw Contact: any
Raw Document Raw Document: any
Raw Inline Keyboard Markup Raw Inline Keyboard Markup: any
Raw Inline Query Raw Inline Query: any
Raw Invoice Raw Invoice: any
Raw Location Raw Location: any
Raw Mask Position Raw Mask Position: any
Raw Message Raw Message: any
Raw Message Entity Raw Message Entity: any
Raw Order Info Raw Order Info: any
Raw Passport Data Raw Passport Data: any
Raw Photo Size Raw Photo Size: any
Raw Poll Answer Raw Poll Answer: any
Raw Poll Option Raw Poll Option: any
Raw Pre Checkout Query Raw Pre Checkout Query: any
Raw Shipping Address Raw Shipping Address: any
Raw Shipping Query Raw Shipping Query: any
Raw Sticker Raw Sticker: any
Raw Successful Payment Raw Successful Payment: any
Raw User Raw User: { first_name: string ; id: number ; is_bot: boolean ; language_code?: string ; last_name?: string ; username?: string }
Type declaration first_ name: string id: number is_ bot: boolean Optional language_ code?: string Optional last_ name?: string Optional username?: string Raw Video Note Raw Video Note: any
Telegram Chat Type Telegram Chat Type: "private" | "group" | "supergroup" | "channel"
Telegram Component Type parameters Telegram Configs Type declaration bot Name: string bot Token: string Optional max Request Connections?: number Optional secret Path?: string Optional webhook Path?: string Telegram Dispatch Middleware Telegram Event Context Type declaration platform: "telegram" reply: function Telegram Job Telegram
Job
: { key
: undefined | string ; method
: string ; parameters
: {} ; uploadingFiles
: null | UploadingFile [] } Type declaration key: undefined | string method: string parameters: {} Telegram Parse Mode Telegram Parse Mode: "HTML" | "MarkdownV2" | "Markdown" | "None"
Telegram Platform Utilities Telegram Result Telegram
Result
: { description
?: string ; ok
: true ; result
: BotApiResult } Type declaration Optional description?: string ok: true Telegram Segment Value Telegram
Segment
Value
: { method
: string ; parameters
: {} ; toNonChatTarget
?: boolean ; uploadingFiles
?: UploadingFile [] } Type declaration method: string parameters: {} Optional to Non Chat Target?: boolean Optional uploading Files?: UploadingFile [] Uploading File Uploading
File
: { assetTag
?: string ; fieldName
: string ; fileData
: string | Buffer | NodeJS.ReadableStream ; fileInfo
?: UploadingFileInfo } Type declaration Optional asset Tag?: string field Name: string file Data: string | Buffer | NodeJS.ReadableStream Uploading File Info Uploading File Info: { contentType?: string ; filename?: string ; filepath?: string ; knownLength?: number }
Type declaration Optional content Type?: string Optional filename?: string Optional filepath?: string Optional known Length?: number
Telegram Platform
Receive events and send messages through Telegram.
Install
Docs
Check the platform document and the package reference.
Setup