mirror of
				https://github.com/InsanusMokrassar/TelegramBotAPI.git
				synced 2025-11-03 21:50:13 +00:00 
			
		
		
		
	add support of WriteAccessAllowed#webAppName
This commit is contained in:
		@@ -605,4 +605,5 @@ const val temporaryRegistrationField = "temporary_registration"
 | 
			
		||||
 | 
			
		||||
const val buttonTextField = "button_text"
 | 
			
		||||
const val webAppField = "web_app"
 | 
			
		||||
const val webAppNameField = "web_app_name"
 | 
			
		||||
const val menuButtonField = "menu_button"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,12 @@
 | 
			
		||||
package dev.inmo.tgbotapi.types.message.ChatEvents.forum
 | 
			
		||||
 | 
			
		||||
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ForumEvent
 | 
			
		||||
import dev.inmo.tgbotapi.types.webAppNameField
 | 
			
		||||
import kotlinx.serialization.SerialName
 | 
			
		||||
import kotlinx.serialization.Serializable
 | 
			
		||||
 | 
			
		||||
@Serializable
 | 
			
		||||
object WriteAccessAllowed : ForumEvent
 | 
			
		||||
data class WriteAccessAllowed(
 | 
			
		||||
    @SerialName(webAppNameField)
 | 
			
		||||
    val webAppName: String? = null
 | 
			
		||||
) : ForumEvent
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user