Skip to content

Commit

Permalink
记录TODO代办
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Aug 5, 2024
1 parent a88e503 commit 8b46308
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ internal class TelegramBotManagerImpl(
override fun register(ticket: Bot.Ticket, configuration: TelegramBotConfiguration): TelegramBot {
val token = ticket.token

@Suppress("ControlFlowWithEmptyBody")
if (token.startsWith("bot")) {
// TODO 不需要手动写 `bot`, 如果写了,移除它,并有一个警告
}

fun createBot(): TelegramBotImpl {
val context = configuration.coroutineContext.mergeWith(coroutineContext)
val job = context[Job]!!
Expand Down

0 comments on commit 8b46308

Please sign in to comment.