1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-05 08:09:21 +00:00

add support of several new things in bot api

This commit is contained in:
2023-09-22 21:45:28 +06:00
parent 156fbd72d4
commit 034e87a8ef
4 changed files with 73 additions and 5 deletions

View File

@@ -15,6 +15,7 @@ external class WebApp {
val headerColor: HEXColor?
fun setHeaderColor(color: Color.BackgroundColor)
fun setHeaderColor(color: Color.Hex)
val backgroundColor: HEXColor?
fun setBackgroundColor(color: Color.Hex)
fun setBackgroundColor(color: Color.BackgroundColor)

View File

@@ -20,6 +20,10 @@ external interface WebAppUser {
val is_premium: Boolean?
@JsName(photoUrlField)
val photoUrl: String?
@JsName(addedToAttachmentMenuField)
val addedToAttachmentMenu: Boolean?
@JsName(allowsWriteToPMField)
val allowsWriteToPM: Boolean?
}
val WebAppUser.isPremium