Teleforge API Reference - v0.1.0
Preparing search index...
bot/src
CommandContext
Interface CommandContext
interface
CommandContext
{
bot
:
BotInstance
|
null
;
reply
:
(
text
:
string
,
options
?:
ReplyOptions
)
=>
Promise
<
TelegramMessage
>
;
replyWithWebApp
:
(
text
:
string
,
buttonText
:
string
,
url
:
string
,
)
=>
Promise
<
TelegramMessage
>
;
state
:
Record
<
string
,
unknown
>
;
update
:
TelegramUpdate
;
args
:
string
[]
;
chat
:
TelegramChat
;
command
:
string
;
message
:
TelegramMessage
;
user
:
TelegramUser
;
}
Hierarchy (
View Summary
)
UpdateContext
CommandContext
Index
Properties
bot
reply
reply
With
Web
App
state
update
args
chat
command
message
user
Properties
bot
bot
:
BotInstance
|
null
reply
reply
:
(
text
:
string
,
options
?:
ReplyOptions
)
=>
Promise
<
TelegramMessage
>
reply
With
Web
App
replyWithWebApp
:
(
text
:
string
,
buttonText
:
string
,
url
:
string
,
)
=>
Promise
<
TelegramMessage
>
state
state
:
Record
<
string
,
unknown
>
update
update
:
TelegramUpdate
args
args
:
string
[]
chat
chat
:
TelegramChat
command
command
:
string
message
message
:
TelegramMessage
user
user
:
TelegramUser
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
bot
reply
reply
With
Web
App
state
update
args
chat
command
message
user
Teleforge API Reference - v0.1.0
Loading...