mirror of
				https://github.com/InsanusMokrassar/TelegramBotAPI.git
				synced 2025-10-25 09:10:07 +00:00 
			
		
		
		
	update classcasts
This commit is contained in:
		| @@ -513,6 +513,10 @@ inline fun Message.asPossiblySentViaBotCommonMessage(): PossiblySentViaBotCommon | |||||||
| @PreviewFeature | @PreviewFeature | ||||||
| inline fun Message.requirePossiblySentViaBotCommonMessage(): PossiblySentViaBotCommonMessage<MessageContent> = this as PossiblySentViaBotCommonMessage<MessageContent> | inline fun Message.requirePossiblySentViaBotCommonMessage(): PossiblySentViaBotCommonMessage<MessageContent> = this as PossiblySentViaBotCommonMessage<MessageContent> | ||||||
| @PreviewFeature | @PreviewFeature | ||||||
|  | inline fun Message.asFromUserMessage(): FromUserMessage? = this as? FromUserMessage | ||||||
|  | @PreviewFeature | ||||||
|  | inline fun Message.requireFromUserMessage(): FromUserMessage = this as FromUserMessage | ||||||
|  | @PreviewFeature | ||||||
| inline fun BotAction.asFindLocationAction(): FindLocationAction? = this as? FindLocationAction | inline fun BotAction.asFindLocationAction(): FindLocationAction? = this as? FindLocationAction | ||||||
| @PreviewFeature | @PreviewFeature | ||||||
| inline fun BotAction.requireFindLocationAction(): FindLocationAction = this as FindLocationAction | inline fun BotAction.requireFindLocationAction(): FindLocationAction = this as FindLocationAction | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user