Check null on response back
This commit is contained in:
parent
813d0953e9
commit
6f6c592169
@ -77,9 +77,13 @@ class TelegramProvider : MessageProvider, Loggable {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (response != null) {
|
||||||
TelegramResponse(
|
TelegramResponse(
|
||||||
response = response,
|
response = response,
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
null
|
||||||
|
}
|
||||||
} catch (ex: Exception) {
|
} catch (ex: Exception) {
|
||||||
log.error("[Telegram] Message send error: ${ex.message}!")
|
log.error("[Telegram] Message send error: ${ex.message}!")
|
||||||
null
|
null
|
||||||
|
Loading…
Reference in New Issue
Block a user