mirror of
				https://github.com/InsanusMokrassar/TelegramBotAPI.git
				synced 2025-10-26 09:40:09 +00:00 
			
		
		
		
	add subcondition for adding subparts in raw message entities
This commit is contained in:
		| @@ -39,7 +39,7 @@ internal fun RawMessageEntity.asTextParts(source: String, subParts: List<TextPar | |||||||
|         else -> RegularTextSource(sourceSubstring) |         else -> RegularTextSource(sourceSubstring) | ||||||
|     }.let { |     }.let { | ||||||
|         val part = TextPart(range, it) |         val part = TextPart(range, it) | ||||||
|         if (it !is MultilevelTextSource) { |         if (it !is MultilevelTextSource && subParts.isNotEmpty()) { | ||||||
|             (subParts + part).sortedBy { currentPart -> currentPart.range.first } |             (subParts + part).sortedBy { currentPart -> currentPart.range.first } | ||||||
|         } else { |         } else { | ||||||
|             listOf(part) |             listOf(part) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user