Constructors
constructor
- new TelegramBotClient(tgbId, token, baseUrl?, debug?): TelegramBotClient
Parameters
- tgbId: string
- token: string
Optional baseUrl: string- debug: boolean = true
Properties
axios
axios: AxiosInstance
Methods
activateService
- activateService(serviceId): Promise<{
message: string;
status: string;
}> Returns Promise<{
message: string;
status: string;
}>
deactivateService
- deactivateService(serviceId): Promise<{
message: string;
status: string;
}> Returns Promise<{
message: string;
status: string;
}>
getStatus
- getStatus(): Promise<{
status: string;
}> Returns Promise<{
status: string;
}>
setBotToken
- setBotToken(token): Promise<{
token: string;
}> Returns Promise<{
token: string;
}>