Teleforge API Reference - v0.1.0
Preparing search index...
bot/src
BotRuntime
Interface BotRuntime
interface
BotRuntime
{
bindBot
:
(
bot
:
BotInstance
)
=>
void
;
getCommands
:
()
=>
RegisteredCommand
[]
;
handle
:
(
update
:
TelegramUpdate
)
=>
Promise
<
void
>
;
registerCommands
:
(
commands
:
Iterable
<
BotCommandDefinition
>
)
=>
void
;
router
:
BotRouter
;
}
Index
Properties
bind
Bot
get
Commands
handle
register
Commands
router
Properties
bind
Bot
bindBot
:
(
bot
:
BotInstance
)
=>
void
get
Commands
getCommands
:
()
=>
RegisteredCommand
[]
handle
handle
:
(
update
:
TelegramUpdate
)
=>
Promise
<
void
>
register
Commands
registerCommands
:
(
commands
:
Iterable
<
BotCommandDefinition
>
)
=>
void
router
router
:
BotRouter
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
bind
Bot
get
Commands
handle
register
Commands
router
Teleforge API Reference - v0.1.0
Loading...