UNPKG
@botocrat/poller
Version:
latest (1.0.0)
1.0.0
Telegram server poller for Botocrat
github.com/botocrats/core
botocrats/poller
@botocrat/poller
/
types.d.ts
6 lines
•
251 B
TypeScript
View Raw
1
2
3
4
5
6
import
Botocrat
from
"@botocrat/core"
import
{
ITelegramClient
}
from
"@botocrat/client"
export
declare
const
withPoller
:
(
Botocrat
,
ITelegramClient
,
timeout
?:
number
,
onError
?: (e:
Error
) =>
void
) =>
Botocrat
& {
poll
:
() =>
void
stop
:
() =>
void
}