Skip to content

Commit 8b46308

Browse files
committed
记录TODO代办
see also: simple-robot/simpler-robot#884
1 parent a88e503 commit 8b46308

File tree

1 file changed

+5
-0
lines changed
  • simbot-component-telegram-core/src/commonMain/kotlin/love/forte/simbot/component/telegram/core/bot/internal

1 file changed

+5
-0
lines changed

simbot-component-telegram-core/src/commonMain/kotlin/love/forte/simbot/component/telegram/core/bot/internal/TelegramBotManagerImpl.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ internal class TelegramBotManagerImpl(
5959
override fun register(ticket: Bot.Ticket, configuration: TelegramBotConfiguration): TelegramBot {
6060
val token = ticket.token
6161

62+
@Suppress("ControlFlowWithEmptyBody")
63+
if (token.startsWith("bot")) {
64+
// TODO 不需要手动写 `bot`, 如果写了,移除它,并有一个警告
65+
}
66+
6267
fun createBot(): TelegramBotImpl {
6368
val context = configuration.coroutineContext.mergeWith(coroutineContext)
6469
val job = context[Job]!!

0 commit comments

Comments
 (0)