mirror of
				https://github.com/InsanusMokrassar/TelegramBotAPI.git
				synced 2025-10-25 17:20:07 +00:00 
			
		
		
		
	add TelegramBot#send extensions
This commit is contained in:
		| @@ -7,6 +7,7 @@ | |||||||
|   * Now it is possible to edit any message caption via `editMessageCaption` (but with warning) |   * Now it is possible to edit any message caption via `editMessageCaption` (but with warning) | ||||||
|   * Media message caption edit method (`editMessageCaption`) now returns the message with the same generic type (as it must be in telegram system) |   * Media message caption edit method (`editMessageCaption`) now returns the message with the same generic type (as it must be in telegram system) | ||||||
|   * New extensions `TelegramBot#edit` has been added for all possible editions types |   * New extensions `TelegramBot#edit` has been added for all possible editions types | ||||||
|  |   * New extensions `TelegramBot#send` has been added for all possible sending types | ||||||
|  |  | ||||||
| ## 2.1.0 | ## 2.1.0 | ||||||
|  |  | ||||||
|   | |||||||
| @@ -22,7 +22,7 @@ suspend fun <T> TelegramBot.withAction( | |||||||
|     contract { |     contract { | ||||||
|         callsInPlace(block, InvocationKind.EXACTLY_ONCE) |         callsInPlace(block, InvocationKind.EXACTLY_ONCE) | ||||||
|     } |     } | ||||||
|     val botActionJob = CoroutineScope(coroutineContext).launch { |     val botActionJob = CoroutineScope(currentCoroutineContext()).launch { | ||||||
|         while (isActive) { |         while (isActive) { | ||||||
|             delay(refreshTime) |             delay(refreshTime) | ||||||
|             safelyWithoutExceptions { |             safelyWithoutExceptions { | ||||||
|   | |||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user