Skip to content

Commit 29a022a

Browse files
committed
tgpt: wrap chat_id in LongChatId for SendChecklist
SendChecklist.chat_id is now a ChatId rather than a raw Long after the Bot API v10.0 regeneration, so the call site needs an explicit LongChatId wrapper.
1 parent 2759cc0 commit 29a022a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tgpt/src/main/kotlin/io/heapy/tgpt/bot/TgptUpdateProcessor.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import io.heapy.kotbot.bot.method.SendChecklist
1919
import io.heapy.kotbot.bot.method.SendMessage
2020
import io.heapy.kotbot.bot.model.InputChecklist
2121
import io.heapy.kotbot.bot.model.InputChecklistTask
22+
import io.heapy.kotbot.bot.model.LongChatId
2223
import io.heapy.kotbot.bot.model.Message
2324
import io.heapy.kotbot.bot.model.ParseMode
2425
import io.heapy.kotbot.bot.model.ReplyParameters
@@ -372,7 +373,7 @@ class TgptUpdateProcessor(
372373
kotbot.execute(
373374
SendChecklist(
374375
business_connection_id = businessConnectionId,
375-
chat_id = message.chat.id,
376+
chat_id = LongChatId(message.chat.id),
376377
checklist = InputChecklist(
377378
title = CHECKLIST_DEFAULT_TITLE,
378379
tasks = checklistTasks.mapIndexed { index, task ->

0 commit comments

Comments
 (0)