File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
StarTransactionsBot/src/main/kotlin Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import dev.inmo.tgbotapi.extensions.utils.extensions.sameChat
1515import dev.inmo.tgbotapi.extensions.utils.types.buttons.*
1616import dev.inmo.tgbotapi.extensions.utils.withContentOrNull
1717import dev.inmo.tgbotapi.requests.abstracts.asMultipartFile
18+ import dev.inmo.tgbotapi.types.ChatId
1819import dev.inmo.tgbotapi.types.RawChatId
1920import dev.inmo.tgbotapi.types.UserId
2021import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
@@ -40,7 +41,7 @@ import kotlinx.coroutines.Dispatchers
4041 */
4142suspend 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" }
You can’t perform that action at this time.
0 commit comments