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:
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user