Methods
answerInline
- answerInline(botApi, data): Promise<Response>
Returns Promise<Response>
getApiUrl
- getApiUrl(botApi, slug, data): Request<unknown, CfProperties<unknown>>
Parameters
- botApi: string
- slug: string
- data: Record<string, string | number | boolean>
Returns Request<unknown, CfProperties<unknown>>
getFile
- getFile(botApi, data, token): Promise<Response>
Parameters
- botApi: string
- data: Record<string, string | number | boolean>
- token: string
Returns Promise<Response>
sendMessage
- sendMessage(botApi, data): Promise<Response>
Parameters
- botApi: string
- data: {
chat_id: string | number;
parse_mode: string;
reply_to_message_id: string | number;
text: string;
}chat_id: string | number
parse_mode: string
reply_to_message_id: string | number
text: string
Returns Promise<Response>
sendPhoto
- sendPhoto(botApi, data): Promise<Response>
Parameters
- botApi: string
- data: {
caption: string;
chat_id: string | number;
photo: string;
reply_to_message_id: string | number;
}caption: string
chat_id: string | number
photo: string
reply_to_message_id: string | number
Returns Promise<Response>
sendVideo
- sendVideo(botApi, data): Promise<Response>
Parameters
- botApi: string
- data: {
chat_id: string | number;
reply_to_message_id: string | number;
video: string;
}chat_id: string | number
reply_to_message_id: string | number
video: string
Returns Promise<Response>
Class representing the Telegram API and all it's methods