diff --git a/gradle.properties b/gradle.properties index 4280de8..2e99ea0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ ## Core -VERSION = 0.7.0.8 +VERSION = 0.7.0.9 # dependencies diff --git a/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java b/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java index 9536859..3bee94b 100644 --- a/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java +++ b/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java @@ -4,6 +4,6 @@ package cc.sukazyo.cono.morny; * the final field that will be updated by gradle automatically. */ public class GradleProjectConfigures { - public static final String VERSION = "0.7.0.8"; - public static final long COMPILE_TIMESTAMP = 1653132713941L; + public static final String VERSION = "0.7.0.9"; + public static final long COMPILE_TIMESTAMP = 1653199608824L; } diff --git a/src/main/java/cc/sukazyo/cono/morny/bot/event/OnCallMsgSend.java b/src/main/java/cc/sukazyo/cono/morny/bot/event/OnCallMsgSend.java index e54a443..b5d7a34 100644 --- a/src/main/java/cc/sukazyo/cono/morny/bot/event/OnCallMsgSend.java +++ b/src/main/java/cc/sukazyo/cono/morny/bot/event/OnCallMsgSend.java @@ -74,6 +74,11 @@ public class OnCallMsgSend extends EventListener { sendResponse.description() ) ).replyToMessageId(update.message().messageId()).parseMode(ParseMode.HTML)); + } else { // 发送成功信号 + MornyCoeur.extra().exec(new SendSticker( + update.message().chat().id(), + TelegramStickers.ID_SENT + ).replyToMessageId(update.message().messageId())); } return true; // 发送完成/失败 - 事件结束 @@ -109,10 +114,10 @@ public class OnCallMsgSend extends EventListener { targetChatReq.description() ) ).replyToMessageId(update.message().messageId()).parseMode(ParseMode.HTML)); - } { + } else { MornyCoeur.extra().exec(new SendMessage( update.message().chat().id(), - targetChatReq.chat().type()== Chat.Type.Private ? ( + targetChatReq.chat().type() == Chat.Type.Private ? ( String.format(""" %d@%s 🔒 %s %s""",