Teleforge API Reference - v0.1.0
Preparing search index...
bot/src
WebAppDataContext
Interface WebAppDataContext
interface
WebAppDataContext
{
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
;
answer
:
(
text
:
string
)
=>
Promise
<
TelegramMessage
>
;
chat
:
TelegramChat
;
data
:
string
;
message
:
TelegramMessage
;
messageId
:
number
|
null
;
payload
:
unknown
;
timestamp
:
number
|
null
;
user
:
TelegramUser
|
null
;
}
Hierarchy (
View Summary
)
UpdateContext
WebAppDataContext
Index
Properties
bot
reply
reply
With
Web
App
state
update
answer
chat
data
message
message
Id
payload
timestamp
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
answer
answer
:
(
text
:
string
)
=>
Promise
<
TelegramMessage
>
chat
chat
:
TelegramChat
data
data
:
string
message
message
:
TelegramMessage
message
Id
messageId
:
number
|
null
payload
payload
:
unknown
timestamp
timestamp
:
number
|
null
user
user
:
TelegramUser
|
null
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
bot
reply
reply
With
Web
App
state
update
answer
chat
data
message
message
Id
payload
timestamp
user
Teleforge API Reference - v0.1.0
Loading...