mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-11-21 06:45:46 +00:00
total rework of chats
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.github.insanusmokrassar.TelegramBotAPI.bot.exceptions
|
||||
|
||||
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.RawChat
|
||||
|
||||
sealed class HandleException (
|
||||
message: String
|
||||
) : IllegalArgumentException(
|
||||
message
|
||||
)
|
||||
|
||||
class IllegalChatRawObjectException(
|
||||
rawChat: RawChat
|
||||
) : HandleException(
|
||||
"One of the fields in raw chat object is incorrect"
|
||||
)
|
||||
Reference in New Issue
Block a user