Constructors
constructor
- new TelegramClient(tgId, token, baseUrl?, debug?): TelegramClient
Parameters
- tgId: 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;
}>
getLastMessageStatus
- getLastMessageStatus(phone): Promise<{
status: string;
}> Returns Promise<{
status: string;
}>
getMessageStatus
- getMessageStatus(messageId): Promise<{
status: string;
}> Returns Promise<{
status: string;
}>
getStatus
- getStatus(): Promise<{
status: string;
}> Returns Promise<{
status: string;
}>
getUserId
- getUserId(to): Promise<{
userId: string;
}> Returns Promise<{
userId: string;
}>