예제 #1
0
        public async Task GoNextInboxStep(UserWrapper user)
        {
            if (user?.LastCallBackQuery == null)
            {
                return;
            }

            var msgId = user.LastCallBackQuery?.Data?.Replace(InlinePrefixKeys.InboxKey + "Delete_", "");

            if (int.TryParse(msgId, out int id))
            {
                InboxManager.DeleteMessage(id);
                await DeleteMessageAsync(user.LastCallBackQuery.Message);
                await AnswerCallbackQueryAsync(user, "Message removed from your inbox");
            }
        }