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