Skip to content

Commit e1f5e40

Browse files
fix of build
1 parent 186a0f7 commit e1f5e40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

StarTransactionsBot/src/main/kotlin/StarTransactionsBot.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import dev.inmo.tgbotapi.extensions.utils.extensions.sameChat
1515
import dev.inmo.tgbotapi.extensions.utils.types.buttons.*
1616
import dev.inmo.tgbotapi.extensions.utils.withContentOrNull
1717
import dev.inmo.tgbotapi.requests.abstracts.asMultipartFile
18+
import dev.inmo.tgbotapi.types.ChatId
1819
import dev.inmo.tgbotapi.types.RawChatId
1920
import dev.inmo.tgbotapi.types.UserId
2021
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
@@ -40,7 +41,7 @@ import kotlinx.coroutines.Dispatchers
4041
*/
4142
suspend fun main(vararg args: String) {
4243
val botToken = args.first()
43-
val adminUserId = args.getOrNull(1) ?.toLongOrNull() ?.let(::RawChatId) ?.let(::UserId) ?: error("Pass user-admin for full access to the bot")
44+
val adminUserId = args.getOrNull(1) ?.toLongOrNull() ?.let(::RawChatId) ?.let(::ChatId) ?: error("Pass user-admin for full access to the bot")
4445

4546
val isDebug = args.any { it == "debug" }
4647
val isTestServer = args.any { it == "testServer" }

0 commit comments

Comments
 (0)